diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-30 20:50:18 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-30 20:50:18 +0100 |
commit | 3b3c80db30af556d5da7301037bf16782216d0bd (patch) | |
tree | 8d4c5dac1a73e9a5bd0af4923982bc84566ffd24 /test/it-install-remove.bats | |
parent | a4215743db91c4b7050dfda32a670814a101b773 (diff) | |
download | app.sh-3b3c80db30af556d5da7301037bf16782216d0bd.tar.gz app.sh-3b3c80db30af556d5da7301037bf16782216d0bd.tar.bz2 app.sh-3b3c80db30af556d5da7301037bf16782216d0bd.tar.xz app.sh-3b3c80db30af556d5da7301037bf16782216d0bd.zip |
bin/app-init:
o Adding -p to mkdir so parent directories are created.
libexec/app-resolver-maven:
o Not using command expansion to make sure "set -e" works as normal.
o Adding a basic check that xmlstartlet has a useful output.
Diffstat (limited to 'test/it-install-remove.bats')
-rwxr-xr-x | test/it-install-remove.bats | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/it-install-remove.bats b/test/it-install-remove.bats new file mode 100755 index 0000000..96bd2db --- /dev/null +++ b/test/it-install-remove.bats @@ -0,0 +1,40 @@ +#!/usr/bin/env bats +# vim: set filetype=sh: + +load utils + +@test "install remove roundtrip" { + mkzip "app-a" + install_artifact + + describe "Installing app" + app init -d my-app/prod maven -r $REPO_URL org.example:app-a:1.0-SNAPSHOT; echo_lines + eq '$status' 0 + + is_directory "my-app/prod/.app" + cd my-app/prod + + describe "Setting property" + app conf set env.TEST_PROPERTY awesome; echo_lines + eq '$status' 0 + + describe "Starting" + app start; echo_lines + eq '$status' 0 + can_read .app/pid + + describe "Stopping" + app stop + eq '$status' 0 + echo_lines + can_not_read .app/pid + + can_read "logs/app-a.log" + can_read "logs/app-a.env" + can_read "current/foo.conf" + + [ "`cat logs/app-a.env`" = "TEST_PROPERTY=awesome" ] + [ "`cat current/foo.conf`" = "hello" ] + + # TODO: Remove the version +} |