-
Notifications
You must be signed in to change notification settings - Fork 363
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
tests: [M3-8656] - Mock LKE creation flow + APL coverage #11347
base: develop
Are you sure you want to change the base?
Conversation
ended?: string; | ||
description?: string; | ||
ended?: string | null; | ||
description?: string | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just noticed this when inspecting response. I don't think we need a changeset?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be "fixed" but okay without one too
Coverage Report: ✅ |
👋🏼 Just created some merge conflicts here in the lke-create spec by merging in #11322. Hopefully they're easy to resolve - LKE-E test coverage is minimal and will be built out as we continue. Thanks for the clean up in this file; will follow suit going forward. |
Cloud Manager UI test results🎉 463 passing tests on test run #5 ↗︎
|
ended?: string; | ||
description?: string; | ||
ended?: string | null; | ||
description?: string | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be "fixed" but okay without one too
ended?: string | null; | ||
description?: string | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the ?
s be removed? I think ended
and description
will always be in the response
ended?: string | null; | |
description?: string | null; | |
ended: string | null; | |
description: string | null; |
cy.wait('@createCluster'); | ||
cy.wait('@getCluster'); | ||
cy.wait('@getClusterPools'); | ||
cy.wait('@getDashboardUrl'); | ||
cy.wait('@getControlPlaneACL'); | ||
cy.wait('@getApiEndpoints'); | ||
cy.wait('@getLinodeTypes'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cy.wait('@createCluster'); | |
cy.wait('@getCluster'); | |
cy.wait('@getClusterPools'); | |
cy.wait('@getDashboardUrl'); | |
cy.wait('@getControlPlaneACL'); | |
cy.wait('@getApiEndpoints'); | |
cy.wait('@getLinodeTypes'); | |
cy.wait([ | |
'@createCluster', | |
'@getCluster', | |
'@getClusterPools', | |
'@getDashboardUrl', | |
'@getControlPlaneACL', | |
'@getApiEndpoints', | |
'@getLinodeTypes' | |
]); |
mockedLKEClusterPools, | ||
mockedLKEClusterTypes | ||
); | ||
|
||
it('can create an LKE cluster', () => { | ||
cy.tag('method:e2e', 'purpose:dcTesting'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we are mocking, do we need to update these tags?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! @abailly-akamai I think in this case you can remove the cy.tag(...)
call altogether since it's not suitable for DC testing without real API requests 👍
Description 📝
PR to remove any "real" entity creation during the create cluster flow and add APL coverage to the create specs.
Note
The reason for mocking the main create flow is to avoid creating real clusters in the CI for security reasons.
Changes 🔄
How to test 🧪
Prerequisites
Verification steps
yarn cy:debug
> selectlke-create
As an Author, to speed up the review process, I considered 🤔
As an Author, before moving this PR from Draft to Open, I confirmed ✅