-
Notifications
You must be signed in to change notification settings - Fork 216
Integration Test: Add error path testing for Auxiliary Image feature #2457
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
integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/CommonMiiTestUtils.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiAuxiliaryImage.java
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiAuxiliaryImage.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiAuxiliaryImage.java
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiAuxiliaryImage.java
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiAuxiliaryImage.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiAuxiliaryImage.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiAuxiliaryImage.java
Show resolved
Hide resolved
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.
Can you add a check that domain is not restarted for all the negative cases?
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.
LGTM
|
|
||
| // verify the domain is not rolled | ||
| // TODO: enable this check once https://jira.oraclecorp.com/jira/browse/OWLS-90971 is fixed | ||
| /* |
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.
Do we need to sleep if we are using utility oracle.weblogic.kubernetes.utils.CommonMiiTestUtils.verifyPodsNotRolled;
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.
yes, in the oracle.weblogic.kubernetes.utils.CommonMiiTestUtils.verifyPodsNotRolled, it only sleeps for 2 minutes. It is not enough in this case.
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
Added the following negative tests case for auxiliary image feature. Make sure errors are reported clearly.
(a) Missing common directory common mount path is not in the image
(b) missing domain config, what happens if the common mount contains only sparse JMS config
(c) common mount with out WDT binary
(d) Test a domain resource configuration using a custom common mount command that's guaranteed to fail, for example: exit 1.
https://build.weblogick8s.org:8443/view/all/job/weblogic-kubernetes-operator-kind-new/5643/
https://build.weblogick8s.org:8443/view/all/job/weblogic-kubernetes-operator-kind-new/5640/
https://build.weblogick8s.org:8443/view/all/job/weblogic-kubernetes-operator-kind-new/5644/