diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2022-03-17 12:50:40 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2022-03-17 12:50:40 +0100 |
commit | f63e9b5daf5549e5f6d0e195bf18eda642808040 (patch) | |
tree | 27a95e5b39348f78fe7ed46b179335dbba2e4550 /controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiTest.java | |
parent | 66075d95afe0105ae308712fb5d7c33329c6350a (diff) |
Change compile version computation to account for incompatibilities
Diffstat (limited to 'controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiTest.java')
-rw-r--r-- | controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiTest.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiTest.java index 74bab37773a..8ab43f15c89 100644 --- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiTest.java +++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiTest.java @@ -25,6 +25,7 @@ import com.yahoo.vespa.athenz.api.AthenzIdentity; import com.yahoo.vespa.athenz.api.AthenzPrincipal; import com.yahoo.vespa.athenz.api.AthenzUser; import com.yahoo.vespa.athenz.api.OAuthCredentials; +import com.yahoo.vespa.flags.PermanentFlags; import com.yahoo.vespa.hosted.controller.Application; import com.yahoo.vespa.hosted.controller.ControllerTester; import com.yahoo.vespa.hosted.controller.Instance; @@ -861,6 +862,7 @@ public class ApplicationApiTest extends ControllerContainerTest { // GET compile version for specific major deploymentTester.controllerTester().upgradeSystem(Version.fromString("7.0")); + deploymentTester.controllerTester().flagSource().withListFlag(PermanentFlags.INCOMPATIBLE_VERSIONS.id(), List.of("*"), String.class); tester.assertResponse(request("/application/v4/tenant/tenant1/application/application1/compile-version", GET) .userIdentity(USER_ID).properties(Map.of("allowMajor", "7")), "{\"compileVersion\":\"7.0.0\"}"); |