Skip to content

Commit 2b6f248

Browse files
authored
Fix type name in testSystemIndexMetadataIsUpgraded (elastic#63506)
This test used _doc as the mapping type name, which needs to be set to doc for versions prior to 6.7.0. This commit fixes the test to use the proper type name for the current BWC version.
1 parent f42aa15 commit 2b6f248

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,6 @@ public void testRecoveryWithTranslogRetentionDisabled() throws Exception {
14611461
}
14621462

14631463
@SuppressWarnings("unchecked")
1464-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/63457")
14651464
public void testSystemIndexMetadataIsUpgraded() throws Exception {
14661465
final String systemIndexWarning = "this request accesses system indices: [.tasks], but in a future major version, direct " +
14671466
"access to system indices will be prevented by default";
@@ -1473,7 +1472,7 @@ public void testSystemIndexMetadataIsUpgraded() throws Exception {
14731472

14741473
Request bulk = new Request("POST", "/_bulk");
14751474
bulk.addParameter("refresh", "true");
1476-
bulk.setJsonEntity("{\"index\": {\"_index\": \"test_index_old\", \"_type\" : \"_doc\"}}\n" +
1475+
bulk.setJsonEntity("{\"index\": {\"_index\": \"test_index_old\", \"_type\" : \"" + type + "\"}}\n" +
14771476
"{\"f1\": \"v1\", \"f2\": \"v2\"}\n");
14781477
if (isRunningAgainstAncientCluster() == false) {
14791478
bulk.setOptions(expectWarnings(RestBulkAction.TYPES_DEPRECATION_MESSAGE));

0 commit comments

Comments
 (0)