@@ -1405,7 +1405,7 @@ public void testMalformedDynamicMapping_v7() throws IOException {
1405
1405
}
1406
1406
1407
1407
public void testSubobjectsAutoFlatPaths () throws IOException {
1408
- assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG . isEnabled () );
1408
+ assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG );
1409
1409
MapperService mapperService = createDynamicTemplateAutoSubobjects ();
1410
1410
ParsedDocument doc = mapperService .documentMapper ().parse (source (b -> {
1411
1411
b .field ("foo.metric.count" , 10 );
@@ -1418,7 +1418,7 @@ public void testSubobjectsAutoFlatPaths() throws IOException {
1418
1418
}
1419
1419
1420
1420
public void testSubobjectsAutoStructuredPaths () throws IOException {
1421
- assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG . isEnabled () );
1421
+ assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG );
1422
1422
MapperService mapperService = createDynamicTemplateAutoSubobjects ();
1423
1423
ParsedDocument doc = mapperService .documentMapper ().parse (source (b -> {
1424
1424
b .startObject ("foo" );
@@ -1441,7 +1441,7 @@ public void testSubobjectsAutoStructuredPaths() throws IOException {
1441
1441
}
1442
1442
1443
1443
public void testSubobjectsAutoArrayOfObjects () throws IOException {
1444
- assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG . isEnabled () );
1444
+ assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG );
1445
1445
MapperService mapperService = createDynamicTemplateAutoSubobjects ();
1446
1446
ParsedDocument doc = mapperService .documentMapper ().parse (source (b -> {
1447
1447
b .startObject ("foo" );
@@ -1475,7 +1475,7 @@ public void testSubobjectsAutoArrayOfObjects() throws IOException {
1475
1475
}
1476
1476
1477
1477
public void testSubobjectAutoDynamicNested () throws IOException {
1478
- assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG . isEnabled () );
1478
+ assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG );
1479
1479
DocumentMapper mapper = createDocumentMapper (topMapping (b -> {
1480
1480
b .startArray ("dynamic_templates" );
1481
1481
{
@@ -1514,7 +1514,7 @@ public void testSubobjectAutoDynamicNested() throws IOException {
1514
1514
}
1515
1515
1516
1516
public void testRootSubobjectAutoDynamicNested () throws IOException {
1517
- assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG . isEnabled () );
1517
+ assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG );
1518
1518
DocumentMapper mapper = createDocumentMapper (topMapping (b -> {
1519
1519
b .startArray ("dynamic_templates" );
1520
1520
{
@@ -1548,7 +1548,7 @@ public void testRootSubobjectAutoDynamicNested() throws IOException {
1548
1548
}
1549
1549
1550
1550
public void testDynamicSubobjectsAutoDynamicFalse () throws Exception {
1551
- assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG . isEnabled () );
1551
+ assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG );
1552
1552
// verify that we read the dynamic value properly from the parent mapper. DocumentParser#dynamicOrDefault splits the field
1553
1553
// name where dots are found, but it does that only for the parent prefix e.g. metrics.service and not for the leaf suffix time.max
1554
1554
DocumentMapper mapper = createDocumentMapper (topMapping (b -> {
@@ -1612,7 +1612,7 @@ public void testDynamicSubobjectsAutoDynamicFalse() throws Exception {
1612
1612
}
1613
1613
1614
1614
public void testSubobjectsAutoWithInnerNestedFromDynamicTemplate () throws IOException {
1615
- assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG . isEnabled () );
1615
+ assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG );
1616
1616
DocumentMapper mapper = createDocumentMapper (topMapping (b -> {
1617
1617
b .startArray ("dynamic_templates" );
1618
1618
{
@@ -2080,7 +2080,7 @@ public void testSubobjectsFalseFlattened() throws IOException {
2080
2080
}
2081
2081
2082
2082
public void testSubobjectsAutoFlattened () throws IOException {
2083
- assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG . isEnabled () );
2083
+ assumeTrue ("only test when feature flag for subobjects auto is enabled" , ObjectMapper .SUB_OBJECTS_AUTO_FEATURE_FLAG );
2084
2084
String mapping = """
2085
2085
{
2086
2086
"_doc": {
0 commit comments