diff options
Diffstat (limited to '')
-rw-r--r-- | test/05-remove.test | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/05-remove.test b/test/05-remove.test new file mode 100644 index 0000000..1fa7d35 --- /dev/null +++ b/test/05-remove.test @@ -0,0 +1,29 @@ +#!/bin/sh + +header "bosun remove" + +assert success "remove app-foo" "$BOSUN_CMD" remove app-foo + +want <<EOF +./package.accept_keywords -> stow/service-bar/package.accept_keywords +./package.use -> stow/service-bar/package.use +EOF + +have_links +assert_output_matches "removes role" + +want <<EOF +bosun: this command requires at least one role +EOF + +assert failure "remove" "$BOSUN_CMD" remove +assert_output_matches "prints error message" + +want <<EOF +bosun: no such role 'role-missing' in $BOSUN_DIR +EOF + +assert failure "remove role-missing" "$BOSUN_CMD" remove role-missing +assert_output_matches "prints error message" + +end |