Skip to content

Conversation

@xiancao
Copy link
Contributor

@xiancao xiancao commented Jul 13, 2021

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/

@xiancao xiancao requested a review from tbarnes-us July 14, 2021 16:44
@xiancao xiancao requested a review from anpanigr July 14, 2021 23:07
Copy link
Contributor

@vanajamukkara vanajamukkara left a 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?

@xiancao xiancao requested a review from vanajamukkara July 15, 2021 17:59
Copy link
Contributor

@vanajamukkara vanajamukkara left a 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
/*
Copy link
Member

@anpanigr anpanigr Jul 15, 2021

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;

Copy link
Contributor Author

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.

@xiancao xiancao requested a review from anpanigr July 15, 2021 19:53
Copy link
Member

@anpanigr anpanigr left a comment

Choose a reason for hiding this comment

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

lgtm

@rjeberhard rjeberhard merged commit ad6b2dd into main Jul 15, 2021
@xiancao xiancao deleted the xc-90625 branch July 15, 2021 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants