aboutsummaryrefslogtreecommitdiffstats
path: root/test/06-default.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/06-default.test')
-rw-r--r--test/06-default.test25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/06-default.test b/test/06-default.test
new file mode 100644
index 0000000..d40062e
--- /dev/null
+++ b/test/06-default.test
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+header "bosun"
+
+want <<EOF
+app-foo
+service-bar
+EOF
+
+assert success "bosun" "$BOSUN_CMD"
+assert_output_matches "lists active roles"
+
+want <<EOF
+bosun: no such command 'missing-command'
+usage: bosun add role ...
+ bosun flush
+ bosun [list [type ...]]
+ bosun rebuild [role ...]
+ bosun remove [role ...]
+EOF
+
+assert failure "missing-command" "$BOSUN_CMD" missing-command
+assert_output_matches "prints error message and usage"
+
+end