@@ -181,6 +181,33 @@ def test_get_action_data(self):
181
181
self .maxDiff = None
182
182
self .assertDictEqual (desired_output , output )
183
183
184
+ def test_get_action_data_with_glob (self ):
185
+ """Query action-table with glob."""
186
+ desired_output = {
187
+ "sns" : [
188
+ {
189
+ "action" : "sns:ListSubscriptions" ,
190
+ "description" : "Grants permission to return a list of the requester's subscriptions" ,
191
+ "access_level" : "List" ,
192
+ "api_documentation_link" : "https://docs.aws.amazon.com/sns/latest/api/API_ListSubscriptions.html" ,
193
+ "resource_arn_format" : "*" ,
194
+ "condition_keys" : [],
195
+ "dependent_actions" : [],
196
+ },
197
+ {
198
+ "action" : "sns:ListSubscriptionsByTopic" ,
199
+ "description" : "Grants permission to return a list of the subscriptions to a specific topic" ,
200
+ "access_level" : "List" ,
201
+ "api_documentation_link" : "https://docs.aws.amazon.com/sns/latest/api/API_ListSubscriptionsByTopic.html" ,
202
+ "resource_arn_format" : "arn:${Partition}:sns:${Region}:${Account}:${TopicName}" ,
203
+ "condition_keys" : ["aws:ResourceTag/${TagKey}" ],
204
+ "dependent_actions" : [],
205
+ },
206
+ ]
207
+ }
208
+ results = get_action_data ("sns" , "ListSubscriptions*" )
209
+ self .assertDictEqual (desired_output , results )
210
+
184
211
def test_get_actions_that_support_wildcard_arns_only (self ):
185
212
"""querying.actions.get_actions_that_support_wildcard_arns_only"""
186
213
# Variant 1: Secrets manager
0 commit comments