Skip to content

Commit 9c2d15e

Browse files
committed
fix tests
1 parent 20d6c1d commit 9c2d15e

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

test/querying/test_query_actions.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,20 @@ def test_get_action_data(self):
132132
"ram": [
133133
{
134134
"action": "ram:TagResource",
135-
"description": "Grants permission to tag the specified resource share",
135+
"description": "Grants permission to tag the specified resource share or permission",
136+
"access_level": "Tagging",
137+
"api_documentation_link": "https://docs.aws.amazon.com/ram/latest/APIReference/API_TagResource.html",
138+
"resource_arn_format": "arn:${Partition}:ram:${Region}:${Account}:permission/${ResourcePath}",
139+
"condition_keys": [
140+
"aws:ResourceTag/${TagKey}",
141+
"ram:PermissionArn",
142+
"ram:PermissionResourceType",
143+
],
144+
"dependent_actions": [],
145+
},
146+
{
147+
"action": "ram:TagResource",
148+
"description": "Grants permission to tag the specified resource share or permission",
136149
"access_level": "Tagging",
137150
"api_documentation_link": "https://docs.aws.amazon.com/ram/latest/APIReference/API_TagResource.html",
138151
"resource_arn_format": "arn:${Partition}:ram:${Region}:${Account}:resource-share/${ResourcePath}",
@@ -145,7 +158,7 @@ def test_get_action_data(self):
145158
},
146159
{
147160
"action": "ram:TagResource",
148-
"description": "Grants permission to tag the specified resource share",
161+
"description": "Grants permission to tag the specified resource share or permission",
149162
"access_level": "Tagging",
150163
"api_documentation_link": "https://docs.aws.amazon.com/ram/latest/APIReference/API_TagResource.html",
151164
"resource_arn_format": "*",

test/querying/test_query_arns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_get_matching_raw_arn(self):
7373
self.assertEqual(get_matching_raw_arns("arn:aws:codecommit:us-east-1:123456789012:MyDemoRepo"), ["arn:${Partition}:codecommit:${Region}:${Account}:${RepositoryName}"])
7474
self.assertEqual(get_matching_raw_arns("arn:aws:ssm:us-east-1:123456789012:parameter/test"), ["arn:${Partition}:ssm:${Region}:${Account}:parameter/${ParameterNameWithoutLeadingSlash}"])
7575
self.assertEqual(get_matching_raw_arns("arn:aws:batch:region:account-id:job-definition/job-name:revision"), ["arn:${Partition}:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}"])
76-
self.assertEqual(get_matching_raw_arns("arn:aws:states:region:account-id:stateMachine:stateMachineName"), ["arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}"])
76+
self.assertEqual(get_matching_raw_arns("arn:aws:states:region:account-id:stateMachine:stateMachineName"), ["arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}", "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}:${StateMachineVersionId}", "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}:${StateMachineAliasName}"])
7777
self.assertEqual(get_matching_raw_arns("arn:aws:states:region:account-id:execution:stateMachineName:executionName"), ["arn:${Partition}:states:${Region}:${Account}:execution:${StateMachineName}:${ExecutionId}"])
7878
# self.assertEqual(get_matching_raw_arns("arn:aws:greengrass:region:account-id:/greengrass/definition/devices/1234567/versions/1"), ["arn:aws:greengrass:${Region}:${Account}:/greengrass/definition/devices/${DeviceDefinitionId}/versions/${VersionId}"])
7979
self.assertEqual(get_matching_raw_arns("arn:${Partition}:rds:region:account-id:db:mydatabase"), ["arn:${Partition}:rds:${Region}:${Account}:db:${DbInstanceName}"])

0 commit comments

Comments
 (0)