コード例 #1
0
ファイル: test_acl.py プロジェクト: thulyacloud/pcs
 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"))
コード例 #2
0
ファイル: test_acl.py プロジェクト: thulyacloud/pcs
 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"))
コード例 #3
0
ファイル: test_acl.py プロジェクト: tomjelinek/pcs
 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")
     )
コード例 #4
0
ファイル: test_acl.py プロジェクト: tomjelinek/pcs
 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")
     )