Use MOCK_ACCOUNT_ID when building default Rule ARN (#3808)

Co-authored-by: Tom Noble <tom.noble@bjss.com>
This commit is contained in:
Tom Noble 2021-03-28 16:20:21 +01:00 committed by GitHub
commit 57aa83e6c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -120,9 +120,11 @@ def test_describe_rule():
assert response is not None
assert response.get("Name") == rule_name
assert response.get(
"Arn"
) == "arn:aws:events:us-west-2:111111111111:rule/{0}".format(rule_name)
rule_arn = response.get("Arn")
assert rule_arn == "arn:aws:events:us-west-2:{account}:rule/{name}".format(
account=ACCOUNT_ID, name=rule_name
)
@mock_events