EventBridge: Multi-accounts compatibility#9023
Conversation
This reverts commit f01528a.
LocalStack Community integration with Pro 2 files ±0 2 suites ±0 1h 11m 55s ⏱️ - 43m 41s Results for commit f62aa28. ± Comparison against base commit fa10d1d. This pull request removes 3 and adds 6 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
d13f419 to
3b3ad9f
Compare
3b3ad9f to
d3678d3
Compare
| enabled_api_keys = [] | ||
| if not client: | ||
| client = connect_to(region_name=region_name).apigateway | ||
| client = connect_to().apigateway |
There was a problem hiding this comment.
Temporary change until the client arg is made mandatory
|
|
||
| return _get_arn | ||
|
|
||
|
|
There was a problem hiding this comment.
There was a fixture and a utility (localstack.utils.aws.arns.sqs_queue_arn) with the same name that caused confusion and silent overwrite in some instances. The fixture is removed in favour of the utility.
2321cc2 to
86d2b5d
Compare
dominikschubert
left a comment
There was a problem hiding this comment.
LGTM, though there"s a lot more than eventbridge in there :D
thanks for tacking this
| @pytest.mark.parametrize("strategy", ["domain", "path"]) | ||
| def test_trigger_event_on_ssm_change(self, monkeypatch, aws_client, clean_up, strategy): | ||
| monkeypatch.setattr(config, "SQS_ENDPOINT_STRATEGY", strategy) |
8be0c83 to
46c55e7
Compare
|
The fixture has been restored due to concerns from Daniel that it will hinder the ability to run all tests against AWS. It's been renamed to |
Motivation
When using values other than
000000000000for account ID orus-east-1for region, EventBridge would still create the consequent resources in this accounts and region.Changes
get_account_id()andget_region()helpers