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
Bug 1875770: Test for PVC clone #6528
Conversation
@cloudbehl: This pull request references Bugzilla bug 1875770, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
frontend/packages/console-app/src/components/modals/clone/clone-pvc-modal.tsx
Outdated
Show resolved
Hide resolved
32119e0
to
b2e6ff0
Compare
frontend/packages/integration-tests-cypress/tests/storage/clone.spec.ts
Outdated
Show resolved
Hide resolved
frontend/packages/integration-tests-cypress/tests/storage/clone.spec.ts
Outdated
Show resolved
Hide resolved
13c7723
to
b4fd637
Compare
@dtaylor113 can you please review? |
b4fd637
to
f274bf3
Compare
cy.exec(`oc get pvc ${PVC.metadata.name}-clone -n ${testName} -o json`) | ||
.its('stdout') | ||
.then((res) => { | ||
const pvc = JSON.parse(res); | ||
cy.get(DetailsPageSelector.name).contains(pvc.metadata.name); | ||
cy.get(DetailsPageSelector.namespace).contains(pvc.metadata.namespace); | ||
cy.byTestID('pvc-requested-capacity').contains(`${cloneSize} GiB`); | ||
}); |
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.
I don't think this call is required as most of these values can be deciphered from the PVC request object, cloneSize
and testName
.
/assign @dtaylor113 @spadgett |
@@ -67,4 +68,5 @@ export type RequestSizeInputProps = { | |||
minValue?: number; | |||
inputClassName?: string; | |||
inputID?: string; | |||
dataTestId?: string; |
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.
dataTestId?: string; | |
testID?: string; |
/assign @dtaylor113 |
cy.createProject(testName); | ||
cy.exec(`echo '${JSON.stringify(PVC)}' | oc apply -n ${testName} -f -`); | ||
cy.exec(`echo '${JSON.stringify(testerDeployment)}' | oc apply -n ${testName} -f -`); | ||
cy.clickNavLink(['Storage', 'Persistent Volume Claims']); |
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 a heads up that when #6521 merges, this should be changed to nav.sidenav.clickNavLink(..
. A bunch of new helper methods added with nav.sidenav
.
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.
ack!
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.
Done
}); | ||
|
||
it('Lists Clone', () => { | ||
cy.clickNavLink(['Persistent Volume Claims']); |
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 a heads up that when #6521 merges, this should be changed to nav.sidenav.clickNavLink(..
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.
Ack!
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.
Done
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.
Looks like CI timed out waiting for 'Pending' to become 'Bound'. Do we need to increase timeout?
f274bf3
to
de114e8
Compare
@dtaylor113 can you review it once again? |
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.
lgtm, thanks
@@ -67,4 +68,5 @@ export type RequestSizeInputProps = { | |||
minValue?: number; | |||
inputClassName?: string; | |||
inputID?: string; | |||
testId?: string; |
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.
testId?: string; | |
testID?: string; |
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.
ack!
/lgtm |
Signed-off-by: Ankush Behl <cloudbehl@gmail.com>
de114e8
to
3de60ca
Compare
@dtaylor113 Updated the PR to address sam's comment & also added addressed #6528 (review) |
/lgtm -thanks |
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.
/approve
Adding lgtm on behalf of @dtaylor113 @dtaylor113 note nothing can come after lgtm on the line with the bot command :) |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bipuladh, cloudbehl, dtaylor113, spadgett The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@cloudbehl: All pull requests linked via external trackers have merged: Bugzilla bug 1875770 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Dependency: #6436
Signed-off-by: Ankush Behl cloudbehl@gmail.com