diff options
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 +} |