Cloudformation support for EventSourceMapping (#3045)
* change line position for uuid and last_modified because they're not input parameters * add event_source_arn validator and setter * refactor batch_size as setter * add helper function to parse arn and return source service * fix for EventSource's create_from_cfn, there was no reference in the lambda object for the esm if created by cfn * add esm deletion by cloudformation * remove unused variable in test * add cfn's update * add complete implementation of delete_from_cfn * blacked changed files * fix test with invalid batchsize for sqs * Dynamodb2 Table - Bugfix for localindex and implemented get_cfn_attributes * Dynamodb2 eventsource - fix test to use StreamArn attribute * Lambda Test - fix test_update_event_source_mapping
This commit is contained in:
parent
849f16ff2d
commit
0dd41d4c32
5 changed files with 313 additions and 52 deletions
|
|
@ -1446,11 +1446,12 @@ def test_update_event_source_mapping():
|
|||
assert response["State"] == "Enabled"
|
||||
|
||||
mapping = conn.update_event_source_mapping(
|
||||
UUID=response["UUID"], Enabled=False, BatchSize=15, FunctionName="testFunction2"
|
||||
UUID=response["UUID"], Enabled=False, BatchSize=2, FunctionName="testFunction2"
|
||||
)
|
||||
assert mapping["UUID"] == response["UUID"]
|
||||
assert mapping["FunctionArn"] == func2["FunctionArn"]
|
||||
assert mapping["State"] == "Disabled"
|
||||
assert mapping["BatchSize"] == 2
|
||||
|
||||
|
||||
@mock_lambda
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue