Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
Update resource_auth0_hook_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
woz5999 committed Mar 24, 2021
1 parent 1c31819 commit 9e4befd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions auth0/resource_auth0_hook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestAccHookSecrets(t *testing.T) {
Config: testAccHookSecrets2("gamma", "kappa"),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("auth0_hook.my_hook", "name", "pre-user-reg-hook"),
resource.TestCheckResourceAttr("auth0_hook.my_hook", "dependencies.auth0", "2.30.0"),
resource.TestCheckResourceAttr("auth0_hook.my_hook", "dependencies.auth0", "2.30.0"),
resource.TestCheckResourceAttr("auth0_hook.my_hook", "script", "function (user, context, callback) { callback(null, { user }); }"),
resource.TestCheckResourceAttr("auth0_hook.my_hook", "trigger_id", "pre-user-registration"),
resource.TestCheckResourceAttr("auth0_hook.my_hook", "enabled", "true"),
Expand Down Expand Up @@ -91,7 +91,10 @@ resource "auth0_hook" "my_hook" {
script = "function (user, context, callback) { callback(null, { user }); }"
trigger_id = "pre-user-registration"
enabled = true
secrets = {
dependencies = {
auth0 = "2.30.0"
}
secrets = {
foo = "%s"
}
}
Expand Down

0 comments on commit 9e4befd

Please sign in to comment.