-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update unit tests and error handling
- Loading branch information
1 parent
7148535
commit c8b417c
Showing
4 changed files
with
64 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 18 additions & 7 deletions
25
pkg/config/testdata/TestHookDiff/local_enabled_and_disabled.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,36 @@ | ||
diff remote[auth] local[auth] | ||
--- remote[auth] | ||
+++ local[auth] | ||
@@ -11,7 +11,7 @@ | ||
@@ -11,24 +11,24 @@ | ||
|
||
[hook] | ||
[hook.mfa_verification_attempt] | ||
-enabled = true | ||
+enabled = false | ||
uri = "" | ||
uri = "pg-functions://verifyMFA" | ||
secrets = "" | ||
[hook.password_verification_attempt] | ||
@@ -19,9 +19,9 @@ | ||
-enabled = true | ||
+enabled = false | ||
uri = "" | ||
secrets = "" | ||
[hook.custom_access_token] | ||
-enabled = false | ||
-uri = "" | ||
-secrets = "hash:b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c712144292c5ad" | ||
+enabled = true | ||
+uri = "" | ||
+secrets = "" | ||
+uri = "http://example.com" | ||
+secrets = "hash:ce62bb9bcced294fd4afe668f8ab3b50a89cf433093c526fffa3d0e46bf55252" | ||
[hook.send_sms] | ||
enabled = false | ||
uri = "" | ||
-enabled = true | ||
+enabled = false | ||
uri = "https://example.com" | ||
secrets = "test-secret" | ||
[hook.send_email] | ||
-enabled = false | ||
-uri = "" | ||
+enabled = true | ||
+uri = "pg-functions://sendEmail" | ||
secrets = "" | ||
|
||
[mfa] |