Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ncode committed Jul 5, 2024
1 parent 577c15d commit e91fc3f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pkg/aclmanager/aclmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -923,21 +923,6 @@ func TestSyncAcls_LoadACLFileError(t *testing.T) {
_, _, err := aclManagerFollower.SyncAcls(context.Background(), aclManagerPrimary)
assert.Error(t, err)
assert.Contains(t, err.Error(), "failed to load ACL on follower")

primaryMock.ExpectDo("ACL", "LIST").SetVal([]interface{}{
"user acl1", "user acl2",
})
followerMock.ExpectDo("ACL", "LIST").SetVal([]interface{}{
"user acl1", "user acl2",
})

primaryMock.ExpectDo("ACL", "SAVE").SetVal("OK")
followerMock.ExpectDo("ACL", "SAVE").SetVal("OK")
followerMock.ExpectDo("ACL", "LOAD").SetErr(fmt.Errorf("failed to save ACL on follower"))

_, _, err = aclManagerFollower.SyncAcls(context.Background(), aclManagerPrimary)
assert.Error(t, err)
assert.Contains(t, err.Error(), "failed to save ACL on follower")
}

func TestSyncAcls_ACLFileSync(t *testing.T) {
Expand Down

0 comments on commit e91fc3f

Please sign in to comment.