diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-10-27 15:14:18 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-10-27 15:14:18 +0100 |
commit | 0d92ff5fd34d79b54c30c38ac41bc600acf7b7c4 (patch) | |
tree | 7807b9d017e44bc522a75f40c7a4589d994455f8 /test/it.bats | |
parent | 5821a949035a5e098a2c6b395818f5efa1c66f8e (diff) | |
download | appstore-0d92ff5fd34d79b54c30c38ac41bc600acf7b7c4.tar.gz appstore-0d92ff5fd34d79b54c30c38ac41bc600acf7b7c4.tar.bz2 appstore-0d92ff5fd34d79b54c30c38ac41bc600acf7b7c4.tar.xz appstore-0d92ff5fd34d79b54c30c38ac41bc600acf7b7c4.zip |
o Dropping the CSV file for using a native app config file instead.
o Using apache as an example app.
o Adding appstore-add-app as a utility to register appliations.
Diffstat (limited to 'test/it.bats')
-rw-r--r-- | test/it.bats | 22 |
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` |