Skip to content

Commit 3cdd181

Browse files
committed
Update SyntheticSourceIndexSettingsProviderTests to expect source mode deprecation warning
1 parent 00cb9a0 commit 3cdd181

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

x-pack/plugin/logsdb/src/test/java/org/elasticsearch/xpack/logsdb/SyntheticSourceIndexSettingsProviderTests.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
import java.io.IOException;
2626
import java.time.Instant;
27+
import java.util.ArrayList;
2728
import java.util.List;
2829
import java.util.concurrent.atomic.AtomicInteger;
2930

@@ -402,4 +403,11 @@ public void testGetAdditionalIndexSettingsDowngradeFromSyntheticSourceFileMatch(
402403
assertThat(result.size(), equalTo(0));
403404
assertThat(newMapperServiceCounter.get(), equalTo(0));
404405
}
406+
407+
protected List<String> filteredWarnings() {
408+
var warnings = super.filteredWarnings();
409+
List<String> result = warnings == null ? new ArrayList<>() : new ArrayList<>(warnings);
410+
result.add("Configuring source mode in mappings is deprecated and will be removed in future versions");
411+
return result;
412+
}
405413
}

0 commit comments

Comments
 (0)