Skip to content

Commit 0bd64ea

Browse files
authored
Disabling ReindexDataStreamTransportActionIT in release mode (#118377) (#118384)
The actions in the migrate plugin are currently behind a feature flag. This disables the integration test for them if the flag is not set. Closes #118376
1 parent e40201c commit 0bd64ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

x-pack/plugin/migrate/src/internalClusterTest/java/org/elasticsearch/xpack/migrate/action/ReindexDataStreamTransportActionIT.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import java.util.concurrent.CountDownLatch;
4141
import java.util.concurrent.atomic.AtomicReference;
4242

43+
import static org.elasticsearch.xpack.migrate.action.ReindexDataStreamAction.REINDEX_DATA_STREAM_FEATURE_FLAG;
4344
import static org.hamcrest.Matchers.equalTo;
4445
import static org.hamcrest.Matchers.is;
4546

@@ -51,6 +52,7 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
5152
}
5253

5354
public void testNonExistentDataStream() {
55+
assumeTrue("requires the migration reindex feature flag", REINDEX_DATA_STREAM_FEATURE_FLAG.isEnabled());
5456
String nonExistentDataStreamName = randomAlphaOfLength(50);
5557
ReindexDataStreamRequest reindexDataStreamRequest = new ReindexDataStreamRequest(
5658
ReindexDataStreamAction.Mode.UPGRADE,
@@ -64,6 +66,7 @@ public void testNonExistentDataStream() {
6466
}
6567

6668
public void testAlreadyUpToDateDataStream() throws Exception {
69+
assumeTrue("requires the migration reindex feature flag", REINDEX_DATA_STREAM_FEATURE_FLAG.isEnabled());
6770
String dataStreamName = randomAlphaOfLength(50).toLowerCase(Locale.ROOT);
6871
ReindexDataStreamRequest reindexDataStreamRequest = new ReindexDataStreamRequest(
6972
ReindexDataStreamAction.Mode.UPGRADE,

0 commit comments

Comments
 (0)