From 2670ff51db825005901099e490fa2332de6fb6fe Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 17 Oct 2012 16:04:13 +0200 Subject: o Adding a list-group method to list. --- test/app-conf.bats | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'test') 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 -- cgit v1.2.3