diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2022-12-05 09:37:08 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-05 09:37:08 +1100 |
| commit | 0aa674505928f1d1d28f70db777710f5c7a4713a (patch) | |
| tree | 1d1fdacba24dca1368e57c0cab405c8209dd11e3 /internal/authentication/file_user_provider_test.go | |
| parent | 87004ccb570eb76b5656bd9cbd617932ab1b0312 (diff) | |
build(deps): update module github.com/go-crypt/crypt to v0.2.2 (#4452)
Diffstat (limited to 'internal/authentication/file_user_provider_test.go')
| -rw-r--r-- | internal/authentication/file_user_provider_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/authentication/file_user_provider_test.go b/internal/authentication/file_user_provider_test.go index 4b6039f69..feb26700b 100644 --- a/internal/authentication/file_user_provider_test.go +++ b/internal/authentication/file_user_provider_test.go @@ -252,7 +252,7 @@ func TestShouldRaiseWhenLoadingDatabaseWithBadSHA512HashesForTheFirstTime(t *tes provider := NewFileUserProvider(&config) - assert.EqualError(t, provider.StartupCheck(), "error decoding the authentication database: failed to parse hash for user 'john': sha2crypt decode error: provided encoded hash has an invalid option: option 'rounds00000' is invalid") + assert.EqualError(t, provider.StartupCheck(), "error decoding the authentication database: failed to parse hash for user 'john': shacrypt decode error: parameter pair 'rounds00000' is not properly encoded: does not contain kv separator '='") }) } @@ -263,7 +263,7 @@ func TestShouldRaiseWhenLoadingDatabaseWithBadArgon2idHashSettingsForTheFirstTim provider := NewFileUserProvider(&config) - assert.EqualError(t, provider.StartupCheck(), "error decoding the authentication database: failed to parse hash for user 'john': argon2 decode error: provided encoded hash has an invalid option: option 'm65536' is invalid") + assert.EqualError(t, provider.StartupCheck(), "error decoding the authentication database: failed to parse hash for user 'john': argon2 decode error: parameter pair 'm65536' is not properly encoded: does not contain kv separator '='") }) } |
