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

Bug 1875770: Test for PVC clone #6528

Merged
merged 1 commit into from Sep 23, 2020

Conversation

cloudbehl
Copy link
Contributor

Dependency: #6436
Signed-off-by: Ankush Behl cloudbehl@gmail.com

@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. label Sep 4, 2020
@openshift-ci-robot
Copy link
Contributor

@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
  • bug is open, matching expected state (open)
  • bug target release (4.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1875770: Test for PVC clone

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.

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/core Related to console core functionality labels Sep 4, 2020
@cloudbehl cloudbehl force-pushed the test_clone branch 2 times, most recently from 32119e0 to b2e6ff0 Compare September 8, 2020 08:49
@cloudbehl cloudbehl force-pushed the test_clone branch 2 times, most recently from 13c7723 to b4fd637 Compare September 8, 2020 10:47
@cloudbehl
Copy link
Contributor Author

@dtaylor113 can you please review?

Comment on lines 45 to 52
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`);
});
Copy link
Contributor

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.

@bipuladh
Copy link
Contributor

/assign @dtaylor113 @spadgett

@@ -67,4 +68,5 @@ export type RequestSizeInputProps = {
minValue?: number;
inputClassName?: string;
inputID?: string;
dataTestId?: string;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
dataTestId?: string;
testID?: string;

@spadgett
Copy link
Member

/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']);
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ack!

Copy link
Contributor Author

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']);
Copy link
Contributor

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(..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@dtaylor113
Copy link
Contributor

Looks like CI timed out waiting for 'Pending' to become 'Bound':

image

Copy link
Contributor

@dtaylor113 dtaylor113 left a 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?

@cloudbehl
Copy link
Contributor Author

@dtaylor113 can you review it once again?

Copy link
Contributor

@dtaylor113 dtaylor113 left a 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;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
testId?: string;
testID?: string;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ack!

@dtaylor113
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 18, 2020
Signed-off-by: Ankush Behl <cloudbehl@gmail.com>
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Sep 21, 2020
@cloudbehl
Copy link
Contributor Author

@dtaylor113 Updated the PR to address sam's comment & also added addressed #6528 (review)

@dtaylor113
Copy link
Contributor

/lgtm -thanks

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

/approve

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 23, 2020
@spadgett
Copy link
Member

Adding lgtm on behalf of @dtaylor113
/lgtm

@dtaylor113 note nothing can come after lgtm on the line with the bot command :)

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 23, 2020
@openshift-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 7c601c1 into openshift:master Sep 23, 2020
@openshift-ci-robot
Copy link
Contributor

@cloudbehl: All pull requests linked via external trackers have merged:

Bugzilla bug 1875770 has been moved to the MODIFIED state.

In response to this:

Bug 1875770: Test for PVC clone

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.

@spadgett spadgett added this to the v4.6 milestone Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/core Related to console core functionality lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants