summaryrefslogtreecommitdiffstats
path: root/config-model/src/test
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2017-05-09 10:47:44 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2017-05-09 10:47:44 +0200
commit20b6883ae868ca9d9e5e7b7050fea3150f30d4e7 (patch)
tree2346fe2e9f4232001cce3ba170eb7e12a72dbf16 /config-model/src/test
parentd8dfc4f76766cf313d19693aa0b9c971d2a30f4e (diff)
Add upgrade to deployment.xml schema + deployment test
Diffstat (limited to 'config-model/src/test')
-rw-r--r--config-model/src/test/schema-test-files/deployment.xml10
-rwxr-xr-xconfig-model/src/test/sh/test-schema.sh4
2 files changed, 14 insertions, 0 deletions
diff --git a/config-model/src/test/schema-test-files/deployment.xml b/config-model/src/test/schema-test-files/deployment.xml
new file mode 100644
index 00000000000..92d59abbe53
--- /dev/null
+++ b/config-model/src/test/schema-test-files/deployment.xml
@@ -0,0 +1,10 @@
+<deployment version='1.0'>
+ <upgrade policy='canary'/>
+ <test/>
+ <staging/>
+ <prod global-service-id='qrs'>
+ <region active='true'>us-west-1</region>
+ <region active='true'>us-central-1</region>
+ <region active='true'>us-east-3</region>
+ </prod>
+</deployment>
diff --git a/config-model/src/test/sh/test-schema.sh b/config-model/src/test/sh/test-schema.sh
index fa7bcc54121..0ee73ffc3e3 100755
--- a/config-model/src/test/sh/test-schema.sh
+++ b/config-model/src/test/sh/test-schema.sh
@@ -27,3 +27,7 @@ $cmd
cmd="java -jar $jar src/main/resources/schema/services.rng src/test/schema-test-files/services-hosted-infrastructure.xml"
echo $cmd
$cmd
+
+cmd="java -jar $jar src/main/resources/schema/deployment.rng src/test/schema-test-files/deployment.xml"
+echo $cmd
+$cmd