diff --git a/test/bin/curl b/test/bin/curl new file mode 100755 index 0000000..dd8bf04 --- /dev/null +++ b/test/bin/curl @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +unset http_proxy +unset https_proxy + +/usr/bin/curl \ + --silent \ + --noproxy '*' \ + --fail \ + --header 'Host: softwarepublico.dev' \ + "$@" diff --git a/test/colab_test.sh b/test/colab_test.sh index cc7a022..14048e2 100644 --- a/test/colab_test.sh +++ b/test/colab_test.sh @@ -13,16 +13,16 @@ test_colab_running() { } test_colab_responds() { - assertTrue 'colab responds' 'run_on integration curl --fail http://localhost:8001' + assertTrue 'colab responds' "run_on integration $curl http://localhost:8001" } test_nginx_responds() { - assertTrue 'nginx reponds' 'run_on integration curl --fail http://localhost' + assertTrue 'nginx reponds' "run_on integration $curl http://localhost" } test_nginx_virtualhost() { local ip="$(grep integration: nodes.yaml | cut -d : -f 2)" - local title="$(curl --silent --header 'Host: beta.softwarepublico.gov.br' http://$ip/dashboard | grep '