openshift-pipelines / console-plugin

OpenShift Pipelines (and Tekton) OpenShift console dynamic plugin
Apache License 2.0
2 stars 16 forks source link

Adding pipelines e2e tests from console to console plugin #122

Closed sanketpathak closed 4 months ago

sanketpathak commented 5 months ago

Issue: https://issues.redhat.com/browse/ODC-7592 Story:ODC-7592

Description: Adding e2e test files in the dynamic plugin from the static plugin

Run a test file successfully

Command to execute:

export NO_HEADLESS=true && export CHROME_VERSION=$(/usr/bin/google-chrome-stable --version) BRIDGE_KUBEADMIN_PASSWORD=YH3jN-PRFT2-Q429c-5KQDr BRIDGE_BASE_ADDRESS=https://console-openshift-console.apps.dev-svc-4.13-042801.devcluster.openshift.com/ export BRIDGE_KUBEADMIN_PASSWORD export BRIDGE_BASE_ADDRESS oc login -u kubeadmin -p $BRIDGE_KUBEADMIN_PASSWORD oc apply -f ./console/frontend/integration-tests/data/htpasswd-secret.yaml oc patch oauths cluster --patch "$(cat ./console/frontend/integration-tests/data/patch-htpasswd.yaml)" --type=merge ./test-prow-e2e.sh Run create-from-add-options.feature Browser Chrome 120

openshift-ci[bot] commented 5 months ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sanketpathak Once this PR has been reviewed and has the lgtm label, please assign lokanandaprabhu for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/openshift-pipelines/console-plugin/blob/main/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
openshift-ci[bot] commented 5 months ago

Hi @sanketpathak. Thanks for your PR.

I'm waiting for a openshift-pipelines member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
vikram-raj commented 5 months ago

/ok-to-test

sanketpathak commented 5 months ago

/retest

ppitonak commented 4 months ago
$ yarn test-cypress-headless
yarn run v1.22.22
$ cd integration-tests && node --max-old-space-size=4096 node_modules/.bin/cypress run --env openshift=true --browser ${BRIDGE_E2E_BROWSER_NAME:=chrome} --headless cypress:cli
node:internal/modules/cjs/loader:1146
  throw err;
  ^

Error: Cannot find module '/home/ppitonak/workspace/console-plugin/integration-tests/node_modules/.bin/cypress'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.12.2
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
vikram-raj commented 4 months ago

@sanketpathak Can you resolve the conflicts and update the PR?

openshift-ci[bot] commented 4 months ago

@sanketpathak: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/frontend c9b699408dc434b1ce647954e768fedec8fc55bf link true /test frontend

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
sanketpathak commented 4 months ago

Closing it in favor of pr https://github.com/openshift-pipelines/console-plugin/pull/133