@@ -94,6 +94,9 @@ public void test1CreateFirstOperatorAndDomain() throws Exception {
94
94
logTestBegin ("test1CreateFirstOperatorAndDomain" );
95
95
testCreateOperatorManagingDefaultAndTest1NS ();
96
96
domain1 = testAllUseCasesForADomain (operator1 , domain1YamlFile );
97
+ domain1 .testWlsLivenessProbe ();
98
+ domain1 .destroy ();
99
+
97
100
logger .info ("SUCCESS - test1CreateFirstOperatorAndDomain" );
98
101
}
99
102
@@ -128,6 +131,7 @@ public void test3CreateDomainInTest1NS() throws Exception {
128
131
// create domain3
129
132
Domain domain3 = testDomainCreation (domain3YamlFile );
130
133
testWLDFScaling (operator1 , domain3 );
134
+ domain3 .destroy ();
131
135
logger .info ("SUCCESS - test3CreateDomainInTest1NS" );
132
136
}
133
137
@@ -179,6 +183,7 @@ public void test5CreateConfiguredDomainInTest2NS() throws Exception {
179
183
180
184
logger .info ("Verify no impact on domain4" );
181
185
domain4 .verifyDomainCreated ();
186
+ domain4 .destroy ();
182
187
logger .info ("SUCCESS - test5CreateConfiguredDomainInTest2NS" );
183
188
}
184
189
@@ -194,7 +199,8 @@ public void test6CreateDomainWithStartPolicyAdminOnly() throws Exception {
194
199
}
195
200
logger .info ("Creating Domain domain5 & verifing the domain creation" );
196
201
// create domain5
197
- TestUtils .createDomain (domain5YamlFile );
202
+ Domain domain5 = TestUtils .createDomain (domain5YamlFile );
203
+ domain5 .destroy ();
198
204
logger .info ("SUCCESS - test6CreateDomainWithStartPolicyAdminOnly" );
199
205
}
200
206
@@ -216,25 +222,6 @@ public void test7CreateDomainPVReclaimPolicyRecycle() throws Exception {
216
222
logger .info ("SUCCESS - test7CreateDomainPVReclaimPolicyRecycle" );
217
223
}
218
224
219
- @ Test
220
- public void test8WlsLivenessProbe () throws Exception {
221
-
222
- logTestBegin ("test8WlsLivenessProbe" );
223
- logger .info ("Checking if operator1 is running, if not creating" );
224
- if (operator1 == null ) {
225
- operator1 = TestUtils .createOperator (op1YamlFile );
226
- }
227
- if (domain1 == null ) {
228
- domain1 = TestUtils .createDomain (domain1YamlFile );
229
- }
230
- // test managed server1 pod auto restart
231
- String domain = domain1 .getDomainUid ();
232
- String namespace = domain1 .getDomainMap ().get ("namespace" ).toString ();
233
- String serverName = domain1 .getDomainMap ().get ("managedServerNameBase" ).toString () + "1" ;
234
- TestUtils .testWlsLivenessProbe (domain , serverName , namespace );
235
- logger .info ("SUCCESS - test8WlsLivenessProbe" );
236
- }
237
-
238
225
@ Test
239
226
public void test9CreateDomainOnExistingDir () throws Exception {
240
227
Assume .assumeFalse (
@@ -249,7 +236,7 @@ public void test9CreateDomainOnExistingDir() throws Exception {
249
236
}
250
237
logger .info ("domain1 " + domain1 );
251
238
// create domain on existing dir
252
- domain1 .destroy ();
239
+ // domain1.destroy();
253
240
domain1 .createDomainOnExistingDirectory ();
254
241
logger .info ("SUCCESS - test9CreateDomainOnExistingDir" );
255
242
}
@@ -267,6 +254,7 @@ public void testACreateDomainApacheLB() throws Exception {
267
254
// create domain7
268
255
Domain domain7 = TestUtils .createDomain (domain7YamlFile );
269
256
domain7 .verifyAdminConsoleViaLB ();
257
+ domain7 .destroy ();
270
258
logger .info ("SUCCESS - testACreateDomainApacheLB" );
271
259
}
272
260
@@ -281,7 +269,8 @@ public void testBCreateDomainWithDefaultValuesInSampleInputs() throws Exception
281
269
}
282
270
283
271
// create domain8
284
- testAllUseCasesForADomain (operator1 , domain8YamlFile );
272
+ Domain domain8 = testAllUseCasesForADomain (operator1 , domain8YamlFile );
273
+ domain8 .destroy ();
285
274
logger .info ("SUCCESS - testBCreateDomainWithDefaultValuesInSampleInputs" );
286
275
}
287
276
0 commit comments