File tree Expand file tree Collapse file tree 3 files changed +11
-17
lines changed
integration-tests/src/test/java/oracle/kubernetes/operator
src/integration-tests/apps/webservices Expand file tree Collapse file tree 3 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -632,8 +632,12 @@ public void testAddRemoveDomainUpdateOperatorHC() throws Exception {
632
632
verifyOperatorDomainManagement (operator , domainnew , true );
633
633
testCompletedSuccessfully = true ;
634
634
} finally {
635
- if (domain != null ) TestUtils .deleteWeblogicDomainResources (domain .getDomainUid ());
636
- if (domainnew != null ) domainnew .destroy ();
635
+ if (domain != null ) {
636
+ TestUtils .deleteWeblogicDomainResources (domain .getDomainUid ());
637
+ }
638
+ if (domainnew != null ) {
639
+ domainnew .destroy ();
640
+ }
637
641
if (operator != null ) {
638
642
operator .destroy ();
639
643
}
@@ -669,7 +673,9 @@ public void testDeleteOperatorButNotDomain() throws Exception {
669
673
domain .testWlsLivenessProbe ();
670
674
testCompletedSuccessfully = true ;
671
675
} finally {
672
- if (domain != null ) TestUtils .deleteWeblogicDomainResources (domain .getDomainUid ());
676
+ if (domain != null ) {
677
+ TestUtils .deleteWeblogicDomainResources (domain .getDomainUid ());
678
+ }
673
679
if (operator != null ) {
674
680
operator .destroy ();
675
681
}
@@ -700,8 +706,9 @@ private void verifyOperatorDomainManagement(
700
706
}
701
707
if (i == maxIterations - 1 ) {
702
708
String errorMsg = "FAILURE: Operator can't access the domain " + domain .getDomainUid ();
703
- if (!isAccessible )
709
+ if (!isAccessible ) {
704
710
errorMsg = "FAILURE: Operator still can access the domain " + domain .getDomainUid ();
711
+ }
705
712
throw new RuntimeException (errorMsg );
706
713
}
707
714
logger .info ("iteration " + i + " of " + maxIterations );
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments