Commit cd74d278ea235001ccaea9813d386893183cb1dc

Authored by Antonio Terceiro
1 parent 4408f0bf

Fix tests

test/colab_test.sh
... ... @@ -21,16 +21,16 @@ test_nginx_responds() {
21 21 }
22 22  
23 23 test_nginx_virtualhost() {
24   - local title="$(curl --header 'Host: softwarepublico.dev' http://$config_external_hostname/dashboard | grep '<title>' | sed -e 's/^\s*//')"
  24 + local title="$(curl --header 'Host: softwarepublico.dev' https://$config_external_hostname/dashboard | grep '<title>' | sed -e 's/^\s*//')"
25 25 assertEquals "<title>Home - Colab</title>" "$title"
26 26 }
27 27  
28 28 test_reverse_proxy_gitlab() {
29   - assertTrue 'Reverse proxy for gitlab' "curl --header 'Host: softwarepublico.dev' http://$config_external_hostname/gitlab/public/projects | grep -i '<meta.*gitlab.*>'"
  29 + assertTrue 'Reverse proxy for gitlab' "curl --header 'Host: softwarepublico.dev' https://$config_external_hostname/gitlab/public/projects | grep -i '<meta.*gitlab.*>'"
30 30 }
31 31  
32 32 test_reverse_proxy_noosfero() {
33   - assertTrue 'Reverse proxy for noosfero' "curl --header 'Host: softwarepublico.dev' http://$config_external_hostname/social/search/people | grep -i '<meta.*noosfero.*>'"
  33 + assertTrue 'Reverse proxy for noosfero' "curl --header 'Host: softwarepublico.dev' https://$config_external_hostname/social/search/people | grep -i '<meta.*noosfero.*>'"
34 34 }
35 35  
36 36 load_shunit2
... ...
test/noosfero_test.sh
... ... @@ -19,7 +19,7 @@ test_reverse_proxy_noosfero() {
19 19 }
20 20  
21 21 test_reverse_proxy_static_files() {
22   - local content_type="$(curl-host softwarepublico.dev --head http://$config_external_hostname/social/images/noosfero-network.png | grep-header Content-Type)"
  22 + local content_type="$(curl-host softwarepublico.dev --head https://$config_external_hostname/social/images/noosfero-network.png | grep-header Content-Type)"
23 23 assertEquals "Content-Type: image/png" "$content_type"
24 24 }
25 25  
... ...
test/redis_test.sh
... ... @@ -5,7 +5,7 @@ test_redis_running() {
5 5 }
6 6  
7 7 test_redis_listens_on_local_network() {
8   - assertTrue 'redis listening on local network' 'netcat -z -w 1 $database 6379'
  8 + assertTrue 'redis listening on local network' 'run_on integration redis-cli -h database get foo'
9 9 }
10 10  
11 11 load_shunit2
... ...