Skip to content

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

Merged
merged 22 commits into from
Apr 23, 2021

Conversation

xiancao
Copy link
Contributor

@xiancao xiancao commented Apr 20, 2021

Write integration test cases for the function added in owls-86455.
Two events are added: NAMESPACE_WAITING_STARTED and NAMESPACE_WATCHING_STOPPED.

  1. When the operator starts, one NAMESPACE_WAITING_STARTED event should be generated for each namespace the operator manages.
  2. When the operator stops to manage a namespace, one NAMESPACE_WATCHING_STOPPED event should be generated.
    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/

@xiancao xiancao requested review from doxiao, anpanigr and sankarpn April 20, 2021 18:35
// 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",
Copy link
Member

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".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@xiancao xiancao requested review from doxiao and sankarpn April 22, 2021 04:05
Copy link
Member

@sankarpn sankarpn 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 0d65a3f into main Apr 23, 2021
@xiancao xiancao deleted the xc-86917 branch April 23, 2021 15:54
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