Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ public class GenerativeIT extends GenerativeRestTest {
protected String getTestRestCluster() {
return cluster.getHttpAddresses();
}

@Override
protected boolean supportsSourceFieldMapping() {
return cluster.getNumNodes() == 1;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private static String grok(List<Column> previousOutput) {
} else {
String fieldName = randomRawName(previousOutput);
if (fieldName.isEmpty()) { // it's a bug, managed later, skipping for now
randomAlphaOfLength(5);
fieldName = randomAlphaOfLength(5);
}
result.append(fieldName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ public abstract class GenerativeRestTest extends ESRestTestCase {
@Before
public void setup() throws IOException {
if (indexExists(CSV_DATASET_MAP.keySet().iterator().next()) == false) {
loadDataSetIntoEs(client(), true, true);
loadDataSetIntoEs(client(), true, supportsSourceFieldMapping());
}
}

protected abstract boolean supportsSourceFieldMapping();

@AfterClass
public static void wipeTestData() throws IOException {
try {
Expand Down