Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

[release-v0.23] Backports for conformance tests#1350

Merged
openshift-ci[bot] merged 2 commits into
openshift:release-v0.23from
mgencur:conformance-v0.23
Aug 5, 2021
Merged

[release-v0.23] Backports for conformance tests#1350
openshift-ci[bot] merged 2 commits into
openshift:release-v0.23from
mgencur:conformance-v0.23

Conversation

@mgencur
Copy link
Copy Markdown

@mgencur mgencur commented Aug 3, 2021

Backporting commits that make it possible to run coformance tests as a project admin user.

mgencur added 2 commits August 3, 2021 09:02
* Use test namespaces from pre-defined range

* ReuseNamespace flag

* ReuseNamespace variable in lib package

* prevents import cycle when flags are accessed directly from the lib
package

* Fix gofmt

* Fix goimports

* Remove the last occurrence of import cycle

* Remove unused variable

* Fix detection of NotFound api error

* also make the retry count and interval shorter to speed up things

* Delete NS only if we created it

* leave previously existing namespaces there

* Call CreateNamespaceWithRetry directly
* Create RBAC according to the test namespace

* most tests will use just the serviceAccount that has the same name as
the test namespace
* tests using ApiServerSource will user serviceAccount that is named as
follows: ${namespace}-eventwatcher

* Script for creating necessary RBAC for conformance tests

* Readme for running Conformance tests as project admin

* Fix imports

* Minor update for readme

* Fix goimport

* Do not fail if ServiceAccount already exists

* Fix goftm

* Mark tests requiring cluster-admin with specific build tag

* Move the creation of SA,Role,RoleBinding close to namespace creation

* since the name of the resources is aligned with the name of the
namespace it makes sense to create them only once, at the same time as
the namespace

* Formatting

* Move remaining creation of SA,Role,RoleBinding
@openshift-ci openshift-ci Bot added the area/test-and-release Issues or PRs related to test and release label Aug 3, 2021
@openshift-ci openshift-ci Bot requested review from alanfx and devguyio August 3, 2021 07:05
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 3, 2021
@mgencur
Copy link
Copy Markdown
Author

mgencur commented Aug 3, 2021

Should I also backport this to v0.23.0 ? (or the sync with v0.23 will be done automatically)

@mgencur
Copy link
Copy Markdown
Author

mgencur commented Aug 3, 2021

/retest

1 similar comment
@mgencur
Copy link
Copy Markdown
Author

mgencur commented Aug 4, 2021

/retest

Copy link
Copy Markdown
Member

@matzew matzew left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 5, 2021
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Aug 5, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: matzew, mgencur

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

The pull request process is described here

Details 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 openshift-ci Bot merged commit 9176be1 into openshift:release-v0.23 Aug 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/test-and-release Issues or PRs related to test and release lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants