diff --git a/test/colab_test.sh b/test/colab_test.sh index 0edb92e..68f07e8 100644 --- a/test/colab_test.sh +++ b/test/colab_test.sh @@ -21,16 +21,16 @@ test_nginx_responds() { } test_nginx_virtualhost() { - local title="$(curl --header 'Host: softwarepublico.dev' http://$integration/dashboard | grep '' | sed -e 's/^\s*//')" + local title="$(curl --header 'Host: softwarepublico.dev' http://$config_external_hostname/dashboard | grep '<title>' | sed -e 's/^\s*//')" assertEquals "<title>Home - Colab" "$title" } test_reverse_proxy_gitlab() { - assertTrue 'Reverse proxy for gitlab' "curl --header 'Host: softwarepublico.dev' http://$integration/gitlab/public/projects | grep -i ''" + assertTrue 'Reverse proxy for gitlab' "curl --header 'Host: softwarepublico.dev' http://$config_external_hostname/gitlab/public/projects | grep -i ''" } test_reverse_proxy_noosfero() { - assertTrue 'Reverse proxy for noosfero' "curl --header 'Host: softwarepublico.dev' http://$integration/social/search/people | grep -i ''" + assertTrue 'Reverse proxy for noosfero' "curl --header 'Host: softwarepublico.dev' http://$config_external_hostname/social/search/people | grep -i ''" } load_shunit2 diff --git a/test/mailman_test.sh b/test/mailman_test.sh index 020d950..a6f20b0 100644 --- a/test/mailman_test.sh +++ b/test/mailman_test.sh @@ -21,7 +21,7 @@ test_mailman_delivery() { } test_mailman_web_interface() { - local title="$(curl --location --header 'Host: listas.softwarepublico.dev' http://$integration/mailman/cgi-bin/listinfo | grep -i '')" + local title="$(curl --location --header 'Host: listas.softwarepublico.dev' http://$config_external_hostname/mailman/cgi-bin/listinfo | grep -i '<title>')" assertEquals "<TITLE>listas.softwarepublico.dev Mailing Lists" "$title" } diff --git a/test/noosfero_test.sh b/test/noosfero_test.sh index 4eb316e..2b09c55 100644 --- a/test/noosfero_test.sh +++ b/test/noosfero_test.sh @@ -19,12 +19,12 @@ test_reverse_proxy_noosfero() { } test_reverse_proxy_static_files() { - local content_type="$(curl-host softwarepublico.dev --head http://$social/social/images/noosfero-network.png | grep-header Content-Type)" + local content_type="$(curl-host softwarepublico.dev --head http://$config_external_hostname/social/images/noosfero-network.png | grep-header Content-Type)" assertEquals "Content-Type: image/png" "$content_type" } test_redirect_with_correct_hostname_behind_proxy() { - local redirect="$(curl-host softwarepublico.dev --head https://softwarepublico.dev/social/search/contents | grep-header Location)" + local redirect="$(curl-host softwarepublico.dev --head https://$config_external_hostname/social/search/contents | grep-header Location)" assertEquals "Location: https://softwarepublico.dev/social/search/articles" "$redirect" } -- libgit2 0.21.2