diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2019-12-02 08:27:16 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2019-12-02 08:27:16 +0100 |
commit | b127005594b314a5fa5ffddcd458de80ca240eef (patch) | |
tree | 27aba5a8f5e3744a1d5942583c5412b263c905d8 /config-model/src/test/java/com/yahoo/config/model/ApplicationDeployTest.java | |
parent | e346de03f3ff1b37e9b7ce94399492fdebcd5ac6 (diff) |
Revert "Revert "Jvenstad/test steps in deployment spec""
This reverts commit 12fcbd278a5fadb085456f0cde9059755c0fe231.
Diffstat (limited to 'config-model/src/test/java/com/yahoo/config/model/ApplicationDeployTest.java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/config/model/ApplicationDeployTest.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/config-model/src/test/java/com/yahoo/config/model/ApplicationDeployTest.java b/config-model/src/test/java/com/yahoo/config/model/ApplicationDeployTest.java index 8a8b23bb0c8..cb1577417b4 100644 --- a/config-model/src/test/java/com/yahoo/config/model/ApplicationDeployTest.java +++ b/config-model/src/test/java/com/yahoo/config/model/ApplicationDeployTest.java @@ -212,7 +212,14 @@ public class ApplicationDeployTest { } @Test - public void testThatAppWithIllegalEmptyProdRegion() throws IOException { + public void testComplicatedDeploymentSpec() throws IOException { + File tmpDir = tmpFolder.getRoot(); + IOUtils.copyDirectory(new File(TESTDIR, "app_complicated_deployment_spec"), tmpDir); + ApplicationPackageTester.create(tmpDir.getAbsolutePath()); + } + + @Test + public void testAppWithEmptyProdRegion() throws IOException { File tmpDir = tmpFolder.getRoot(); IOUtils.copyDirectory(new File(TESTDIR, "empty_prod_region_in_deployment_xml"), tmpDir); ApplicationPackageTester.create(tmpDir.getAbsolutePath()); @@ -226,7 +233,7 @@ public class ApplicationDeployTest { ApplicationPackageTester.create(tmpDir.getAbsolutePath()); fail("Expected exception"); } catch (IllegalArgumentException e) { - assertEquals("XML error in deployment.xml: element \"delay\" not allowed here; expected the element end-tag or element \"region\" [8:25], input:\n", e.getMessage()); + assertEquals("XML error in deployment.xml: element \"instance\" not allowed here; expected the element end-tag or element \"delay\", \"region\", \"steps\" or \"test\" [7:30], input:\n", e.getMessage()); } } |