From 0d92ff5fd34d79b54c30c38ac41bc600acf7b7c4 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 27 Oct 2013 15:14:18 +0100 Subject: 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. --- test/it.bats | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'test/it.bats') 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` -- cgit v1.2.3