From 6aabc65a25f4e54da64ee47b1c38df24d29f77bd Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Thu, 24 Oct 2019 15:45:53 +0200 Subject: Revert "Validate that instances have increasing conservativeness" This reverts commit 2725b89a0b7e86422919b942d73de23f338848bf. --- .../config/application/api/DeploymentSpecTest.java | 72 +--------------------- 1 file changed, 3 insertions(+), 69 deletions(-) (limited to 'config-model-api/src/test') diff --git a/config-model-api/src/test/java/com/yahoo/config/application/api/DeploymentSpecTest.java b/config-model-api/src/test/java/com/yahoo/config/application/api/DeploymentSpecTest.java index 080982cb785..584e7d406de 100644 --- a/config-model-api/src/test/java/com/yahoo/config/application/api/DeploymentSpecTest.java +++ b/config-model-api/src/test/java/com/yahoo/config/application/api/DeploymentSpecTest.java @@ -310,16 +310,16 @@ public class DeploymentSpecTest { "" + " " + " " + + " " + " " + " " + - " " + " " + "" ); DeploymentSpec spec = DeploymentSpec.fromXml(r); - assertEquals("canary", spec.requireInstance("instance1").upgradePolicy().toString()); - assertEquals("conservative", spec.requireInstance("instance2").upgradePolicy().toString()); + assertEquals("conservative", spec.requireInstance("instance1").upgradePolicy().toString()); + assertEquals("canary", spec.requireInstance("instance2").upgradePolicy().toString()); } @Test @@ -500,72 +500,6 @@ public class DeploymentSpecTest { } } - @Test(expected = IllegalArgumentException.class) - public void deploymentSpecWithIncreasinglyStrictUpgradePolicies() { - StringReader r = new StringReader( - "" + - " " + - " " + - " " + - " " + - "" - ); - DeploymentSpec.fromXml(r); - } - - @Test(expected = IllegalArgumentException.class) - public void deploymentSpecWithIncreasinglyStrictUpgradePoliciesInParallel() { - StringReader r = new StringReader( - "" + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - "" - ); - DeploymentSpec.fromXml(r); - } - - @Test(expected = IllegalArgumentException.class) - public void deploymentSpecWithIncreasinglyStrictUpgradePoliciesAfterParallel() { - StringReader r = new StringReader( - "" + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - "" - ); - DeploymentSpec.fromXml(r); - } - - @Test - public void deploymentSpecWithDifferentUpgradePoliciesInParallel() { - StringReader r = new StringReader( - "" + - " " + - " " + - " " + - " " + - " " + - " " + - "" - ); - DeploymentSpec spec = DeploymentSpec.fromXml(r); - assertEquals(DeploymentSpec.UpgradePolicy.conservative, spec.requireInstance("instance1").upgradePolicy()); - assertEquals(DeploymentSpec.UpgradePolicy.defaultPolicy, spec.requireInstance("instance2").upgradePolicy()); - } - @Test(expected = IllegalArgumentException.class) public void deploymentSpecWithIllegallyOrderedDeploymentSpec1() { StringReader r = new StringReader( -- cgit v1.2.3