diff --git a/cookbooks/gitlab/templates/gitlab.yml.erb b/cookbooks/gitlab/templates/gitlab.yml.erb index 79b305d..8caca9b 100644 --- a/cookbooks/gitlab/templates/gitlab.yml.erb +++ b/cookbooks/gitlab/templates/gitlab.yml.erb @@ -1,6 +1,6 @@ production: &base gitlab: - host: localhost + host: softwarepublico.dev relative_url_root: /gitlab port: 80 # Set to 443 if using HTTPS https: false # Set to true if using HTTPS diff --git a/test/gitlab_test.sh b/test/gitlab_test.sh index 9ae5e3f..10ddb45 100644 --- a/test/gitlab_test.sh +++ b/test/gitlab_test.sh @@ -17,4 +17,9 @@ test_static_content_served_correctly() { assertTrue 'gitlab static content served by nginx' "run_on integration curl --head http://localhost:8081/gitlab/assets/$file | grep 'Content-Type: text/css'" } +test_redirects_to_the_correct_host() { + redirect=$(curl-host softwarepublico.dev --head https://softwarepublico.dev/gitlab/dashboard/projects | grep Location:) + assertEquals "Location: https://softwarepublico.dev/gitlab/users/sign_in" "$redirect" +} + . shunit2 -- libgit2 0.21.2