Chore: move from xorm to sqlx apikey store (#53434)
* migrate from xorm to sqlx * fix tests * fix comments * fix some comments on the PR * fix CI * fix the comments
This commit is contained in:
@@ -341,7 +341,8 @@ func TestStore_RevertApiKey(t *testing.T) {
|
||||
// Service account should be deleted
|
||||
require.Equal(t, int64(0), serviceAccounts.TotalCount)
|
||||
|
||||
apiKeys := store.apiKeyService.GetAllAPIKeys(context.Background(), 1)
|
||||
apiKeys, err := store.apiKeyService.GetAllAPIKeys(context.Background(), 1)
|
||||
require.NoError(t, err)
|
||||
require.Len(t, apiKeys, 1)
|
||||
apiKey := apiKeys[0]
|
||||
require.Equal(t, c.key.Name, apiKey.Name)
|
||||
|
||||
Reference in New Issue
Block a user