Esempio n. 1
0
 def test_success_groups(self):
     self.assertEqual([{
         "id": "group1",
         "role_list": ["role1"],
     }, {
         "id": "group2",
         "role_list": [],
     }], lib.get_target_like_list(self.acls, "acl_group"))
Esempio n. 2
0
 def test_success_targets(self):
     self.assertEqual([{
         "id": "target1",
         "role_list": [],
     }, {
         "id": "target2",
         "role_list": ["role1", "role2", "role3"],
     }], lib.get_target_like_list(self.acls, "acl_target"))
Esempio n. 3
0
 def test_success_groups(self):
     self.assertEqual(
         [
             {
                 "id": "group1",
                 "role_list": ["role1"],
             },
             {
                 "id": "group2",
                 "role_list": [],
             }
         ],
         lib.get_target_like_list(self.acls, "acl_group")
     )
Esempio n. 4
0
 def test_success_targets(self):
     self.assertEqual(
         [
             {
                 "id": "target1",
                 "role_list": [],
             },
             {
                 "id": "target2",
                 "role_list": ["role1", "role2", "role3"],
             }
         ],
         lib.get_target_like_list(self.acls, "acl_target")
     )