-
Notifications
You must be signed in to change notification settings - Fork 217
Adding application high availability check in operator upgrade tests #2039
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
Add an Upgrade Test for Release 3.0.3 in this PR |
integration-tests/src/test/java/oracle/weblogic/kubernetes/ItOperatorUpgrade.java
Outdated
Show resolved
Hide resolved
appAccessedAfterUpgrade = true; | ||
} | ||
|
||
try { |
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.
Is there a reason for the delay here?
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.
This can be removed as upgrade is not taking much time. This was added to introduce some delay if the other thread is going to take long time.
@@ -169,7 +190,9 @@ public void testOperatorUpgradeFrom3_0_2(@Namespaces(3) List<String> namespaces) | |||
*/ | |||
@AfterEach | |||
public void tearDown() { | |||
if (System.getenv("SKIP_CLEANUP") == null) { | |||
if (System.getenv("SKIP_CLEANUP") == null | |||
|| (System.getenv("SKIP_CLEANUP") != null |
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.
what is the point of checking for both null and not null? If its null isn't it the next statement going to throw NPE?
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.
clarified on slack
…peratorUpgrade.java Co-authored-by: Sankar Periyathambi Neelakandan <45743425+sankarpn@users.noreply.github.com>
…logic-kubernetes-operator into highavailabilitytests
Added, here is the Jenkins results with 3.0.3 upgrade test. |
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
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
Adding application high availability check in operator upgrade tests.
An application is deployed to the cluster in the domain and the application is continuously accessed from a separate thread while the operator is being upgraded and after the upgrade.
This check is added only for operator releases 3.0.0 and later, Ryan confirmed this is not needed for older releases.
Jenkins results:
sequential run - https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-kind-new/3056/
Just upgrade test - https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-kind-new/3054/
Upgrade tests are not run in parallel