summaryrefslogtreecommitdiff
path: root/test/it.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/it.bats')
-rw-r--r--test/it.bats22
1 files changed, 17 insertions, 5 deletions
diff --git a/test/it.bats b/test/it.bats
index 406d5fc..df0d4b9 100644
--- a/test/it.bats
+++ b/test/it.bats
@@ -4,8 +4,8 @@
load utils
@test "Happy day" {
- mkzip my-webapp
- install_artifact "my-webapp"
+# describe "Installing Maven artifacts"
+# install_artifact "my-webapp"
# install_artifact "my-webapp" 1.0
cd $BATS_TMPDIR
@@ -13,16 +13,28 @@ load utils
mkdir -p client server
cd client
+ describe "appstore init"
appstore init "localhost" "$BATS_TMPDIR/appstore/server" "mysetup"
cd mysetup
+ describe "appstore add-app"
# Making assertions easier.
git config user.name "Test Case"
git config user.email tester@example.org
- echo "frontend,maven,org.example:my-webapp:1.0-SNAPSHOT,1.0-SNAPSHOT,enabled" >> apps.csv
- echo "backend,maven,org.example:my-webapp:1.0-SNAPSHOT,1.0-SNAPSHOT,enabled" >> apps.csv
- echo "left,maven,org.example:my-webapp:1.0-SNAPSHOT,1.0-SNAPSHOT,disabled" >> apps.csv
+ appstore add-app frontend file $BATS_TEST_DIRNAME/data/my-webapp.zip 1.0-SNAPSHOT enabled
+ app conf set -f frontend.config myapp.port 8880
+
+ appstore add-app backend file $BATS_TEST_DIRNAME/data/my-webapp.zip 1.0-SNAPSHOT enabled
+ app conf set -f backend.config myapp.port 8881
+
+ appstore add-app left maven org.example:my-webapp:1.0-SNAPSHOT 1.0-SNAPSHOT disabled
+ app conf set -f left.config myapp.port 8882
+
+ appstore add-app right maven org.example:my-webapp:1.0-SNAPSHOT 1.0-SNAPSHOT disabled
+ # no myapp.port
+
+ describe "git commit & push"
git commit -m "o Adding app-1." -a
git push cloud master
eq "ssh://localhost$BATS_TMPDIR/appstore/server/repos/mysetup" `git config remote.cloud.url`