Commit Graph

29 Commits

Author SHA1 Message Date
Justin Hipple
1409618b95 Fix a misleading error message
AWSEvents.DescribeRule throws an error that references a rule named "test" rather than the specified rule name when a rule with the specified name does not exist. It has been fixed to reference the specified rule name.
2020-03-12 13:34:29 -05:00
Brady
5b55102181 fix test case 2020-02-05 15:30:34 -05:00
Brady
c95254a284 delete tags when their resource is deleted 2020-02-05 11:58:52 -05:00
Brady
eaa8c8db6e add tagging support to events 2020-01-16 21:03:32 -05:00
gruebel
d7ba355a65 Add missing regions to all services 2019-12-26 17:12:22 +01:00
Steve Pulec
72da9e96c2 Lint. 2019-11-21 17:53:58 -05:00
gruebel
1d615e25b6 Add events.delete_event_bus 2019-11-04 21:31:04 +01:00
gruebel
831577350d Add events.list_event_buses 2019-11-03 20:42:31 +01:00
gruebel
f1dbdc9184 Refactor events.describe_event_bus, put_permission & remove_permission 2019-11-03 19:55:58 +01:00
gruebel
93e4d4aa9a Add events.create_event_bus 2019-11-01 09:52:06 +01:00
Asher Foa
96e5b1993d Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
Jessie Nadler
2424d63686 Use self.region_name to generate rule ARN 2019-10-03 15:29:54 -04:00
Jessie Nadler
277cec0928 Add multi region support for Events 2019-10-03 15:15:11 -04:00
Steve Pulec
0b2602db27
Merge pull request #1641 from cpitchford/bugfix_events_put_permission_action_filter
Bugfix events put permission action filter
2018-05-29 22:32:49 -04:00
cpitchford
176f19136c
Action is now recorded as event:PutEvents (fully qualified)
We no longer need to amend how the Action is reported in the describe_event_bus policy
2018-05-15 18:58:16 +01:00
cpitchford
b61989cb35
Bugfix: put_permission action parameter
Boto3/AWS requires that the Action parameter of put_permissions is fully qualified as "events:PutEvents" not "PutEvents"
2018-05-15 18:28:35 +01:00
cpitchford
1e01356f99
Bugfix: describe_event_bus()['Policy'] should be JSON string, not object
boto3.client('events')['Policy'] must be a string as per:
http://boto3.readthedocs.io/en/latest/reference/services/events.html#CloudWatchEvents.Client.describe_event_bus

Adding json.dumps() around the policy value ensures we do not return an unexpected dict

This change corrects an error when attempting to decode the policy:

json.load(boto3.client('events').describe_event_bus()['Policy'])
2018-05-15 16:45:49 +01:00
Terry Cain
a6e5ffb99b Completed events 2017-10-28 20:17:34 +01:00
Steve Pulec
bf935c210b Fix cloudwatch events delete_rule. Closes #884. 2017-04-12 22:15:23 -04:00
Steve Pulec
6d422d1f37 Add BaseModel to all models. 2017-03-11 23:41:12 -05:00
Steve Pulec
f37bad0e00 Lints. 2017-02-23 21:37:43 -05:00
Steve Pulec
81836b6981 Get standalone server mode working for all tests. 2017-02-23 19:43:48 -05:00
Steve Pulec
cad185c74d Cleanup headers and encoding. 2017-02-16 22:51:04 -05:00
Justin Wiley
c7757f953c Can't iterate over dict values in Python 3.3+. Changed Rule.targets from a dict to an array, which is probably better anyway since the dict doesn't maintain order, making API calls with the Limit parameter specified unreliable. 2016-12-01 19:52:00 -08:00
Justin Wiley
5d7a102e4c Stoopid import was still hanging around. 2016-12-01 19:24:40 -08:00
Justin Wiley
6c85a85e0d Removed OrderedDicts for 2.6 and dict.iteritems() calls for 3.3+ compatibility. 2016-12-01 19:10:59 -08:00
Justin Wiley
db0b494b4f Completed the CloudWatch Events mocking module and tests. 2016-12-01 17:23:51 -08:00
Justin Wiley
d0def03c4c Events models first draft done, need to write tests, then get responses going. 2016-11-30 17:09:58 -08:00
Justin Wiley
d0a66f2dff Begin work on mocking CloudWatch Events. 2016-11-29 17:19:26 -08:00