Skip to content

Commit 6840634

Browse files
stephenfinzetaab
andauthored
Bump gophercloud to v2.8.0 (#3006)
Simply: go get -u github.com/gophercloud/gophercloud/[email protected] go mod tidy Followed by some fixes to a test (my fault: I didn't consider our test framework part of the public API when I made and backported that change /o\). Signed-off-by: Stephen Finucane <[email protected]> Co-authored-by: Jesse Haka <[email protected]>
1 parent a9d8735 commit 6840634

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+
180180
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
181181
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
182182
github.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=
185185
github.com/gophercloud/utils/v2 v2.0.0-20250212084022-725b94822eeb h1:TQTXVYXL3d0zRAybRUKKboO0z/XAsXEfU6Oax8n00kc=
186186
github.com/gophercloud/utils/v2 v2.0.0-20250212084022-725b94822eeb/go.mod h1:tIUw/gFHOB6lFV9LhzNZg5jfCLYMxI2lC1dZUa7NlHM=
187187
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 h1:JeSE6pjso5THxAzdVpqr6/geYxZytqFMBCOtn/ujyeo=

pkg/identity/keystone/token_getter_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ import (
2626
)
2727

2828
func 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",

0 commit comments

Comments
 (0)