diff --git a/tests/service_link.bats b/tests/service_link.bats index 7db60eb..109bf75 100755 --- a/tests/service_link.bats +++ b/tests/service_link.bats @@ -114,18 +114,26 @@ teardown() { dokku "$PLUGIN_COMMAND_PREFIX:unlink" ls my-app } -@test "($PLUGIN_COMMAND_PREFIX:unlink) respects --no-restart" { +@test "($PLUGIN_COMMAND_PREFIX:link) respects --no-restart" { run dokku "$PLUGIN_COMMAND_PREFIX:link" ls my-app --no-restart + echo "output: $output" + echo "status: $status" assert_output_contains "Restarting app my-app" 1 assert_success run dokku "$PLUGIN_COMMAND_PREFIX:unlink" ls my-app + echo "output: $output" + echo "status: $status" assert_success run dokku "$PLUGIN_COMMAND_PREFIX:link" ls my-app --no-restart + echo "output: $output" + echo "status: $status" assert_output_contains "Restarting app my-app" 0 assert_success run dokku "$PLUGIN_COMMAND_PREFIX:unlink" ls my-app + echo "output: $output" + echo "status: $status" assert_success } diff --git a/tests/service_unlink.bats b/tests/service_unlink.bats index c906455..fde385f 100755 --- a/tests/service_unlink.bats +++ b/tests/service_unlink.bats @@ -53,7 +53,20 @@ teardown() { } @test "($PLUGIN_COMMAND_PREFIX:unlink) respects --no-restart" { + run dokku "$PLUGIN_COMMAND_PREFIX:unlink" ls my-app + echo "output: $output" + echo "status: $status" + assert_output_contains "Restarting app my-app" 1 + assert_success + + run dokku "$PLUGIN_COMMAND_PREFIX:link" ls my-app + echo "output: $output" + echo "status: $status" + assert_success + run dokku "$PLUGIN_COMMAND_PREFIX:unlink" ls my-app --no-restart + echo "output: $output" + echo "status: $status" assert_output_contains "Restarting app my-app" 0 assert_success }