diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-04-15 02:04:42 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-15 02:04:42 +1000 |
| commit | 2733fc040cc43269889f5e11fd64c1fdb2e09ebd (patch) | |
| tree | 2459462966d202d1177fb166a83a476c2e9c5a51 /internal/configuration/validator/configuration_test.go | |
| parent | 37a49b21af4550525890a84b5a7ccf6f1ed51243 (diff) | |
refactor: webauthn naming (#5243)
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/configuration/validator/configuration_test.go')
| -rw-r--r-- | internal/configuration/validator/configuration_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/configuration/validator/configuration_test.go b/internal/configuration/validator/configuration_test.go index 7fee1355e..f40aaea1c 100644 --- a/internal/configuration/validator/configuration_test.go +++ b/internal/configuration/validator/configuration_test.go @@ -188,7 +188,7 @@ func TestValidateDefault2FAMethod(t *testing.T) { }, }, { - desc: "ShouldAllowConfiguredMethodWebauthn", + desc: "ShouldAllowConfiguredMethodWebAuthn", have: &schema.Configuration{ Default2FAMethod: "webauthn", DuoAPI: schema.DuoAPIConfiguration{ @@ -225,7 +225,7 @@ func TestValidateDefault2FAMethod(t *testing.T) { }, }, { - desc: "ShouldNotAllowDisabledMethodWebauthn", + desc: "ShouldNotAllowDisabledMethodWebAuthn", have: &schema.Configuration{ Default2FAMethod: "webauthn", DuoAPI: schema.DuoAPIConfiguration{ @@ -233,7 +233,7 @@ func TestValidateDefault2FAMethod(t *testing.T) { IntegrationKey: "another key", Hostname: "none", }, - Webauthn: schema.WebauthnConfiguration{Disable: true}, + WebAuthn: schema.WebAuthnConfiguration{Disable: true}, }, expectedErrs: []string{ "option 'default_2fa_method' must be one of the enabled options 'totp' or 'mobile_push' but it's configured as 'webauthn'", |
