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

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-11-16 01:10:53 -05:00
1 parent 406a82de29
commit 9411c4ddc1
1 file changed
+6 -1
+6 -1
View File
@@ -486,10 +486,15 @@ teardown() {
@test "(config) global config (dockerfile)" { @test "(config) global config (dockerfile)" {
run deploy_app dockerfile run deploy_app dockerfile
run /bin/bash -c "dokku run $TEST_APP env | grep -E '^global_test=true'"
echo "output: $output" echo "output: $output"
echo "status: $status" echo "status: $status"
assert_success 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" { @test "(config) config:show" {