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

Automation to verify the href url's from the quick starts #9727

Merged

Conversation

sanketpathak
Copy link
Contributor

@sanketpathak sanketpathak commented Aug 4, 2021

Fix: https://issues.redhat.com/browse/ODC-6132

Problem: Each quick start should have a unique URL that can be accessed

Solution: This script will automate to verify unique url associated with a quick start

Test Setup:

Cluster should be running on local

Check the TAGS in frontend/packages/dev-console/integration-tests/cypress.json file be: ""(@pre-condition or @smoke or @regression) and not (@Manual or @to-do or @un-verified or @broken-test)"",

The "@patternfly/quickstarts" version be "1.0.2" in /frontend/package.json

Command to execute:

export NO_HEADLESS=true && export CHROME_VERSION=$(/usr/bin/google-chrome-stable --version)
BRIDGE_KUBEADMIN_PASSWORD=xry7n-UVpxC-6hXFf-sgjEi
BRIDGE_BASE_ADDRESS=https://console-openshift-console.apps.jakumar-2021-09-01-193941.devcluster.openshift.com
export BRIDGE_KUBEADMIN_PASSWORD
export BRIDGE_BASE_ADDRESS
export BRIDGE_API
oc login -u kubeadmin -p $BRIDGE_KUBEADMIN_PASSWORD https://api.jakumar-2021-09-01-193941.devcluster.openshift.com:6443/ --insecure-skip-tls-verify
oc apply -f ./frontend/integration-tests/data/htpasswd-secret.yaml
oc patch oauths cluster --patch "$(cat ./frontend/integration-tests/data/patch-htpasswd.yaml)" --type=merge
./test-cypress.sh -p dev-console

Execute the quick-start-devperspective.feature file

Checks for approving Epic scenarios Automation PR:

  • Execute the @to-do tagged gherkin scripts manually
  • Convert the @to-do gherkin scripts to cypress automation scripts
  • Once scripts are automated, replace tag @to-do with @epic-number
  • Execute the scripts in Remote cluster
  • Update Automation Report

Browser
Chrome 89

Test Execution Screenshot:

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 4, 2021
@openshift-ci openshift-ci bot added the component/dev-console Related to dev-console label Aug 4, 2021
@sanketpathak sanketpathak changed the title [WIP] Automation to verify the href url's from the quick starts Automation to verify the href url's from the quick starts Sep 3, 2021
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 3, 2021
@makambalaji
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 3, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 3, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: makambalaji, sanketpathak

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-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 3, 2021
@makambalaji
Copy link
Contributor

Verified and below is the screenshot for reference
9727-pr

@makambalaji
Copy link
Contributor

Adding below labels for merging pr, This pr doesn't have any effect on dev code or docs

/label px-approved
/label qe-approved
/label docs-approved

@openshift-ci openshift-ci bot added px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR docs-approved Signifies that Docs has signed off on this PR labels Sep 3, 2021
@openshift-merge-robot openshift-merge-robot merged commit 4c09a40 into openshift:master Sep 3, 2021
@spadgett spadgett added this to the v4.9 milestone Sep 4, 2021
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. component/dev-console Related to dev-console docs-approved Signifies that Docs has signed off on this PR lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants