File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ require (
88 github.com/container-storage-interface/spec v1.11.0
99 github.com/go-chi/chi/v5 v5.2.2
1010 github.com/google/uuid v1.6.0
11- github.com/gophercloud/gophercloud/v2 v2.7 .0
11+ github.com/gophercloud/gophercloud/v2 v2.8 .0
1212 github.com/gophercloud/utils/v2 v2.0.0-20250212084022-725b94822eeb
1313 github.com/hashicorp/go-version v1.7.0
1414 github.com/kubernetes-csi/csi-lib-utils v0.20.0
Original file line number Diff line number Diff line change @@ -180,8 +180,8 @@ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+
180180github.com/google/uuid v1.3.0 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
181181github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0 =
182182github.com/google/uuid v1.6.0 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
183- github.com/gophercloud/gophercloud/v2 v2.7 .0 h1:o0m4kgVcPgHlcXiWAjoVxGd8QCmvM5VU+YM71pFbn0E =
184- github.com/gophercloud/gophercloud/v2 v2.7 .0 /go.mod h1:Ki/ILhYZr/5EPebrPL9Ej+tUg4lqx71/YH2JWVeU+Qk =
183+ github.com/gophercloud/gophercloud/v2 v2.8 .0 h1:of2+8tT6+FbEYHfYC8GBu8TXJNsXYSNm9KuvpX7Neqo =
184+ github.com/gophercloud/gophercloud/v2 v2.8 .0 /go.mod h1:Ki/ILhYZr/5EPebrPL9Ej+tUg4lqx71/YH2JWVeU+Qk =
185185github.com/gophercloud/utils/v2 v2.0.0-20250212084022-725b94822eeb h1:TQTXVYXL3d0zRAybRUKKboO0z/XAsXEfU6Oax8n00kc =
186186github.com/gophercloud/utils/v2 v2.0.0-20250212084022-725b94822eeb /go.mod h1:tIUw/gFHOB6lFV9LhzNZg5jfCLYMxI2lC1dZUa7NlHM =
187187github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 h1:JeSE6pjso5THxAzdVpqr6/geYxZytqFMBCOtn/ujyeo =
Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ import (
2626)
2727
2828func TestTokenGetter (t * testing.T ) {
29- th .SetupHTTP ()
30- defer th . TeardownHTTP ()
29+ fakeServer := th .SetupHTTP ()
30+ defer fakeServer . Teardown ()
3131
3232 const ID = "0123456789"
3333
34- th .Mux .HandleFunc ("/v3/auth/tokens" , func (w http.ResponseWriter , r * http.Request ) {
34+ fakeServer .Mux .HandleFunc ("/v3/auth/tokens" , func (w http.ResponseWriter , r * http.Request ) {
3535 w .Header ().Add ("X-Subject-Token" , ID )
3636 type AuthRequest struct {
3737 Auth struct {
@@ -83,7 +83,7 @@ func TestTokenGetter(t *testing.T) {
8383 // Correct password
8484 options := Options {
8585 AuthOptions : gophercloud.AuthOptions {
86- IdentityEndpoint : th .Endpoint (),
86+ IdentityEndpoint : fakeServer .Endpoint (),
8787 Username : "testuser" ,
8888 Password : "testpw" ,
8989 DomainName : "default" ,
You can’t perform that action at this time.
0 commit comments