Skip to content

Commit b0304d0

Browse files
authored
Fix dependencies (#692)
1 parent dd6130b commit b0304d0

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

e2e/e2e_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,12 +643,17 @@ var _ = Describe("Code Flow login/logout", func() {
643643
cookiesAfterRefresh := rClient.GetClient().Jar.Cookies(jarURI)
644644

645645
var accessCookieAfterRefresh string
646+
var testCookie string
646647
for _, cook := range cookiesAfterRefresh {
647648
if cook.Name == constant.AccessCookie {
648649
accessCookieAfterRefresh = cook.Value
649650
}
651+
if cook.Name == "test-cookie" {
652+
testCookie = cook.Value
653+
}
650654
}
651655

656+
Expect(testCookie).To(Equal("test_value"))
652657
_, err = jwt.ParseSigned(accessCookieAfterRefresh, constant.SignatureAlgs[:])
653658
Expect(err).NotTo(HaveOccurred())
654659

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ require (
127127
sigs.k8s.io/yaml v1.6.0 // indirect
128128
)
129129

130-
replace github.com/gogatekeeper/goproxy v1.8.2 => github.com/elazarl/goproxy v1.8.2
131-
132130
go 1.25.3
131+
132+
replace github.com/elazarl/goproxy v1.8.2 => github.com/gogatekeeper/goproxy v1.8.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ github.com/dgryski/trifles v0.0.0-20230903005119-f50d829f2e54 h1:SG7nF6SRlWhcT7c
6666
github.com/dgryski/trifles v0.0.0-20230903005119-f50d829f2e54/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA=
6767
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
6868
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
69-
github.com/elazarl/goproxy v1.8.2 h1:keGt9KHFAnrXFEctQuOF9NRxKFCXtd5cQg5PrBdeVW4=
70-
github.com/elazarl/goproxy v1.8.2/go.mod h1:b5xm6W48AUHNpRTCvlnd0YVh+JafCCtsLsJZvvNTz+E=
7169
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
7270
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
7371
github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=
@@ -105,6 +103,8 @@ github.com/goccy/go-yaml v1.18.0 h1:8W7wMFS12Pcas7KU+VVkaiCng+kG8QiFeFwzFb+rwuw=
105103
github.com/goccy/go-yaml v1.18.0/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA=
106104
github.com/gofrs/uuid v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1YrTJupqA=
107105
github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
106+
github.com/gogatekeeper/goproxy v1.8.2 h1:Huq7Sm+DVZiM2ABAEcMUYqFVOW9pJEmZAQSTDA63Kw0=
107+
github.com/gogatekeeper/goproxy v1.8.2/go.mod h1:b5xm6W48AUHNpRTCvlnd0YVh+JafCCtsLsJZvvNTz+E=
108108
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
109109
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
110110
github.com/google/flatbuffers v25.12.19+incompatible h1:haMV2JRRJCe1998HeW/p0X9UaMTK6SDo0ffLn2+DbLs=

pkg/testsuite/fake_upstream.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ func (f *FakeUpstreamService) ServeHTTP(wrt http.ResponseWriter, req *http.Reque
9898

9999
wrt.Header().Set(TestProxyAccepted, "true")
100100
wrt.Header().Set(constant.HeaderContentType, "application/json")
101+
wrt.Header().Add("Set-Cookie", "test-cookie=test_value")
101102

102103
content, err := json.Marshal(&FakeUpstreamResponse{
103104
// r.RequestURI is what was received by the proxy.

0 commit comments

Comments
 (0)