feat: add tests for all help commands
This commit is contained in:
@@ -18,6 +18,20 @@ teardown() {
|
||||
global_teardown
|
||||
}
|
||||
|
||||
@test "(config) config:help" {
|
||||
run /bin/bash -c "dokku config"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_output_contains "Manage global and app-specific config vars"
|
||||
help_output="$output"
|
||||
|
||||
run /bin/bash -c "dokku config:help"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_output_contains "Manage global and app-specific config vars"
|
||||
assert_output "$help_output"
|
||||
}
|
||||
|
||||
@test "(config) config:set --global" {
|
||||
run ssh dokku@dokku.me config:set --global test_var=true test_var2=\"hello world\" test_var3='double\"quotes'
|
||||
echo "output: $output"
|
||||
|
||||
Reference in New Issue
Block a user