New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix clouformation ec2 tests for ap-northeast-1
and validate against AWS
#10563
Conversation
test_vpc_creates_default_sg
and validate against AWSap-northeast-1
and validate against AWS
we need to update the region values in: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as not to block pipeline.
However after adding missing subnet to moto, we should revert these changes
"ap-northeast-1": [
Zone(
region_name="ap-northeast-1",
name="ap-northeast-1a",
zone_id="apne1-az4",
),
Zone(
region_name="ap-northeast-1",
name="ap-northeast-1c",
zone_id="apne1-az1",
),
Zone(
region_name="ap-northeast-1",
name="ap-northeast-1d",
zone_id="apne1-az2",
),
],
in moto/ec2/models/availability_zones_and_regions.py:143
it's a bit weird that we have 1a, 1c and 1d, but not 1b on the list
when we check the availability zones for
|
another fix for this could be selecting 1c instead here, what do you think @Morijarti |
It would fix it in this case, but I think then that the real issue is in how |
I'm with @Morijarti probably it would be best if you just extend the functionality of Fn::GetAZs instead of limiting the test just to force |
Hey @pinzon! Thanks for the review. I and @Morijarti had a discussion today regarding the root cause of the issue, which is not clear. For now this has been marked approved to unblock #10546 and created a backlog item for this. |
Motivation
Test
test_vpc_creates_default_sg
andtest_transit_gateway_attachment
fail when run in the workflow for region:ap-northeast-1
and throws aStackDeployError
.Changes
This PR validates test:
test_vpc_creates_default_sg
against AWS and deploys both the tests specifically inus-east-1
.