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

Hosted mode Testing for OperatorPolicy #242

Conversation

yiraeChristineKim
Copy link
Contributor

@yiraeChristineKim yiraeChristineKim commented May 7, 2024

The "hosting cluster" should be used for the Policy, OperatorPolicy, and compliance events, while the "target cluster" should be used for all the other resources like Subscription, InstallPlan, etc.
Ref: https://issues.redhat.com/browse/ACM-11255

.PHONY: e2e-test
e2e-test: e2e-dependencies
$(GINKGO) -v --procs=20 $(E2E_TEST_ARGS) test/e2e
$(GINKGO) -v --procs=$(E2E_PROCS) $(E2E_TEST_ARGS) test/e2e -- -is_hosted=$(IS_HOSTED)
Copy link
Contributor Author

@yiraeChristineKim yiraeChristineKim May 9, 2024

Choose a reason for hiding this comment

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

Hosted mode test only 2. Therefore, setting up 20 procs takes more time than unnecessary.

.vscode/launch.json Outdated Show resolved Hide resolved
.vscode/launch.json Outdated Show resolved Hide resolved
@yiraeChristineKim yiraeChristineKim marked this pull request as ready for review May 9, 2024 14:31
@openshift-ci openshift-ci bot requested a review from gparvin May 9, 2024 14:31
@yiraeChristineKim yiraeChristineKim changed the title Hosted mode Testing now no need to review Hosted mode Testing for OperatorPolicy May 9, 2024
Copy link
Member

@JustinKuli JustinKuli left a comment

Choose a reason for hiding this comment

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

I think it looks good overall! Just some small things I noticed

.vscode/launch.json Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
test/e2e/case38_install_operator_test.go Show resolved Hide resolved
test/e2e/case38_install_operator_test.go Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@yiraeChristineKim yiraeChristineKim force-pushed the ACM-11255 branch 4 times, most recently from c6e8924 to 0a22c78 Compare May 13, 2024 14:22
@@ -23,7 +23,7 @@ import (
"open-cluster-management.io/config-policy-controller/test/utils"
)

var _ = Describe("Testing OperatorPolicy", Ordered, func() {
var _ = Describe("Testing OperatorPolicy", Ordered, Label("hosted-as-well"), func() {
Copy link
Member

Choose a reason for hiding this comment

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

@yiraeChristineKim I vote for Dale's suggestion or using the label supports-hosted.

The "hosting cluster" should be used for the Policy, OperatorPolicy, and compliance events
Ref: https://issues.redhat.com/browse/ACM-11255
Signed-off-by: yiraeChristineKim <yikim@redhat.com>
Copy link

openshift-ci bot commented May 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mprahl, yiraeChristineKim

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:
  • OWNERS [mprahl,yiraeChristineKim]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants