-
Task
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
-
5
-
False
-
-
False
-
Yes
-
---
-
---
WHAT
Create/Update integration test for the ManagedKafka.Spec.Oauth.*
Note: This can be done post migration to sso.redhat.com so that custom claim checks are subject to change.
WHY
The tests are missing or existing test cases need to be updated to verify the oauth spec fields check in the Kafka CR
HOW
They are similar to:
if mk := findManagedKafkaByID(list.Items, testKafka.ID); mk != nil { // check canary service account Expect(mk.Spec.ServiceAccounts).To(HaveLen(1)) canaryServiceAccount := mk.Spec.ServiceAccounts[0] Expect(canaryServiceAccount.Name).To(Equal("canary")) Expect(canaryServiceAccount.Principal).To(Equal(canaryServiceAccountClientId)) Expect(canaryServiceAccount.Password).To(Equal(canaryServiceAccountClientSecret)) } else {
DONE
- Integration tests are create and updated
- Code reviewed
- Tests run successfully