-
Notifications
You must be signed in to change notification settings - Fork 216
add integration tests for NAMESPACE_WAITING_STARTED and NAMESPACE_WATCHING_STOPPED events #2322
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/ItKubernetesEvents.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/weblogic/kubernetes/ItKubernetesEvents.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/weblogic/kubernetes/ItKubernetesEvents.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/weblogic/kubernetes/ItKubernetesEvents.java
Show resolved
Hide resolved
// check if there is a warning message in operator's log | ||
String operatorPodName = getOperatorPodName(OPERATOR_RELEASE_NAME, opNamespace); | ||
String expectedErrorMsg = String.format( | ||
"Cannot create NamespaceWatchingStopped event in namespace %s due to an authorization 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.
PR#2323 has changed the log message a little - "Cannot create" -> "Cannot create or replace".
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.
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.
LGTM
Write integration test cases for the function added in owls-86455.
Two events are added: NAMESPACE_WAITING_STARTED and NAMESPACE_WATCHING_STOPPED.
Tested all domainNamespaceSelectionStrategy types that the operator supports
Jenkins result:
https://build.weblogick8s.org:8443/view/all/job/weblogic-kubernetes-operator-kind-new/4778/
https://build.weblogick8s.org:8443/view/all/job/weblogic-kubernetes-operator-kind-new/4777/testReport/