-
Notifications
You must be signed in to change notification settings - Fork 140
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
tests: e2e test for trusted-ca-bundle #1346
base: incubation
Are you sure you want to change the base?
tests: e2e test for trusted-ca-bundle #1346
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cc @VaishnaviHire |
52a655a
to
7897693
Compare
tests/e2e/helper_test.go
Outdated
@@ -129,45 +129,45 @@ func setupDSCInstance(name string) *dscv1.DataScienceCluster { | |||
}, | |||
ModelMeshServing: modelmeshserving.ModelMeshServing{ | |||
Component: components.Component{ | |||
ManagementState: operatorv1.Managed, | |||
ManagementState: operatorv1.Removed, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ManagementState changes need to be reverted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops.. yea my bad. just reverted them
a439e36
to
37d0b92
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## incubation #1346 +/- ##
=============================================
Coverage ? 19.08%
=============================================
Files ? 30
Lines ? 3369
Branches ? 0
=============================================
Hits ? 643
Misses ? 2657
Partials ? 69 ☔ View full report in Codecov by Sentry. |
i dont think it need to be too complicated in test case to cover all 3 senaiors from that "fix" PR. |
@@ -444,6 +451,48 @@ func (tc *testContext) testDefaultCertsAvailable() error { | |||
return nil | |||
} | |||
|
|||
func (tc *testContext) testTrustedCABundle() error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure i understand the logic here:
if we are making e2e test (not unit-test) , what we should test is:
- set managementStateChangeTrustedCA := true
- check if Configmap is created in tc.testDSCI.Spec.ApplicationsNamespace
- check content of CADataFieldName == tc.testDSCI.Spec.TrustedCABundle.CustomCABundle
- check content of CADataFieldName has newline as ending (this is new from current code base)
- set managementStateChangeTrustedCA := false
- check no Configmap in tc.testDSCI.Spec.ApplicationsNamespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, seems confusion for the above comments:
set managementStateChangeTrustedCA := true
is not meant to be set in the testcase, this is only to illustrate the case when set to Managed
VS Removed
what need to be done is tc.testDSCI.Spec.TrustedCABundle.ManagementState: Managed
37d0b92
to
96ec2c2
Compare
/test opendatahub-operator-e2e |
@Sara4994: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Description
This PR is intended to include e2e tests for the trusted CA bundle feature.
JIRA issue: https://issues.redhat.com/browse/RHOAIENG-3924
How Has This Been Tested?
Screenshot or short clip
Merge criteria