diff options
Diffstat (limited to 'app/controllers/sessions/service_test.go')
| -rw-r--r-- | app/controllers/sessions/service_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/sessions/service_test.go b/app/controllers/sessions/service_test.go index c2de6f4..e5e08fa 100644 --- a/app/controllers/sessions/service_test.go +++ b/app/controllers/sessions/service_test.go @@ -10,7 +10,7 @@ import ( "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/oidc" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/pls" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/test" - "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/web/cookie" + "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/web" ) func TestService(t *testing.T) { @@ -46,7 +46,7 @@ func TestService(t *testing.T) { r := test.Request( "GET", "/session/callback?code="+code+"&state=invalid", - test.WithCookie(cookie.New("oauth_state", nonce)), + test.WithCookie(web.NewCookie("oauth_state", nonce)), ) tokens, err := svc.Exchange(r) @@ -59,7 +59,7 @@ func TestService(t *testing.T) { r := test.Request( "GET", "/session/callback?code=invalid", - test.WithCookie(cookie.New("oauth_state", nonce)), + test.WithCookie(web.NewCookie("oauth_state", nonce)), ) tokens, err := svc.Exchange(r) @@ -76,7 +76,7 @@ func TestService(t *testing.T) { r := test.Request( "GET", "/session/callback?code="+code+"&state="+nonce, - test.WithCookie(cookie.New("oauth_state", nonce)), + test.WithCookie(web.NewCookie("oauth_state", nonce)), ) tokens, err := svc.Exchange(r) |
