Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrik-es committed Nov 29, 2024
1 parent 8cb5a9f commit 04056fd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2064,6 +2064,10 @@ public void testSubobjectsFalseWithInnerDottedObjectDynamicFalse() throws Except
{ "metrics": { "service": { "test.with.dots": "foo" } } }"""));
assertNotNull(doc.rootDoc().getField("metrics.service.test.with.dots"));

doc = mapper.parse(source("""
{ "metrics": { "service.test": { "with.dots": "foo" } } }"""));
assertNotNull(doc.rootDoc().getField("metrics.service.test.with.dots"));

doc = mapper.parse(source("""
{ "metrics": { "service": { "test": { "with.dots": "foo" } } } }"""));
assertNotNull(doc.rootDoc().getField("metrics.service.test.with.dots"));
Expand Down Expand Up @@ -2100,6 +2104,10 @@ public void testSubobjectsFalseRootWithInnerDottedObjectDynamicFalse() throws Ex
{ "service": { "test.with.dots": "foo" } }"""));
assertNotNull(doc.rootDoc().getField("service.test.with.dots"));

doc = mapper.parse(source("""
{ "service.test": { "with.dots": "foo" } }"""));
assertNotNull(doc.rootDoc().getField("service.test.with.dots"));

doc = mapper.parse(source("""
{ "service": { "test": { "with.dots": "foo" } } }"""));
assertNotNull(doc.rootDoc().getField("service.test.with.dots"));
Expand Down

0 comments on commit 04056fd

Please sign in to comment.