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

Refactor regions spec to not hard-code atypical regions #833

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

agrare
Copy link
Member

@agrare agrare commented Oct 26, 2023

The regions spec has a hard-coded list of "atypical regions" which really just means regions which exist but are not available to us via the aws-sdk describe_regions API call.

It would be simpler to just check that all of the regions that we do have access to are in the regions list. This would allow us to update the config/regions.yml list in an automated way.

The regions spec has a hard-coded list of "atypical regions" which
really just means regions which exist but are not available to us via
the aws-sdk `describe_regions` API call.

It would be simpler to just check that all of the regions that we do
have access to are in the regions list.  This would allow us to update
the `config/regions.yml` list in an automated way.
@agrare agrare requested a review from Fryguy as a code owner October 26, 2023 17:28
@agrare
Copy link
Member Author

agrare commented Oct 26, 2023

I'm questioning how helpful this spec is, since the "online" list of regions is coming from a vcr rather than live then we aren't going to be testing if we missed any new regions. This will likely work unless AWS removes a region though.

@miq-bot
Copy link
Member

miq-bot commented Oct 31, 2023

Checked commit agrare@8c13c5c with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@Fryguy Fryguy self-assigned this Nov 8, 2023
@Fryguy Fryguy added the test label Nov 8, 2023
@Fryguy Fryguy merged commit 8f0f919 into ManageIQ:master Nov 13, 2023
3 checks passed
@agrare agrare deleted the refactor_regions_spec branch November 13, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants