summaryrefslogtreecommitdiff
path: root/internal/configuration/validator/authentication_test.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-11-20 20:35:53 +1100
committerGitHub <noreply@github.com>2023-11-20 20:35:53 +1100
commit17917bc80a01eafce71968302a7c9f1703a228d3 (patch)
tree17eeb31e682e4c6c820f7e17170b028bb19c2e4e /internal/configuration/validator/authentication_test.go
parent6a42a67ee1f11cbea5e0efe734a942e0f1085a64 (diff)
test: fix linting (#6303)
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/configuration/validator/authentication_test.go')
-rw-r--r--internal/configuration/validator/authentication_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/configuration/validator/authentication_test.go b/internal/configuration/validator/authentication_test.go
index 2817c8960..f06a53af1 100644
--- a/internal/configuration/validator/authentication_test.go
+++ b/internal/configuration/validator/authentication_test.go
@@ -536,7 +536,7 @@ func (suite *FileBasedAuthenticationBackend) TestShouldRaiseErrorWhenResetURLIsI
}
func (suite *FileBasedAuthenticationBackend) TestShouldNotRaiseErrorWhenResetURLIsValid() {
- suite.config.PasswordReset.CustomURL = url.URL{Scheme: "https", Host: "google.com"}
+ suite.config.PasswordReset.CustomURL = url.URL{Scheme: schemeHTTPS, Host: "google.com"}
ValidateAuthenticationBackend(&suite.config, suite.validator)
@@ -545,7 +545,7 @@ func (suite *FileBasedAuthenticationBackend) TestShouldNotRaiseErrorWhenResetURL
}
func (suite *FileBasedAuthenticationBackend) TestShouldConfigureDisableResetPasswordWhenCustomURL() {
- suite.config.PasswordReset.CustomURL = url.URL{Scheme: "https", Host: "google.com"}
+ suite.config.PasswordReset.CustomURL = url.URL{Scheme: schemeHTTPS, Host: "google.com"}
suite.config.PasswordReset.Disable = true
suite.True(suite.config.PasswordReset.Disable)