Skip to content

Commit ff8eff8

Browse files
committed
Add test recordings and update go-auth0's version
1 parent 10f1eb8 commit ff8eff8

File tree

5 files changed

+238
-99
lines changed

5 files changed

+238
-99
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ toolchain go1.23.7
66

77
require (
88
github.com/PuerkitoBio/rehttp v1.4.0
9-
github.com/auth0/go-auth0 v1.20.0
9+
github.com/auth0/go-auth0 v1.21.0
1010
github.com/google/go-cmp v0.7.0
1111
github.com/hashicorp/go-cty v1.5.0
1212
github.com/hashicorp/go-multierror v1.1.1
@@ -89,7 +89,7 @@ require (
8989
golang.org/x/exp v0.0.0-20240525044651-4c93da0ed11d // indirect
9090
golang.org/x/mod v0.22.0 // indirect
9191
golang.org/x/net v0.38.0 // indirect
92-
golang.org/x/oauth2 v0.29.0 // indirect
92+
golang.org/x/oauth2 v0.30.0 // indirect
9393
golang.org/x/sync v0.12.0 // indirect
9494
golang.org/x/sys v0.31.0 // indirect
9595
golang.org/x/text v0.23.0 // indirect

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew
2424
github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4=
2525
github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI=
2626
github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
27-
github.com/auth0/go-auth0 v1.20.0 h1:qCp5e2Jyeo7Z6vSTAgZqT8kYI6fVFzvT7rUBOtgSrIM=
28-
github.com/auth0/go-auth0 v1.20.0/go.mod h1:inNY8nV/wANajcJ8B/93CLlmXgyMgyuyPXXI4kgd2qY=
27+
github.com/auth0/go-auth0 v1.21.0 h1:ua0RNXvV8aMWnraF5uYZ+c5P53ePLR0ieYsa/E0SvJw=
28+
github.com/auth0/go-auth0 v1.21.0/go.mod h1:g9S/4ImupKFx1gSLqeQO0v1yV91Oo5J5bYobLCAL+J4=
2929
github.com/aybabtme/iocontrol v0.0.0-20150809002002-ad15bcfc95a0 h1:0NmehRCgyk5rljDQLKUO+cRJCnduDyn11+zGZIc9Z48=
3030
github.com/aybabtme/iocontrol v0.0.0-20150809002002-ad15bcfc95a0/go.mod h1:6L7zgvqo0idzI7IO8de6ZC051AfXb5ipkIJ7bIA2tGA=
3131
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
@@ -271,8 +271,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug
271271
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
272272
golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8=
273273
golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
274-
golang.org/x/oauth2 v0.29.0 h1:WdYw2tdTK1S8olAzWHdgeqfy+Mtm9XNhv/xJsY65d98=
275-
golang.org/x/oauth2 v0.29.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
274+
golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI=
275+
golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU=
276276
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
277277
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
278278
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=

internal/auth0/client/expand.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ func expandSessionTransfer(data *schema.ResourceData) *management.SessionTransfe
10581058
sessionTransfer.CanCreateSessionTransferToken = value.Bool(config.GetAttr("can_create_session_transfer_token"))
10591059
sessionTransfer.AllowedAuthenticationMethods = value.Strings(config.GetAttr("allowed_authentication_methods"))
10601060
sessionTransfer.EnforceDeviceBinding = value.String(config.GetAttr("enforce_device_binding"))
1061-
sessionTransfer.AllowRefreshToken = value.Bool(config.GetAttr("allow_refresh_token"))
1061+
sessionTransfer.AllowRefreshToken = value.Bool(config.GetAttr("allow_refresh_token"))
10621062
return stop
10631063
})
10641064

internal/auth0/client/resource_test.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2638,7 +2638,6 @@ resource "auth0_client" "my_client" {
26382638
}
26392639
`
26402640

2641-
26422641
func TestAccClientSessionTransfer(t *testing.T) {
26432642
acctest.Test(t, resource.TestCase{
26442643
Steps: []resource.TestStep{
@@ -2650,7 +2649,7 @@ func TestAccClientSessionTransfer(t *testing.T) {
26502649
resource.TestCheckResourceAttr("auth0_client.my_client", "session_transfer.0.can_create_session_transfer_token", "false"),
26512650
resource.TestCheckResourceAttr("auth0_client.my_client", "session_transfer.0.allowed_authentication_methods.#", "0"),
26522651
resource.TestCheckResourceAttr("auth0_client.my_client", "session_transfer.0.enforce_device_binding", "ip"),
2653-
resource.TestCheckResourceAttr("auth0_client.my_client", "session_transfer.0.allow_refresh_token", "true"),
2652+
resource.TestCheckResourceAttr("auth0_client.my_client", "session_transfer.0.allow_refresh_token", "false"),
26542653
),
26552654
},
26562655
{
@@ -2694,11 +2693,10 @@ func TestAccClientSessionTransfer(t *testing.T) {
26942693
{
26952694
Config: acctest.ParseTestName(testAccUpdateClientWithSessionTransferFalse, t.Name()),
26962695
Check: resource.ComposeTestCheckFunc(
2697-
resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Session Transfer - %s", t.Name())),
2698-
resource.TestCheckResourceAttr("auth0_client.my_client", "session_transfer.0.allow_refresh_token", "false"),
2696+
resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Session Transfer - %s", t.Name())),
2697+
resource.TestCheckResourceAttr("auth0_client.my_client", "session_transfer.0.allow_refresh_token", "false"),
26992698
),
2700-
},
2701-
2699+
},
27022700
},
27032701
})
27042702
}

0 commit comments

Comments
 (0)