Skip to content

Commit 7b23f06

Browse files
committed
fix(IAM Policy Management): update payload to fix policy creation error
1 parent 2dd1346 commit 7b23f06

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/test_iam_policy_management_v1_examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def test_create_policy_example(self):
105105
account_id_resource_attribute = ResourceAttribute(
106106
name='accountId', value=example_account_id)
107107
service_name_resource_attribute = ResourceAttribute(
108-
name='serviceName', value=example_service_name)
108+
name='serviceType', value='service')
109109
policy_resource_tag = ResourceTag(
110110
name='project', value='prototype')
111111
policy_resources = PolicyResource(
@@ -163,7 +163,7 @@ def test_update_policy_example(self):
163163
account_id_resource_attribute = ResourceAttribute(
164164
name='accountId', value=example_account_id)
165165
service_name_resource_attribute = ResourceAttribute(
166-
name='serviceName', value=example_service_name)
166+
name='serviceType', value='service')
167167
policy_resource_tag = ResourceTag(
168168
name='project', value='prototype')
169169
policy_resources = PolicyResource(

test/integration/test_iam_policy_management_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def setUpClass(cls):
6868
cls.testPolicyResources = PolicyResource(attributes=
6969
[ResourceAttribute(name='accountId', value=cls.testAccountId,
7070
operator='stringEquals'),
71-
ResourceAttribute(name='serviceName', value=cls.testServiceName,
71+
ResourceAttribute(name='serviceType', value='service',
7272
operator='stringEquals')], tags=[resource_tag])
7373

7474
cls.testCustomRoleId = ""

0 commit comments

Comments
 (0)