コード例 #1
0
 def test_parent_permissions(self):
     org_perms = preconditions.OrgPermissions("1234567890", parent=True)
     self.assertEqual(org_perms.permissions, [
         "resourcemanager.organizations.get",
         "iam.serviceAccounts.setIamPolicy",
         "resourcemanager.projects.create"
     ])
コード例 #2
0
 def test_shared_vpc_permissions(self):
     org_perms = preconditions.OrgPermissions("1234567890", shared_vpc=True)
     self.assertEqual(org_perms.permissions, [
         "resourcemanager.organizations.get",
         "iam.serviceAccounts.setIamPolicy",
         "compute.subnetworks.setIamPolicy",
         "compute.organizations.enableXpnResource",
     ])
 def test_parent_permissions(self):
     org_perms = preconditions.OrgPermissions("1234567890", parent=True)
     self.assertEqual(org_perms.permissions,
                      ["resourcemanager.projects.create"])
 def test_base_permissions(self):
     org_perms = preconditions.OrgPermissions("1234567890")
     self.assertEqual(org_perms.permissions, [])
コード例 #5
0
 def test_base_permissions(self):
     org_perms = preconditions.OrgPermissions("1234567890")
     self.assertEqual(org_perms.permissions, [
         "resourcemanager.organizations.get",
         "iam.serviceAccounts.setIamPolicy",
     ])