feat: add tests for all help commands
This commit is contained in:
1 parent
7a1537e38e
commit
4a60497d3e
22 files changed
+295
-1
No files matched your search
@@ -17,6 +17,20 @@ teardown() {
|
||||
global_teardown
|
||||
}
|
||||
|
||||
@test "(nginx) nginx:help" {
|
||||
run /bin/bash -c "dokku nginx"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_output_contains "Manage the nginx proxy"
|
||||
help_output="$output"
|
||||
|
||||
run /bin/bash -c "dokku nginx:help"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_output_contains "Manage the nginx proxy"
|
||||
assert_output "$help_output"
|
||||
}
|
||||
|
||||
@test "(nginx-vhosts) nginx:build-config (domains:disable/enable)" {
|
||||
deploy_app
|
||||
dokku domains:disable $TEST_APP
|
||||
|
||||
Reference in new issue
Block a user