blob: d40062ec1244a63a9b5c2609d17ec04611ca95e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|