diff --git a/go.mod b/go.mod index fc9d8ce36f..90bd7aa89a 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/container-storage-interface/spec v1.11.0 github.com/go-chi/chi/v5 v5.2.2 github.com/google/uuid v1.6.0 - github.com/gophercloud/gophercloud/v2 v2.7.0 + github.com/gophercloud/gophercloud/v2 v2.8.0 github.com/gophercloud/utils/v2 v2.0.0-20250212084022-725b94822eeb github.com/hashicorp/go-version v1.7.0 github.com/kubernetes-csi/csi-lib-utils v0.20.0 diff --git a/go.sum b/go.sum index 2adc286977..2e2d26472f 100644 --- a/go.sum +++ b/go.sum @@ -170,8 +170,8 @@ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/gophercloud/gophercloud/v2 v2.7.0 h1:o0m4kgVcPgHlcXiWAjoVxGd8QCmvM5VU+YM71pFbn0E= -github.com/gophercloud/gophercloud/v2 v2.7.0/go.mod h1:Ki/ILhYZr/5EPebrPL9Ej+tUg4lqx71/YH2JWVeU+Qk= +github.com/gophercloud/gophercloud/v2 v2.8.0 h1:of2+8tT6+FbEYHfYC8GBu8TXJNsXYSNm9KuvpX7Neqo= +github.com/gophercloud/gophercloud/v2 v2.8.0/go.mod h1:Ki/ILhYZr/5EPebrPL9Ej+tUg4lqx71/YH2JWVeU+Qk= github.com/gophercloud/utils/v2 v2.0.0-20250212084022-725b94822eeb h1:TQTXVYXL3d0zRAybRUKKboO0z/XAsXEfU6Oax8n00kc= github.com/gophercloud/utils/v2 v2.0.0-20250212084022-725b94822eeb/go.mod h1:tIUw/gFHOB6lFV9LhzNZg5jfCLYMxI2lC1dZUa7NlHM= github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 h1:JeSE6pjso5THxAzdVpqr6/geYxZytqFMBCOtn/ujyeo= diff --git a/pkg/identity/keystone/token_getter_test.go b/pkg/identity/keystone/token_getter_test.go index 86b80a8ab2..ca8120bb73 100644 --- a/pkg/identity/keystone/token_getter_test.go +++ b/pkg/identity/keystone/token_getter_test.go @@ -26,12 +26,12 @@ import ( ) func TestTokenGetter(t *testing.T) { - th.SetupHTTP() - defer th.TeardownHTTP() + fakeServer := th.SetupHTTP() + defer fakeServer.Teardown() const ID = "0123456789" - th.Mux.HandleFunc("/v3/auth/tokens", func(w http.ResponseWriter, r *http.Request) { + fakeServer.Mux.HandleFunc("/v3/auth/tokens", func(w http.ResponseWriter, r *http.Request) { w.Header().Add("X-Subject-Token", ID) type AuthRequest struct { Auth struct { @@ -83,7 +83,7 @@ func TestTokenGetter(t *testing.T) { // Correct password options := Options{ AuthOptions: gophercloud.AuthOptions{ - IdentityEndpoint: th.Endpoint(), + IdentityEndpoint: fakeServer.Endpoint(), Username: "testuser", Password: "testpw", DomainName: "default",