test: ensure the deploy succeeds and then check the output vs using grep

This commit is contained in:
Jose Diaz-Gonzalez
2025-11-16 01:10:53 -05:00
parent 406a82de29
commit 9411c4ddc1

View File

@@ -486,10 +486,15 @@ teardown() {
@test "(config) global config (dockerfile)" {
run deploy_app dockerfile
run /bin/bash -c "dokku run $TEST_APP env | grep -E '^global_test=true'"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku run $TEST_APP env"
echo "output: $output"
echo "status: $status"
assert_success
assert_output_contains "global_test=true"
}
@test "(config) config:show" {