Skip to content

Commit

Permalink
Ensure that fields copied using copy_to are not present in synthetic …
Browse files Browse the repository at this point in the history
  • Loading branch information
lkts authored Sep 12, 2024
1 parent 735a0e0 commit 12b4900
Show file tree
Hide file tree
Showing 25 changed files with 784 additions and 217 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ public class StandardVersusLogsIndexModeRandomDataChallengeRestIT extends Standa

public StandardVersusLogsIndexModeRandomDataChallengeRestIT() {
super();
this.subobjects = randomFrom(ObjectMapper.Subobjects.values());
// TODO enable subobjects: auto
// It is disabled because it currently does not have auto flattening and that results in asserts being triggered when using copy_to.
this.subobjects = randomValueOtherThan(ObjectMapper.Subobjects.AUTO, () -> randomFrom(ObjectMapper.Subobjects.values()));
this.keepArraySource = randomBoolean();

var specificationBuilder = DataGeneratorSpecification.builder().withFullyDynamicMapping(randomBoolean());
Expand Down Expand Up @@ -120,6 +122,14 @@ public CheckedConsumer<XContentBuilder, IOException> fieldValueGenerator() {
.build());
}

@Override
protected final Settings restClientSettings() {
return Settings.builder()
.put(super.restClientSettings())
.put(org.elasticsearch.test.rest.ESRestTestCase.CLIENT_SOCKET_TIMEOUT, "9000s")
.build();
}

@Override
public void baselineMappings(XContentBuilder builder) throws IOException {
dataGenerator.writeMapping(builder);
Expand Down
Loading

0 comments on commit 12b4900

Please sign in to comment.