EventBridge: put_rule and list_rules should store and retrieve EventBusName property (#3472)

Co-authored-by: Guillermo Arribas <garribas@atlassian.com>
This commit is contained in:
Guillermo Arribas 2020-11-18 02:36:17 +11:00 committed by GitHub
commit 62fd975da0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -86,6 +86,7 @@ def test_put_rule():
"Name": "my-event",
"ScheduleExpression": "rate(5 minutes)",
"EventPattern": '{"source": ["test-source"]}',
"EventBusName": "test-bus",
}
client.put_rule(**rule_data)
@ -96,6 +97,7 @@ def test_put_rule():
rules[0]["Name"].should.equal(rule_data["Name"])
rules[0]["ScheduleExpression"].should.equal(rule_data["ScheduleExpression"])
rules[0]["EventPattern"].should.equal(rule_data["EventPattern"])
rules[0]["EventBusName"].should.equal(rule_data["EventBusName"])
rules[0]["State"].should.equal("ENABLED")