aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java
diff options
context:
space:
mode:
authorValerij Fredriksen <valerijf@verizonmedia.com>2019-09-13 14:45:41 +0200
committerValerij Fredriksen <valerijf@verizonmedia.com>2019-09-13 14:45:41 +0200
commit731d4fe97b56d6a0ad2f37e19c2d97b366072d47 (patch)
treeec9978708c7646764508921a6956fff1d19cccd8 /controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java
parent5fd8f3b78bc5968290d4fb7cd316e8cecde95666 (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.java10
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);