diff options
author | Valerij Fredriksen <valerijf@verizonmedia.com> | 2019-09-13 14:45:41 +0200 |
---|---|---|
committer | Valerij Fredriksen <valerijf@verizonmedia.com> | 2019-09-13 14:45:41 +0200 |
commit | 731d4fe97b56d6a0ad2f37e19c2d97b366072d47 (patch) | |
tree | ec9978708c7646764508921a6956fff1d19cccd8 /controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java | |
parent | 5fd8f3b78bc5968290d4fb7cd316e8cecde95666 (diff) |
Account for advertised resources in AWS
Diffstat (limited to 'controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java')
-rw-r--r-- | controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java index 7aa18dba5db..edf1948a256 100644 --- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java +++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java @@ -439,9 +439,19 @@ public class InternalStepRunnerTest { assertFile("test_runner_services.xml-cd", new String(InternalStepRunner.servicesXml(AthenzDomain.from("vespa.vespa.cd"), true, false, + false, Optional.of("d-2-12-75")))); } + @Test + public void generates_correct_services_xml_in_aws() { + assertFile("test_runner_services.xml-aws", new String(InternalStepRunner.servicesXml(AthenzDomain.from("vespa.vespa.cd"), + true, + true, + false, + Optional.empty()))); + } + private void assertFile(String resourceName, String actualContent) { try { Path path = Paths.get("src/test/resources/").resolve(resourceName); |