[TEST] Increased timeout for verifying ccr monitoring.
This commit is contained in:
parent
fba811fa3a
commit
807ce10f73
|
@ -16,6 +16,7 @@ import org.elasticsearch.common.xcontent.support.XContentMapValues;
|
|||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import static org.elasticsearch.xpack.core.security.authc.support.UsernamePasswordToken.basicAuthHeaderValue;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
|
@ -63,7 +64,7 @@ public class FollowIndexSecurityIT extends ESCCRRestTestCase {
|
|||
followIndex(client(), "leader_cluster", allowedIndex, allowedIndex);
|
||||
assertBusy(() -> verifyDocuments(allowedIndex, numDocs, "*:*"));
|
||||
assertThat(countCcrNodeTasks(), equalTo(1));
|
||||
assertBusy(() -> verifyCcrMonitoring(allowedIndex, allowedIndex));
|
||||
assertBusy(() -> verifyCcrMonitoring(allowedIndex, allowedIndex), 30, TimeUnit.SECONDS);
|
||||
assertOK(client().performRequest(new Request("POST", "/" + allowedIndex + "/_ccr/pause_follow")));
|
||||
// Make sure that there are no other ccr relates operations running:
|
||||
assertBusy(() -> {
|
||||
|
@ -167,7 +168,7 @@ public class FollowIndexSecurityIT extends ESCCRRestTestCase {
|
|||
assertBusy(() -> {
|
||||
verifyCcrMonitoring(allowedIndex, allowedIndex);
|
||||
verifyAutoFollowMonitoring();
|
||||
});
|
||||
}, 30, TimeUnit.SECONDS);
|
||||
|
||||
// Cleanup by deleting auto follow pattern and pause following:
|
||||
request = new Request("DELETE", "/_ccr/auto_follow/test_pattern");
|
||||
|
|
|
@ -12,6 +12,7 @@ import org.elasticsearch.common.Strings;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
|
@ -58,7 +59,7 @@ public class FollowIndexIT extends ESCCRRestTestCase {
|
|||
index(leaderClient, leaderIndexName, Integer.toString(id + 2), "field", id + 2, "filtered_field", "true");
|
||||
}
|
||||
assertBusy(() -> verifyDocuments(followIndexName, numDocs + 3, "filtered_field:true"));
|
||||
assertBusy(() -> verifyCcrMonitoring(leaderIndexName, followIndexName));
|
||||
assertBusy(() -> verifyCcrMonitoring(leaderIndexName, followIndexName), 30, TimeUnit.SECONDS);
|
||||
|
||||
pauseFollow(followIndexName);
|
||||
assertOK(client().performRequest(new Request("POST", "/" + followIndexName + "/_close")));
|
||||
|
@ -113,7 +114,7 @@ public class FollowIndexIT extends ESCCRRestTestCase {
|
|||
assertBusy(() -> {
|
||||
verifyCcrMonitoring("logs-20190101", "logs-20190101");
|
||||
verifyAutoFollowMonitoring();
|
||||
});
|
||||
}, 30, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue