aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-10-17 16:04:13 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-10-17 21:05:49 +0200
commit2670ff51db825005901099e490fa2332de6fb6fe (patch)
tree5d9942f011545f2c314781b5a2dd9fd914feedcb /test
parent3d9342dfdad8fb8e350227666a1dc2c658be8e08 (diff)
downloadapp.sh-2670ff51db825005901099e490fa2332de6fb6fe.tar.gz
app.sh-2670ff51db825005901099e490fa2332de6fb6fe.tar.bz2
app.sh-2670ff51db825005901099e490fa2332de6fb6fe.tar.xz
app.sh-2670ff51db825005901099e490fa2332de6fb6fe.zip
o Adding a list-group method to list.
Diffstat (limited to 'test')
-rwxr-xr-xtest/app-conf.bats24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/app-conf.bats b/test/app-conf.bats
index eb2d325..10e2757 100755
--- a/test/app-conf.bats
+++ b/test/app-conf.bats
@@ -51,6 +51,30 @@ group.foo bar " ]
[ $status -eq 1 ]
}
+@test "./app conf list-group" {
+ i=env-a
+ n=app-a
+
+ mkzip "app-a"
+ app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n $n -i $i -v 1.0
+ [ $status -eq 0 ]
+
+ app -n $n -i $i conf set mygroup.a 1
+ [ $status -eq 0 ]
+ app -n $n -i $i conf set mygroup.b 1
+ [ $status -eq 0 ]
+ app -n $n -i $i conf set mygroup.c 2
+ [ $status -eq 0 ]
+ app -n $n -i $i conf set othergroup.a 1
+ [ $status -eq 0 ]
+
+ app -n $n -i $i conf list-group mygroup; echo_lines
+ [ $status -eq 0 ]
+ [ "$output" = "a 1
+b 1
+c 2 " ]
+}
+
@test "./app conf set" {
i=env-a
n=app-a