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

Fix potential issue in odo version nightly tests if user does not have permission to get the OpenShift version #6933

Merged

Conversation

rm3l
Copy link
Member

@rm3l rm3l commented Jun 26, 2023

What type of PR is this:
/kind bug
/area testing

What does this PR do / why we need it:
This fixes a potential issue with the odo version integration tests, which failed in the nightly jobs (running on Prow) because the developer user does not have the permissions to get the OpenShift version.

Based on what had been done in #6551 to fix a similar issue, it gets the version from oc version and if something is reported about the server, will check that odo version displays the right information about OpenShift. If not, then such information should be missing from the odo version output.

Which issue(s) this PR fixes:

PR acceptance criteria:

  • Unit test

  • Integration test

  • Documentation

How to test changes / Special notes to the reviewer:

rm3l added 2 commits June 26, 2023 16:35
…penShift platform version

This happened on the nightly jobs running on Prow,
which makes us use a developer account with some restrictions.
@openshift-ci openshift-ci bot added kind/bug Categorizes issue or PR as related to a bug. area/testing Issues or PRs related to testing, Quality Assurance or Quality Engineering labels Jun 26, 2023
@rm3l rm3l requested a review from valaparthvi June 26, 2023 14:49
@netlify
Copy link

netlify bot commented Jun 26, 2023

Deploy Preview for odo-docusaurus-preview canceled.

Name Link
🔨 Latest commit 6a2f36a
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/6499a5698e4e000008517d05

@rm3l rm3l requested a review from feloy June 26, 2023 14:49
@rm3l rm3l changed the title Fix issues in the odo version tests if user does not have permission to get the OpenShift version Fix potential issue in odo version tests if user does not have permission to get the OpenShift version Jun 26, 2023
@odo-robot
Copy link

odo-robot bot commented Jun 26, 2023

OpenShift Unauthenticated Tests on commit finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 26, 2023

NoCluster Tests on commit finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 26, 2023

Unit Tests on commit finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 26, 2023

Validate Tests on commit finished successfully.
View logs: TXT HTML

@sonarcloud
Copy link

sonarcloud bot commented Jun 26, 2023

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
0.0% 0.0% Duplication

@odo-robot
Copy link

odo-robot bot commented Jun 26, 2023

Kubernetes Tests on commit finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 26, 2023

OpenShift Tests on commit finished successfully.
View logs: TXT HTML

@rm3l rm3l changed the title Fix potential issue in odo version tests if user does not have permission to get the OpenShift version Fix potential issue in odo version nightly tests if user does not have permission to get the OpenShift version Jun 26, 2023
@odo-robot
Copy link

odo-robot bot commented Jun 26, 2023

Kubernetes Docs Tests on commit 94e3230 finished successfully.
View logs: TXT HTML

Copy link
Contributor

@feloy feloy left a comment

Choose a reason for hiding this comment

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

Thanks for the fix

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jun 26, 2023
@openshift-merge-robot openshift-merge-robot merged commit bfa125e into redhat-developer:main Jun 26, 2023
@rm3l rm3l deleted the 6932-nightly-tests-failing branch June 26, 2023 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing Issues or PRs related to testing, Quality Assurance or Quality Engineering kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nightly tests failing
3 participants