blob: 1fa7d35a3bdbdcd3c082d0d67bf674a808ee6732 (
plain) (
tree)
|
|
#!/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
|