-
Notifications
You must be signed in to change notification settings - Fork 401
upcoming: [M3-9495] - Disable APL for LKE-E clusters #11809
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
Changes from 2 commits
e5dff3b
0cd2df1
ebfb57b
98942b8
b0626b2
4ec7024
1000956
1fd39f0
ad5823f
b5362b1
cfe66c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@linode/manager": Upcoming Features | ||
| --- | ||
|
|
||
| Disable APL for LKE-E clusters on create flow ([#11809](https://github.com/linode/manager/pull/11809)) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1086,6 +1086,7 @@ describe('LKE Cluster Creation with LKE-E', () => { | |
| * - Confirms that HA is enabled by default with LKE-E selection | ||
| * - Confirms an LKE-E supported region can be selected | ||
| * - Confirms an LKE-E supported k8 version can be selected | ||
| * - Confirms the APL section is not shown while it remains unsupported | ||
| * - Confirms at least one IP must be provided for ACL | ||
| * - Confirms the checkout bar displays the correct LKE-E info | ||
| * - Confirms an enterprise cluster can be created with the correct chip, version, and price | ||
|
|
@@ -1215,6 +1216,11 @@ describe('LKE Cluster Creation with LKE-E', () => { | |
| .should('be.enabled') | ||
| .click(); | ||
|
|
||
| // Confirm the APL section is not shown. | ||
| cy.findByTestId('apl-label').should('not.exist'); | ||
| cy.findByTestId('apl-radio-button-yes').should('not.exist'); | ||
| cy.findByTestId('apl-radio-button-no').should('not.exist'); | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Related to the above, can we add assertions to confirm that the APL section is present when LKE-E isn't selected?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this test is already accomplishing that, right? Do you mean toggling to an LKE standard tier and checking that it exists?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yeah, you're absolutely right. There is one distinction I'll call out which is that adding the assertions here gives us explicit coverage that the APL section is present when the LKE-E feature is enabled but not selected during cluster creation, whereas the other test doesn't take the state of LKE-E into account. So if there were ever a logic issue (or mocking issue in the test) involving APL/LKE-E that resulted in APL being hidden, it would get caught by this test but may not get caught by the other. (I have no idea what the logic for the cluster create page is like, so if this comes across as a farfetched hypothetical we can definitely leave it alone, just wanted to point it out in case it's an important distinction from a dev's POV)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I left the case of 'LKE-E feature enabled but LKE (standard) cluster tier selected' uncovered in tests because it is essentially the same flow as 'LKE-E feature disabled'. The code sets a default of Basically, if there were an issue with the LKE tier selection in the LKE-E flow, the first test could catch it. |
||
| // Confirm the expected available plans display. | ||
| validEnterprisePlanTabs.forEach((tab) => { | ||
| ui.tabList.findTabByTitle(tab).should('be.visible'); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.