From 34e60841a44ee688792e87863aa67db469d39fa8 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 22 Oct 2013 20:40:50 +0200 Subject: wip --- test/it.bats | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test/it.bats (limited to 'test/it.bats') 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 +} -- cgit v1.2.3