Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/acceptance/auth_test.go')
-rw-r--r--test/acceptance/auth_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/acceptance/auth_test.go b/test/acceptance/auth_test.go
index 3c616f7c..c3155400 100644
--- a/test/acceptance/auth_test.go
+++ b/test/acceptance/auth_test.go
@@ -94,9 +94,13 @@ func TestWhenLoginCallbackWithUnencryptedCode(t *testing.T) {
url, err := url.Parse(rsp.Header.Get("Location"))
require.NoError(t, err)
+ header := http.Header{
+ "Cookie": []string{cookie},
+ }
+
// Go to auth page with correct state will cause fetching the token
- authrsp, err := GetPageFromListenerWithCookie(t, httpsListener, "projects.gitlab-example.com", "/auth?code=1&state="+
- url.Query().Get("state"), cookie)
+ authrsp, err := GetPageFromListenerWithHeaders(t, httpsListener, "projects.gitlab-example.com", "/auth?code=1&state="+
+ url.Query().Get("state"), header)
require.NoError(t, err)
defer authrsp.Body.Close()