diff --git a/test/colab_test.sh b/test/colab_test.sh index 68f07e8..581c71a 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://$config_external_hostname/dashboard | grep '' | sed -e 's/^\s*//')" + local title="$(curl --header 'Host: softwarepublico.dev' https://$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://$config_external_hostname/gitlab/public/projects | grep -i ''" + assertTrue 'Reverse proxy for gitlab' "curl --header 'Host: softwarepublico.dev' https://$config_external_hostname/gitlab/public/projects | grep -i ''" } test_reverse_proxy_noosfero() { - assertTrue 'Reverse proxy for noosfero' "curl --header 'Host: softwarepublico.dev' http://$config_external_hostname/social/search/people | grep -i ''" + assertTrue 'Reverse proxy for noosfero' "curl --header 'Host: softwarepublico.dev' https://$config_external_hostname/social/search/people | grep -i ''" } load_shunit2 diff --git a/test/noosfero_test.sh b/test/noosfero_test.sh index 2b09c55..00570e0 100644 --- a/test/noosfero_test.sh +++ b/test/noosfero_test.sh @@ -19,7 +19,7 @@ test_reverse_proxy_noosfero() { } test_reverse_proxy_static_files() { - local content_type="$(curl-host softwarepublico.dev --head http://$config_external_hostname/social/images/noosfero-network.png | grep-header Content-Type)" + local content_type="$(curl-host softwarepublico.dev --head https://$config_external_hostname/social/images/noosfero-network.png | grep-header Content-Type)" assertEquals "Content-Type: image/png" "$content_type" } diff --git a/test/redis_test.sh b/test/redis_test.sh index 10efe44..8045f53 100644 --- a/test/redis_test.sh +++ b/test/redis_test.sh @@ -5,7 +5,7 @@ test_redis_running() { } test_redis_listens_on_local_network() { - assertTrue 'redis listening on local network' 'netcat -z -w 1 $database 6379' + assertTrue 'redis listening on local network' 'run_on integration redis-cli -h database get foo' } load_shunit2 -- libgit2 0.21.2