summaryrefslogtreecommitdiff
path: root/test/it.bats
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-10-22 20:40:50 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-10-22 20:40:50 +0200
commit34e60841a44ee688792e87863aa67db469d39fa8 (patch)
treed4ec57728121d87b029d8b729c98494356015061 /test/it.bats
parent4452df33f080c314f9b4c6a6504f254edc500282 (diff)
downloadappstore-34e60841a44ee688792e87863aa67db469d39fa8.tar.gz
appstore-34e60841a44ee688792e87863aa67db469d39fa8.tar.bz2
appstore-34e60841a44ee688792e87863aa67db469d39fa8.tar.xz
appstore-34e60841a44ee688792e87863aa67db469d39fa8.zip
wip
Diffstat (limited to 'test/it.bats')
-rw-r--r--test/it.bats28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/it.bats b/test/it.bats
new file mode 100644
index 0000000..d594049
--- /dev/null
+++ b/test/it.bats
@@ -0,0 +1,28 @@
+#!/usr/bin/env bats
+# vim: set filetype=sh:
+
+load utils
+
+@test "Happy day" {
+ mkzip my-webapp
+ install_artifact "my-webapp"
+ install_artifact "my-webapp" 1.0
+
+ cd $BATS_TMPDIR
+ cd appstore
+ mkdir -p client server
+ cd client
+
+ appstore init "localhost" "$BATS_TMPDIR/appstore/server" "mysetup"
+ cd mysetup
+
+ # Making assertions easier.
+ git config user.name "Test Case"
+ git config user.email tester@example.org
+
+ echo "app-1,maven,org.example:app-a:1.0-SNAPSHOT,1.0-SNAPSHOT,enabled" >> apps.csv
+ git commit -m "o Adding app-1." -a
+ git push cloud master
+ eq "ssh://localhost$BATS_TMPDIR/appstore/server/mysetup" `git config remote.cloud.url`
+ eq 1 2
+}