8000 Added new unit test for OWLS-87553 and modified existing managed server startup unit tests by ankedia · Pull Request #2213 · oracle/weblogic-kubernetes-operator · GitHub
[go: up one dir, main page]

Skip to content

Added new unit test for OWLS-87553 and modified existing managed server startup unit tests #2213

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 2 commits into from
Feb 23, 2021

Conversation

ankedia
Copy link
Member
@ankedia ankedia commented Feb 22, 2021

Backlog - Added a new unit test for OWLS-87553 fix and modified existing managed server startup tests to invoke WaitForReady step that performs periodic backstop checking in cases where watch event notifications are not delivered reliably.

@@ -156,34 +171,44 @@ private static V1ObjectMeta withNames(V1ObjectMeta objectMeta, String serverName
.putLabelsItem(SERVERNAME_LABEL, serverName);
}

protected TestUtils.ConsoleHandlerMemento configureOperatorLogger() {
Copy link
Member

Choose a reason for hiding this comment

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

I can understand a desire to avoid line breaks, but in this case, I think it is clearer to leave this call to silenceOperatorLogger inline, with ignoringLoggedExceptions on the next line.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the review comment, I have made the change as per your suggestion.

private void setPodScheduled(String serverName) {
Objects.requireNonNull(domainPresenceInfo.getServerPod(serverName).getSpec()).setNodeName("aNode");
// Marks the specified pod as having been scheduled on a Kubernetes node.
private void setPodScheduled(V1Pod pod) {
Copy link
Member

Choose a reason for hiding this comment

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

Good choice to simplify this.

Copy link
Member
@lennyphan lennyphan left a comment

Choose a reason for hiding this comment

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

LGTM

@rjeberhard rjeberhard merged commit f69f677 into release/3.1.4 Feb 23, 2021
@ankedia ankedia deleted the owls_87553_unit_test_changes branch March 3, 2021 21:49
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
2A27
0