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

test: [M3-8979] - Fix lke-create test by using a different mock region #11411

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

AzureLatte
Copy link
Contributor

@AzureLatte AzureLatte commented Dec 12, 2024

Description 📝

The "can dynamically update prices when creating an LKE cluster based on region" test in lke-create.spec.ts fails when running against the staging API because only the Dallas region is available for LKE creation but the test assumes Newark is present. Fix the test by using a different mock region.

Changes 🔄

List any change(s) relevant to the reviewer.

  • Update mock region to Dallas

How to test 🧪

To reproduce the issue locally you’ll want to set your REACT_APP_API_ROOT var in .env to the staging URL. You might also have to set REACT_APP_LOGIN_ROOT to the login staging URL, then run the following command

yarn cy:run -s "cypress/e2e/core/kubernetes/lke-create.spec.ts"

As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All unit tests are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@AzureLatte AzureLatte self-assigned this Dec 12, 2024
@AzureLatte AzureLatte requested a review from a team as a code owner December 12, 2024 17:04
@AzureLatte AzureLatte requested review from jdamore-linode and removed request for a team December 12, 2024 17:04
@AzureLatte AzureLatte requested a review from a team as a code owner December 12, 2024 17:05
@AzureLatte AzureLatte requested review from cpathipa and hkhalil-akamai and removed request for a team December 12, 2024 17:05
Copy link

github-actions bot commented Dec 12, 2024

Coverage Report:
Base Coverage: 86.78%
Current Coverage: 86.78%

@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 469 passing tests on test run #2 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing469 Passing2 Skipped101m 0s

Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

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

Test looks good, thanks Azure! Were there more of these failures in other tests across CM as a result of using regions or other data unavailable in the staging environment? 😬

Screenshot 2024-12-12 at 10 30 01 AM

Reviewing this PR and running the tests locally made me realize an unrelated lke-create.spec.ts failure I need to fix - for anyone with the Kubernetes Enterprise capability on their account, the final test in the spec is going to fail on local runs because we need to mock that the capability is not present, as the test expects. I'm going to include that in my changes for M3-8928.

@mjac0bs mjac0bs added the Add'tl Approval Needed Waiting on another approval! label Dec 12, 2024
Copy link
Contributor

@hkhalil-akamai hkhalil-akamai left a comment

Choose a reason for hiding this comment

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

Tests passing in staging

@hkhalil-akamai hkhalil-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Dec 12, 2024
Copy link
Contributor

@jdamore-linode jdamore-linode left a comment

Choose a reason for hiding this comment

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

Thanks @AzureLatte!

@AzureLatte AzureLatte merged commit 705122a into linode:develop Dec 19, 2024
23 checks passed
@AzureLatte AzureLatte deleted the M3-8979 branch December 19, 2024 15:12
dmcintyr-akamai pushed a commit to dmcintyr-akamai/manager that referenced this pull request Jan 9, 2025
linode#11411)

* Fix lke-create test by using a different mock region

* Added changeset: Update mock region for LKE cluster creation test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants