-
Notifications
You must be signed in to change notification settings - Fork 216
Added test to update DataSource info via Common Mount #2441
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
Conversation
|
|
||
| logger.info("Creating unique namespace for Domain2"); | ||
| assertNotNull(namespaces.get(2), "Namespace list is null"); | ||
| domain2Namespace = namespaces.get(2); |
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.
Why we need 2 domains in this usecases ? If needed please explain on the javadoc section of the test method.
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.
just to make the tests independent from each other.
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.
I would rather prefer merge the usecase to avoid multiple domain boot if possible, you can make the Data Source uecase as additional common mount in addition to the existing test method.
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.
changed test to have 1 domain
anpanigr
left a comment
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.
LGTM
| domain2Uid, miiCMImage3, domain2Namespace); | ||
| createDomainAndVerify(domain2Uid, domainCR, domain2Namespace, | ||
| adminServerPodName, managedServerPrefix, replicaCount); | ||
| podsWithTimeStamps = getPodsWithTimeStamps(adminServerPodName, |
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.
you can move this into patchDomainWithCMImageAndVerify method as that's where its used
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.
done
| + " in the new patched domain"); | ||
|
|
||
| //get current timestamp before domain rolling restart to verify domain roll events | ||
| OffsetDateTime timestamp = now(); |
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 used, you can remove it
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.
done
| String.format("Rolling restart failed for domain %s in namespace %s", domainUid, domainNamespace)); | ||
| } | ||
|
|
||
| private Map getPodsWithTimeStamps(String adminServerPodName, String managedServerPrefix, |
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.
have you checked if there are any utility methods? we may be doing this in multiple tests
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.
switched to common util
| int adminServiceNodePort | ||
| = getServiceNodePort(domain2Namespace, getExternalServicePodName(adminServerPodName), "default"); | ||
| assertNotEquals(-1, adminServiceNodePort, "admin server default node port is not valid"); | ||
| assertTrue(checkDS(adminServerPodName,domain2Namespace, |
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.
can you check the methods in CommonTestUtils if you can use them - checkSystemResourceConfig and others?
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.
switched to common util
vanajamukkara
left a comment
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.
LG
https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-kind-new/5567/
https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-kind-new/5568/