Skip to content
This repository was archived by the owner on Jun 26, 2024. It is now read-only.

Conversation

pmacik
Copy link
Contributor

@pmacik pmacik commented Sep 27, 2021

Motivation

Currently the non-admin user account for acceptance tests is setup via oc apply command, which potentially ovewrites OAuth setup of the openshift cluster.

Running the openshift-setup.sh script multiple times might cause the oc login with the acceptance-tests-dev user to fail with:

Error from server (InternalError): Internal error occurred: unexpected response: 500

Changes

This PR:

  • Changes the way the new IDP is configured in OAuth from using oc apply command to oc patch to avoid breaking cluster's other IDPs

Testing

Run test/acceptance-tests/openshift-setup.sh multiple times. No login error should occur.

@pmacik pmacik requested a review from pedjak September 27, 2021 10:33
@openshift-ci openshift-ci bot requested a review from isutton September 27, 2021 10:33
@codecov
Copy link

codecov bot commented Sep 27, 2021

Codecov Report

Merging #1033 (28ee045) into master (2c4d36b) will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1033      +/-   ##
==========================================
+ Coverage   56.97%   57.01%   +0.03%     
==========================================
  Files          28       28              
  Lines        1569     1568       -1     
==========================================
  Hits          894      894              
+ Misses        558      557       -1     
  Partials      117      117              
Impacted Files Coverage Δ
pkg/reconcile/pipeline/handler/project/impl.go 60.07% <0.00%> (+0.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c4d36b...28ee045. Read the comment docs.

@pmacik pmacik changed the title [acceptance-tests] Use patch instead of apply for IDP setup to avoid braking cluster's IDPs [WIP][acceptance-tests] Use patch instead of apply for IDP setup to avoid braking cluster's IDPs Sep 27, 2021
@pedjak pedjak added this to the 0.11 milestone Sep 27, 2021
@pedjak
Copy link
Contributor

pedjak commented Sep 27, 2021

/lgtm
/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 27, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pedjak

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

@pmacik pmacik changed the title [WIP][acceptance-tests] Use patch instead of apply for IDP setup to avoid braking cluster's IDPs [acceptance-tests] Use patch instead of apply for IDP setup to avoid braking cluster's IDPs Sep 27, 2021
@openshift-merge-robot openshift-merge-robot merged commit bda0854 into redhat-developer:master Sep 27, 2021
@pmacik pmacik deleted the fix-openshift-setup branch May 11, 2022 10:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants