parent
3143b5ea47
commit
c17839c255
|
@ -6,7 +6,6 @@
|
|||
package org.elasticsearch.upgrades;
|
||||
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.elasticsearch.Version;
|
||||
import org.elasticsearch.client.Request;
|
||||
import org.elasticsearch.client.Response;
|
||||
|
@ -29,7 +28,6 @@ import static org.hamcrest.Matchers.equalTo;
|
|||
* oss rolling restart tests. We should work on a way to remove this
|
||||
* duplication but for now we have no real way to share code.
|
||||
*/
|
||||
@LuceneTestCase.AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/58807")
|
||||
public class IndexingIT extends AbstractUpgradeTestCase {
|
||||
public void testIndexing() throws IOException {
|
||||
switch (CLUSTER_TYPE) {
|
||||
|
@ -76,6 +74,7 @@ public class IndexingIT extends AbstractUpgradeTestCase {
|
|||
}
|
||||
Request createTestIndex = new Request("PUT", "/test_index");
|
||||
createTestIndex.setJsonEntity("{\"settings\": {\"index.number_of_replicas\": 0}}");
|
||||
useIgnoreMultipleMatchingTemplatesWarningsHandler(createTestIndex);
|
||||
client().performRequest(createTestIndex);
|
||||
allowedWarnings("index [test_index] matches multiple legacy templates [global, xpack-prevent-bwc-deprecation-template], " +
|
||||
"composable templates will only match a single template");
|
||||
|
@ -83,11 +82,13 @@ public class IndexingIT extends AbstractUpgradeTestCase {
|
|||
String recoverQuickly = "{\"settings\": {\"index.unassigned.node_left.delayed_timeout\": \"100ms\"}}";
|
||||
Request createIndexWithReplicas = new Request("PUT", "/index_with_replicas");
|
||||
createIndexWithReplicas.setJsonEntity(recoverQuickly);
|
||||
useIgnoreMultipleMatchingTemplatesWarningsHandler(createIndexWithReplicas);
|
||||
client().performRequest(createIndexWithReplicas);
|
||||
|
||||
Request createEmptyIndex = new Request("PUT", "/empty_index");
|
||||
// Ask for recovery to be quick
|
||||
createEmptyIndex.setJsonEntity(recoverQuickly);
|
||||
useIgnoreMultipleMatchingTemplatesWarningsHandler(createEmptyIndex);
|
||||
client().performRequest(createEmptyIndex);
|
||||
|
||||
bulk("test_index", "_OLD", 5);
|
||||
|
|
|
@ -7,7 +7,6 @@ package org.elasticsearch.upgrades;
|
|||
|
||||
import org.apache.http.HttpHeaders;
|
||||
import org.apache.http.HttpHost;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.elasticsearch.Version;
|
||||
import org.elasticsearch.client.Request;
|
||||
import org.elasticsearch.client.RequestOptions;
|
||||
|
@ -31,7 +30,6 @@ import java.util.Map;
|
|||
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
|
||||
@LuceneTestCase.AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/58807")
|
||||
public class TokenBackwardsCompatibilityIT extends AbstractUpgradeTestCase {
|
||||
|
||||
private Collection<RestClient> twoClients = null;
|
||||
|
@ -407,6 +405,7 @@ public class TokenBackwardsCompatibilityIT extends AbstractUpgradeTestCase {
|
|||
" \"token\": \"" + accessToken + "\",\n" +
|
||||
" \"refresh_token\": \"" + refreshToken + "\"\n" +
|
||||
"}");
|
||||
useIgnoreMultipleMatchingTemplatesWarningsHandler(indexRequest);
|
||||
Response indexResponse1 = client.performRequest(indexRequest);
|
||||
assertOK(indexResponse1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue