Skip to content

Commit e1f5256

Browse files
committed
[Transform] Remove extra reset calls
ESRestTestCase already calls the `_reset` API, we do not need to do it twice.
1 parent fafb162 commit e1f5256

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

x-pack/plugin/transform/qa/single-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/TransformGetAndGetStatsIT.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ public void createIndexes() throws IOException {
6464

6565
}
6666

67-
@After
68-
public void clearOutTransforms() throws Exception {
69-
adminClient().performRequest(new Request("POST", "/_features/_reset"));
70-
}
71-
7267
@SuppressWarnings("unchecked")
7368
public void testGetAndGetStats() throws Exception {
7469
createPivotReviewsTransform("pivot_1", "pivot_reviews_1", null);

x-pack/plugin/transform/qa/single-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/TransformRestTestCase.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,9 +647,6 @@ protected static void deleteTransform(String transformId, boolean ignoreNotFound
647647
public void waitForTransform() throws Exception {
648648
ensureNoInitializingShards();
649649
logAudits();
650-
if (preserveClusterUponCompletion() == false) {
651-
adminClient().performRequest(new Request("POST", "/_features/_reset"));
652-
}
653650
}
654651

655652
@AfterClass

x-pack/plugin/transform/qa/single-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/TransformTaskFailedStateIT.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ public void setClusterSettings() throws IOException {
5252
client().performRequest(addFailureRetrySetting);
5353
}
5454

55-
@After
56-
public void cleanUpPotentiallyFailedTransform() throws Exception {
57-
adminClient().performRequest(new Request("POST", "/_features/_reset"));
58-
}
59-
6055
public void testForceStopFailedTransform() throws Exception {
6156
String transformId = "test-force-stop-failed-transform";
6257
createReviewsIndex(REVIEWS_INDEX_NAME, 10, 27, "date", false, -1, null);

x-pack/plugin/transform/qa/single-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/TransformUpgradeModeIT.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ public void createIndexes() throws IOException {
5151
indicesCreated = true;
5252
}
5353

54-
@After
55-
public void clearOutTransforms() throws Exception {
56-
adminClient().performRequest(new Request("POST", "/_features/_reset"));
57-
}
58-
5954
public void testUpgradeMode() throws Exception {
6055
var transformId = startTransform();
6156

0 commit comments

Comments
 (0)