diff options
Diffstat (limited to 'internal/authentication/file_user_provider_test.go')
| -rw-r--r-- | internal/authentication/file_user_provider_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/authentication/file_user_provider_test.go b/internal/authentication/file_user_provider_test.go index d6bb25730..0e8d1f8e9 100644 --- a/internal/authentication/file_user_provider_test.go +++ b/internal/authentication/file_user_provider_test.go @@ -151,6 +151,7 @@ func TestShouldReloadDatabase(t *testing.T) { actual, theError := provider.Reload() assert.Equal(t, tc.expected, actual) + if tc.err == "" { assert.NoError(t, theError) } else { @@ -311,6 +312,7 @@ func TestShouldUpdatePasswordHashingAlgorithmToArgon2id(t *testing.T) { require.True(t, ok) assert.True(t, strings.HasPrefix(db.Users["harry"].Password.Encode(), "$6$")) + err := provider.UpdatePassword("harry", "newpassword") assert.NoError(t, err) @@ -341,6 +343,7 @@ func TestShouldUpdatePasswordHashingAlgorithmToSHA512(t *testing.T) { require.True(t, ok) assert.True(t, strings.HasPrefix(db.Users["john"].Password.Encode(), "$argon2id$")) + err := provider.UpdatePassword("john", "newpassword") assert.NoError(t, err) |
