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

fix: Separate plan availability logic from getRegionsWithCaps(...) #558

Merged

Conversation

lgarber-akamai
Copy link
Contributor

@lgarber-akamai lgarber-akamai commented Jul 23, 2024

📝 Description

This pull request separates the plan availability logic from getRegionWithCaps(...) into a separate getRegionsWithCapsAndPlans(...) function.

This prevents us from needing to specify desired plans for tests that don't need them, and lets us avoid re-running all test fixtures as a bonus.

This should resolve the following errors in CI:

2024/07/23 14:45:02.320444 WARN RESTY Get "https://api.linode.com/v4beta/regions/availability?page=1": Requested interaction not found, Attempt 1
2024/07/23 14:45:02.320460 ERROR RESTY Get "https://api.linode.com/v4beta/regions/availability?page=1": Requested interaction not found

✔️ How to Test

  1. Pull down this PR locally.
  2. Run make SKIP_LINT=1 test
  3. Ensure the above errors are not raised.

@lgarber-akamai lgarber-akamai added the bugfix for any bug fixes in the changelog. label Jul 23, 2024
@lgarber-akamai lgarber-akamai requested a review from a team as a code owner July 23, 2024 15:29
@lgarber-akamai lgarber-akamai requested review from ykim-akamai and yec-akamai and removed request for a team July 23, 2024 15:29
@ezilber-akamai ezilber-akamai self-requested a review July 23, 2024 15:38
Copy link
Collaborator

@jriddle-linode jriddle-linode left a comment

Choose a reason for hiding this comment

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

LGTM passes locally.

Copy link
Contributor

@ezilber-akamai ezilber-akamai left a comment

Choose a reason for hiding this comment

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

Passing locally 👍

@lgarber-akamai lgarber-akamai merged commit e0f3b86 into linode:main Jul 23, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix for any bug fixes in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants