Update shrink's bwc version to 6.1.0 and enabled bwc tests

This commit is contained in:
Boaz Leskes 2017-11-07 10:14:58 +01:00
parent 148376c2c5
commit ace446f335
5 changed files with 8 additions and 7 deletions

View File

@ -186,7 +186,7 @@ task verifyVersions {
* after the backport of the backcompat code is complete. * after the backport of the backcompat code is complete.
*/ */
allprojects { allprojects {
ext.bwc_tests_enabled = false ext.bwc_tests_enabled = true
} }
task verifyBwcTestsEnabled { task verifyBwcTestsEnabled {

View File

@ -27,7 +27,7 @@ public class ResizeAction extends Action<ResizeRequest, ResizeResponse, ResizeRe
public static final ResizeAction INSTANCE = new ResizeAction(); public static final ResizeAction INSTANCE = new ResizeAction();
public static final String NAME = "indices:admin/resize"; public static final String NAME = "indices:admin/resize";
public static final Version COMPATIBILITY_VERSION = Version.V_7_0_0_alpha1; // TODO remove this once it's backported public static final Version COMPATIBILITY_VERSION = Version.V_6_1_0; // TODO remove this once it's backported
private ResizeAction() { private ResizeAction() {
super(NAME); super(NAME);

View File

@ -19,6 +19,7 @@
package org.elasticsearch.cluster.routing.allocation; package org.elasticsearch.cluster.routing.allocation;
import org.elasticsearch.Version; import org.elasticsearch.Version;
import org.elasticsearch.action.admin.indices.shrink.ResizeAction;
import org.elasticsearch.cluster.ClusterName; import org.elasticsearch.cluster.ClusterName;
import org.elasticsearch.cluster.ClusterState; import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.ESAllocationTestCase; import org.elasticsearch.cluster.ESAllocationTestCase;
@ -245,7 +246,7 @@ public class ResizeAllocationDeciderTests extends ESAllocationTestCase {
public void testAllocateOnOldNode() { public void testAllocateOnOldNode() {
Version version = VersionUtils.randomVersionBetween(random(), Version.V_5_0_0, Version version = VersionUtils.randomVersionBetween(random(), Version.V_5_0_0,
VersionUtils.getPreviousVersion(Version.V_7_0_0_alpha1)); VersionUtils.getPreviousVersion(ResizeAction.COMPATIBILITY_VERSION));
ClusterState clusterState = createInitialClusterState(true, version); ClusterState clusterState = createInitialClusterState(true, version);
MetaData.Builder metaBuilder = MetaData.builder(clusterState.metaData()); MetaData.Builder metaBuilder = MetaData.builder(clusterState.metaData());
metaBuilder.put(IndexMetaData.builder("target").settings(settings(Version.CURRENT) metaBuilder.put(IndexMetaData.builder("target").settings(settings(Version.CURRENT)

View File

@ -1,8 +1,8 @@
--- ---
"Split index via API": "Split index via API":
- skip: - skip:
version: " - 6.99.99" version: " - 6.0.99"
reason: Added in 7.0.0 reason: Added in 6.1.0
- do: - do:
indices.create: indices.create:
index: source index: source

View File

@ -1,8 +1,8 @@
--- ---
"Split index ignores target template mapping": "Split index ignores target template mapping":
- skip: - skip:
version: " - 6.99.99" version: " - 6.0.99"
reason: added in 7.0.0 reason: Added in 6.1.0
# create index # create index
- do: - do: