From 1966ab9bf8592a32a7ff88e1d1439ed80f7f65bb Mon Sep 17 00:00:00 2001 From: Tuomo Ala-Vannesluoma Date: Sun, 12 Aug 2018 12:36:10 +0300 Subject: Use reserved namespace 'projects' for the redirect uri to handle situation where root pages domain is not handled with pages daemon --- helpers_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'helpers_test.go') diff --git a/helpers_test.go b/helpers_test.go index 8ee27d0a..83107488 100644 --- a/helpers_test.go +++ b/helpers_test.go @@ -148,7 +148,7 @@ func RunPagesProcessWithAuth(t *testing.T, pagesPath string, listeners []ListenS return runPagesProcess(t, true, pagesPath, listeners, promPort, nil, "-auth-client-id=1", "-auth-client-secret=1", "-auth-server=https://gitlab-auth.com", - "-auth-redirect-uri=https://gitlab-example.com/auth", + "-auth-redirect-uri=https://projects.gitlab-example.com/auth", "-auth-secret=something-very-secret") } @@ -156,7 +156,7 @@ func RunPagesProcessWithAuthServer(t *testing.T, pagesPath string, listeners []L return runPagesProcess(t, true, pagesPath, listeners, promPort, nil, "-auth-client-id=1", "-auth-client-secret=1", "-auth-server="+authServer, - "-auth-redirect-uri=https://gitlab-example.com/auth", + "-auth-redirect-uri=https://projects.gitlab-example.com/auth", "-auth-secret=something-very-secret") } @@ -164,7 +164,7 @@ func RunPagesProcessWithAuthServerWithSSL(t *testing.T, pagesPath string, listen return runPagesProcess(t, true, pagesPath, listeners, promPort, []string{"SSL_CERT_FILE=" + sslCertFile}, "-auth-client-id=1", "-auth-client-secret=1", "-auth-server="+authServer, - "-auth-redirect-uri=https://gitlab-example.com/auth", + "-auth-redirect-uri=https://projects.gitlab-example.com/auth", "-auth-secret=something-very-secret") } -- cgit v1.2.3