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" ])
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, [])
def test_base_permissions(self): org_perms = preconditions.OrgPermissions("1234567890") self.assertEqual(org_perms.permissions, [ "resourcemanager.organizations.get", "iam.serviceAccounts.setIamPolicy", ])