diff options
| author | Amir Zarrinkafsh <nightah@me.com> | 2024-02-19 12:56:40 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-19 13:56:40 +1100 |
| commit | aa394f7ddb1e2f508f0d3a156d6eda300a72246b (patch) | |
| tree | 369196573f258db180a84b814c284ac2feb9ed9d /internal/authentication/file_user_provider_test.go | |
| parent | d96bda049da0c4165e9ea80a46d3f6b39e2ab443 (diff) | |
ci: remove container read-only mounts (#6709)
* ci: remove container read-only mounts
Signed-off-by: Amir Zarrinkafsh <nightah@me.com>
* refactor: linting updates
Signed-off-by: Amir Zarrinkafsh <nightah@me.com>
---------
Signed-off-by: Amir Zarrinkafsh <nightah@me.com>
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) |
