tests: use an alternative curl request to ensure requests go to the local nginx

The alternative is to rely on DNS and /etc/hosts rules, which isn't quite great because it requires modifying the system.
This commit is contained in:
Jose Diaz-Gonzalez committed 2023-08-05 10:58:57 -04:00
1 parent 04905bf553
commit 5717e71755
3 files changed
+14 -6

No files matched your search

+4 -5
View File
@@ -31,11 +31,10 @@ teardown() {
check_urls http://${TEST_APP}.dokku.me:3003
check_urls http://www.test.app.dokku.me:3000
check_urls http://www.test.app.dokku.me:3003
assert_http_success http://${TEST_APP}.dokku.me:3000
assert_http_success http://${TEST_APP}.dokku.me:3003
assert_http_success http://www.test.app.dokku.me:3000
assert_http_success http://www.test.app.dokku.me:3003
assert_http_localhost_success "http" "${TEST_APP}.dokku.me" "3000"
assert_http_localhost_success "http" "${TEST_APP}.dokku.me" "3003"
assert_http_localhost_success "http" "www.test.app.dokku.me" "3000"
assert_http_localhost_success "http" "www.test.app.dokku.me" "3003"
}
@test "(nginx-vhosts) proxy:build-config (multiple networks)" {