Skip to content

Commit

Permalink
tests: add test for --no-restart to link tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Diaz-Gonzalez committed Feb 21, 2023
1 parent 7264c74 commit 00c1c84
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/service_link.bats
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,19 @@ teardown() {
assert_success
dokku "$PLUGIN_COMMAND_PREFIX:unlink" ls my-app
}

@test "($PLUGIN_COMMAND_PREFIX:unlink) respects --no-restart" {
run dokku "$PLUGIN_COMMAND_PREFIX:link" ls my-app --no-restart
assert_output_contains "Restarting app my-app" 1
assert_success

run dokku "$PLUGIN_COMMAND_PREFIX:unlink" ls my-app
assert_success

run dokku "$PLUGIN_COMMAND_PREFIX:link" ls my-app --no-restart
assert_output_contains "Restarting app my-app" 0
assert_success

run dokku "$PLUGIN_COMMAND_PREFIX:unlink" ls my-app
assert_success
}

0 comments on commit 00c1c84

Please sign in to comment.