diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-02-04 17:38:32 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-02-04 17:38:32 +0100 |
commit | 32826f3c989e63f53510a9bdccd1855a9ae00636 (patch) | |
tree | 8f16fc8e7cb218a508bf58ee959ad7a978d6721f /test/it-install-remove.bats | |
parent | fc7a39f18241ab731d87f7a80ef2bf36151dc184 (diff) | |
download | app.sh-32826f3c989e63f53510a9bdccd1855a9ae00636.tar.gz app.sh-32826f3c989e63f53510a9bdccd1855a9ae00636.tar.bz2 app.sh-32826f3c989e63f53510a9bdccd1855a9ae00636.tar.xz app.sh-32826f3c989e63f53510a9bdccd1855a9ae00636.zip |
o Adding a file resolver.
o Getting the IT to work on windows.
Diffstat (limited to 'test/it-install-remove.bats')
-rwxr-xr-x | test/it-install-remove.bats | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/test/it-install-remove.bats b/test/it-install-remove.bats index 96bd2db..8be9365 100755 --- a/test/it-install-remove.bats +++ b/test/it-install-remove.bats @@ -3,12 +3,23 @@ load utils -@test "install remove roundtrip" { +install_maven() { mkzip "app-a" install_artifact +} + +install_file() { + mkzip "app-a" +} + +do_test() { + install="$1"; shift + init_args="$1"; shift + + $install describe "Installing app" - app init -d my-app/prod maven -r $REPO_URL org.example:app-a:1.0-SNAPSHOT; echo_lines + app init -d my-app/prod $init_args; echo_lines eq '$status' 0 is_directory "my-app/prod/.app" @@ -35,6 +46,12 @@ load utils [ "`cat logs/app-a.env`" = "TEST_PROPERTY=awesome" ] [ "`cat current/foo.conf`" = "hello" ] +} + +@test "install+upgrade; resolver=maven" { +# do_test install_maven "maven -r $REPO_URL org.example:app-a:1.0-SNAPSHOT" +} - # TODO: Remove the version +@test "install+upgrade; resolver=file" { + do_test install_file "file $APPSH_HOME/test/data/app-a.zip" } |