Skip to content

Commit 2012e99

Browse files
committed
Add acceptance tests for st2 K/V functionality
1 parent 21f5709 commit 2012e99

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/st2tests.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,20 @@ load "${BATS_HELPERS_DIR}/bats-file/load.bash"
5757
assert_success
5858
assert_line --partial 'chatops.notify'
5959
}
60+
61+
@test 'st2 key/value operations are functional' {
62+
run st2 key set foo bar
63+
assert_success
64+
65+
run st2 key get foo
66+
assert_success
67+
assert_line --partial 'bar'
68+
69+
run st2 key delete foo
70+
assert_line --partial '"foo" has been successfully deleted'
71+
assert_success
72+
73+
run st2 key get foo
74+
assert_line --partial '"foo" is not found'
75+
assert_failure
76+
}

0 commit comments

Comments
 (0)