Skip to content

test: [M3-8996] - Add test for LKE cluster rename flow - #11444

Closed
AzureLatte wants to merge 2 commits into
linode:developfrom
AzureLatte:M3-8996
Closed

AzureLatte wants to merge 2 commits into
linode:developfrom
AzureLatte:M3-8996

Conversation

@AzureLatte

@AzureLatte AzureLatte commented Dec 19, 2024

Copy link
Copy Markdown
Contributor

Description 📝

Add a Cypress integration test using mock data to confirm that the LKE cluster rename flow works as expected.

Changes 🔄

List any change(s) relevant to the reviewer.

  • Add tests in packages/manager/cypress/e2e/core/kubernetes/lke-update.spec.ts
  • Add mockUpdateClusterError in packages/manager/cypress/support/intercepts/lke.ts

How to test 🧪

yarn cy:run -s "cypress/e2e/core/kubernetes/lke-update.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 19, 2024
@AzureLatte
AzureLatte requested a review from a team as a code owner December 19, 2024 18:11
@AzureLatte
AzureLatte requested review from jdamore-linode and removed request for a team December 19, 2024 18:11
@AzureLatte
AzureLatte requested a review from a team as a code owner December 19, 2024 18:14
@AzureLatte
AzureLatte requested review from dwiley-akamai and harsh-akamai and removed request for a team December 19, 2024 18:14
@linode-gh-bot

Copy link
Copy Markdown

Cloud Manager UI test results

🔺 1 failing test on test run #2 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
1 Failing467 Passing2 Skipped95m 8s

Details

Failing Tests
SpecTest
linode-config.spec.tsEnd-to-End » Clones a config

Troubleshooting

Use this command to re-run the failing tests:

yarn cy:run -s "cypress/e2e/core/linodes/linode-config.spec.ts"

@dwiley-akamai dwiley-akamai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lke-update.spec.ts passes locally & in CI ✅

linode-config.spec.ts failed in CI and I got a couple of failures when running it locally, seems to be flakiness or some intermittent API issues.

We'll also need to resolve the conflict in lke-update.spec.ts

@jdamore-linode jdamore-linode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @AzureLatte! Tests look great and pass reliably

Edit: pending conflict Dajahi pointed out!

@jdamore-linode

Copy link
Copy Markdown
Contributor

Closing this in favor of #11482 which is the same code but with merge conflicts fixed. Wasn't able to push the merge conflicts directly to @AzureLatte's branch since the GH auth changes. cc @dwiley-akamai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants