Skip to content
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

Enable test for Fn::GetAZs and extend feature #9740

Merged
merged 1 commit into from Nov 29, 2023
Merged

Conversation

pinzon
Copy link
Member

@pinzon pinzon commented Nov 27, 2023

Motivation

This CFn function was requested in #9534 but it seems that @viren-nadkarni already developed the feature while working on the Multi-Region support.

Changes

I extended the amount of AZs the function returns to match the amount AWS returns for us-east-1

Testing

I un-skipped the preexisting test of this feature and added a snapshot

@pinzon pinzon added the semver: patch Non-breaking changes which can be included in patch releases label Nov 27, 2023
@coveralls
Copy link

Coverage Status

coverage: 84.076% (-0.08%) from 84.16%
when pulling 097f7e6 on feat/cfn-get-azs
into b39c624 on master.

Copy link

LocalStack Community integration with Pro

       2 files         2 suites   1h 10m 37s ⏱️
2 369 tests 2 055 ✔️ 314 💤 0
2 370 runs  2 055 ✔️ 315 💤 0

Results for commit 097f7e6.

Copy link
Member

@dominikschubert dominikschubert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +240 to +243
TODO parametrize this test.
For that we need to be able to parametrize the client region. The docs show the we should be
able to put any region in the parameters but it doesn't work. It only accepts the same region from the client config
if you put anything else it just returns an empty list.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

I think it's fine for now since we usually assume us-east-1 anyway, i.e. we don't currently handle region specific idiosyncrasies and treat everything as if it were us-east-1, which has the broadest support out of all regions.

@pinzon pinzon merged commit fe3d704 into master Nov 29, 2023
28 of 29 checks passed
@pinzon pinzon deleted the feat/cfn-get-azs branch November 29, 2023 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants