aboutsummaryrefslogtreecommitdiff
path: root/test/it-install-remove.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/it-install-remove.bats')
-rwxr-xr-xtest/it-install-remove.bats25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/it-install-remove.bats b/test/it-install-remove.bats
new file mode 100755
index 0000000..98a79c9
--- /dev/null
+++ b/test/it-install-remove.bats
@@ -0,0 +1,25 @@
+#!/usr/bin/env bats
+# vim: set filetype=sh:
+
+load utils
+
+@test "install remove roundtrip" {
+ mkzip "app-a"
+ a="-n app-a -i prod"
+ app instance install \
+ -r file \
+ -u $BATS_TEST_DIRNAME/data/app-a.zip \
+ $a
+
+ [ ! -r .app/var/pid/$name-$instance.pid ]
+ app $a operate start; echo_lines
+ [ -r .app/var/pid/$name-$instance.pid ]
+
+ app $a operate stop; echo_lines
+ [ ! -r .app/var/pid/$name-$instance.pid ]
+
+# app instance install \
+# -r file \
+# -u $HOME/.m2/repository/io/trygvis/appsh/examples/jenkins/1.0-SNAPSHOT/jenkins-1.0-SNAPSHOT.zip \
+# -n jenkins -i env-a
+}