feat(acls): check acl owners and add bunch of tests

This commit is contained in:
Adrien Raffin authored and Adrien Raffin-Caboisse committed 2022-02-17 09:30:08 +01:00
1 parent e9949b4c70
commit fb45138fc1
3 files changed
+287 -31

No files matched your search

+1 -1
View File
@@ -181,7 +181,7 @@ func (s *Suite) TestGetACLFilteredPeers(c *check.C) {
MachineKey: "foo" + strconv.Itoa(index),
NodeKey: "bar" + strconv.Itoa(index),
DiscoKey: "faa" + strconv.Itoa(index),
IPAddress: fmt.Sprintf("100.64.0.%v", strconv.Itoa(index+1)),
IPAddresses: MachineAddresses{netaddr.MustParseIP(fmt.Sprintf("100.64.0.%v", strconv.Itoa(index+1)))},
Name: "testmachine" + strconv.Itoa(index),
NamespaceID: stor[index%2].namespace.ID,
Registered: true,