Skip to content

Commit

Permalink
Add test to force issue eBay#124
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Fredette <[email protected]>
  • Loading branch information
anfredette committed Jan 6, 2021
1 parent 746e766 commit 6c24b72
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions acl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,21 @@ func TestACLs(t *testing.T) {
}
assert.Equal(t, true, len(acls) == 3, "test[%s]", "add second acl")

cmd, err = ovndbapi.ACLAdd(LSW, "to-lport", MATCH_SECOND, "drop", 1001, nil, false, "", "")
if err != nil {
t.Fatal(err)
}
err = ovndbapi.Execute(cmd)
if err != nil {
t.Fatal(err)
}

acls, err = ovndbapi.ACLList(LSW)
if err != nil {
t.Fatal(err)
}
assert.Equal(t, true, len(acls) == 4, "test[%s]", "add second acl")

cmd, err = ovndbapi.ACLDel(LSW, "to-lport", MATCH, 1001, map[string]string{})
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 6c24b72

Please sign in to comment.