eclipse-che / che

Kubernetes based Cloud Development Environments for Enterprise Teams
http://eclipse.org/che
Eclipse Public License 2.0
6.99k stars 1.19k forks source link

[Test]: Changed WTO test to use kubeadmin login & fix getServerUrl #23214

Open martinszuc opened 3 weeks ago

martinszuc commented 3 weeks ago

What does this PR do?

In job /WTO/job/WTO-smee/job/wto-smee/ changed the login to use kube:admin based on credentials from specific Flexy-install based on build number. In this PR i edited the test code to reflect changes and to login as kubeadmin during WTO test as admin.

The server URL was incorrectly parsed (the getServerURL() expects URL in format https://devspaces.apps.ocp417......com/ ) resulting in test failing, So i fixed it by adding a case where the BASE URL contains the https://console-openshift-console.apps......com/ format which was used in this test case.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

https://issues.redhat.com/browse/CRW-7483

How to test this PR?

tested on https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/WTO/job/WTO-smee/job/wto-smee/126/

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

martinszuc commented 3 weeks ago

Please, move all the WTO tests to the dedicated repo - it should not be part of the Eclipse Che

@ibuziuk Yes, we are aware, the WTO tests will be moved. These edits/contributions in this PR are small changes for test to work correctly with new changes to test's jenkins job. WTO tests will be moved in another task which could be way more complex than these small changes. Hence i would like to include these changes here.

ibuziuk commented 3 weeks ago

@martinszuc looks like eclipse ECA has not been signed see https://api.eclipse.org/git/eca/status/gh/eclipse-che/che/23214