aboutsummaryrefslogtreecommitdiff
path: root/test/X-app-list.bats
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-10-27 23:30:49 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-10-27 23:30:49 +0100
commite694d9024cddf4dd54efd828927e3fd5e70b6c3a (patch)
treedcefc5f39fc837736b9822b7446d2b6eb4e6f802 /test/X-app-list.bats
parent38d7ffca0b591694c17509d20c8bf55606e60536 (diff)
downloadapp.sh-e694d9024cddf4dd54efd828927e3fd5e70b6c3a.tar.gz
app.sh-e694d9024cddf4dd54efd828927e3fd5e70b6c3a.tar.bz2
app.sh-e694d9024cddf4dd54efd828927e3fd5e70b6c3a.tar.xz
app.sh-e694d9024cddf4dd54efd828927e3fd5e70b6c3a.zip
o Removing all old code (X files).
o Making sure APPSH_HOME is 1) exported and, 2) always prepended to $PATH. o More documentation on what a zip file actually looks like and how to create hooks.
Diffstat (limited to 'test/X-app-list.bats')
-rwxr-xr-xtest/X-app-list.bats102
1 files changed, 0 insertions, 102 deletions
diff --git a/test/X-app-list.bats b/test/X-app-list.bats
deleted file mode 100755
index 3092837..0000000
--- a/test/X-app-list.bats
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/usr/bin/env bats
-# vim: set filetype=sh:
-
-load utils
-
-@test "./app instance list - all apps" {
- mkzip "app-a"
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
- [ $status -eq 0 ]
-
- app instance list; echo_lines
- [ $status -eq 0 ]
- [ "$output" = "Name Instance Version
-app-a env-a 1.1
-app-a env-b 1.0
-app-b env-a 1.0
-app-b env-b 1.0 " ]
-
- app instance list -P name -P instance -P version; echo_lines
- [ $status -eq 0 ]
- [ "$output" = "app-a:env-a:1.1
-app-a:env-b:1.0
-app-b:env-a:1.0
-app-b:env-b:1.0" ]
-}
-
-@test "./app instance list - -n filter" {
- mkzip "app-a"
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
- [ $status -eq 0 ]
-
- app instance list -n foo; echo_lines
- [ $status -eq 0 ]
- [ "$output" = "Name Instance Version " ]
-
- app instance list -n app-a; echo_lines
- [ $status -eq 0 ]
- [ "$output" = "Name Instance Version
-app-a env-a 1.1
-app-a env-b 1.0 " ]
-
- app instance list -n app-a -P name -P instance -P version; echo_lines
- [ $status -eq 0 ]
- [ "$output" = "app-a:env-a:1.1
-app-a:env-b:1.0" ]
-}
-
-@test "./app instance list - -i filter" {
- mkzip "app-a"
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
- [ $status -eq 0 ]
-
- app instance list -i foo; echo_lines
- [ $status -eq 0 ]
- [ "$output" = "Name Instance Version " ]
-
- app instance list -i env-a; echo_lines
- [ $status -eq 0 ]
- [ "$output" = "Name Instance Version
-app-a env-a 1.1
-app-b env-a 1.0 " ]
-
- app instance list -i env-a -P name -P instance -P version; echo_lines
- [ $status -eq 0 ]
- [ "$output" = "app-a:env-a:1.1
-app-b:env-a:1.0" ]
-}
-
-@test "./app instance list - -n + -i filter" {
- mkzip "app-a"
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
- app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
- [ $status -eq 0 ]
-
- app instance list -n foo -i bar; echo_lines
- [ $status -eq 0 ]
- [ "$output" = "Name Instance Version " ]
-
- app instance list -n app-a -i env-a; echo_lines
- [ $status -eq 0 ]
- [ "$output" = "Name Instance Version
-app-a env-a 1.1 " ]
-
- app instance list -n app-a -i env-a -P name -P instance -P version; echo_lines
- [ $status -eq 0 ]
- [ "$output" = "app-a:env-a:1.1" ]
-}