intellij-openshift-connector icon indicating copy to clipboard operation
intellij-openshift-connector copied to clipboard

test: Added integration UI test cases

Open martinszuc opened this issue 2 years ago • 8 comments

Purpose of This Change

This change sets up UI integration end-to-end tests for both GitHub Actions (GHA) and Jenkins. It includes configurations for Public and Cluster tests and introduces an abstract base test class that provides common methods for UI testing with the IntelliJ OpenShift toolkit.

Key Changes:

  1. Abstract Base Test Class: Created an abstract base test class, inherited by two subclasses: one for public tests and one for cluster tests. Individual test files inherit from these subclasses, allowing shared methods to be used

Test Cases Added for OpenShift Node (Logged out):

  1. Verify the default node is shown as kubernetes.svc or similar when no kubeconfig is present or the user is not logged in.
  2. Test the ability to log in to a cluster using different methods (e.g., username and password).
  3. Ensure the 'About' section shows appropriate information depending on whether the user is logged in or logged out.

Reason for Splitting Public and Cluster Tests:

Public tests run on GitHub Actions, while cluster tests, which require an OpenShift cluster thus Jenkins.

Was the change discussed in an issue?

fixes #???

How to test changes?

martinszuc avatar Sep 06 '23 09:09 martinszuc

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Oct 09 '23 12:10 sonarqubecloud[bot]

@martinszuc @lgrossma : can you review this one ? is it still releveant ?

sbouchet avatar Mar 13 '24 10:03 sbouchet

@martinszuc @lgrossma : can you review this one ? is it still releveant ?

yes it is relevant but its outdated because it was blocked for some time by outdated ij-common-ui-test-library and login not refreshing the openshift item tree. Both are fixed now and I want to work on this PR this sprint.

martinszuc avatar Mar 18 '24 09:03 martinszuc

@martinszuc looks nice ! UI tests seems ok on GH side, i noticed also tests on Jenkins for openshift clusters, very nice ! if things are ok for you, can you mark it as ready, and re-request review from @lgrossma ?

sbouchet avatar Mar 28 '24 14:03 sbouchet

@martinszuc looks nice ! UI tests seems ok on GH side, i noticed also tests on Jenkins for openshift clusters, very nice ! if things are ok for you, can you mark it as ready, and re-request review from @lgrossma ?

Much appreciated! Currently working on some final touchups for the jenkins side. By evening I should have it tested and ready for reviews.

martinszuc avatar Mar 28 '24 15:03 martinszuc

@martinszuc : those looks good to be merged right after 1.10.0 release

sbouchet avatar Jul 02 '24 12:07 sbouchet

@martinszuc: 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/e2e-4.11 836a5d1ce150809163c6859b76221ae794d27981 link true /test e2e-4.11

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

openshift-ci[bot] avatar Jul 16 '24 12:07 openshift-ci[bot]

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lgrossma, sbouchet

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[bot] avatar Jul 16 '24 13:07 openshift-ci[bot]

/override ci/prow/e2e-openshift

sbouchet avatar Jul 16 '24 13:07 sbouchet

@sbouchet: Overrode contexts on behalf of sbouchet: ci/prow/e2e-openshift

In response to this:

/override ci/prow/e2e-openshift

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-sigs/prow repository.

openshift-ci[bot] avatar Jul 16 '24 13:07 openshift-ci[bot]