Fix tests

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
bcmmbaga 2024-11-27 12:53:50 +03:00
parent 3186876d5e
commit 41b4e3177a
No known key found for this signature in database
GPG Key ID: 511EED5C928AD547

View File

@ -389,7 +389,7 @@ func initTestGroupAccount(am *DefaultAccountManager) (*DefaultAccountManager, *A
return nil, nil, err
}
err = am.Store.SavePolicy(context.Background(), LockingStrengthUpdate, policy)
err = am.Store.CreatePolicy(context.Background(), LockingStrengthUpdate, policy)
if err != nil {
return nil, nil, err
}
@ -406,7 +406,7 @@ func initTestGroupAccount(am *DefaultAccountManager) (*DefaultAccountManager, *A
err = am.SaveGroups(context.Background(), accountID, groupAdminUserID, []*nbgroup.Group{
groupForRoute, groupForRoute2, groupForNameServerGroups, groupForPolicies,
groupForSetupKeys, groupForUsers, groupForUsers, groupForIntegration,
groupForSetupKeys, groupForUsers, groupForIntegration,
})
if err != nil {
return nil, nil, err