@@ -342,7 +342,8 @@ void testDomainK8sEventsNonExistingCluster() {
342
342
void testK8SEventsFailedLifeCycle () {
343
343
V1Patch patch ;
344
344
String patchStr ;
345
- DomainResource domain = createDomain (domainNamespace5 , domainUid , pvName5 , pvcName5 , "Never" ,
345
+ String domainUid5 = domainUid + "5" ;
346
+ DomainResource domain = createDomain (domainNamespace5 , domainUid5 , pvName5 , pvcName5 , "Never" ,
346
347
spec -> spec .failureRetryLimitMinutes (2L ));
347
348
assertNotNull (domain , " Can't create domain resource" );
348
349
@@ -352,12 +353,12 @@ void testK8SEventsFailedLifeCycle() {
352
353
353
354
logger .info ("Checking if the admin server {0} is shutdown in namespace {1}" ,
354
355
adminServerPodName , domainNamespace5 );
355
- checkPodDoesNotExist (adminServerPodName , domainUid , domainNamespace5 );
356
+ checkPodDoesNotExist (adminServerPodName , domainUid5 , domainNamespace5 );
356
357
357
358
for (int i = 1 ; i <= replicaCount ; i ++) {
358
359
logger .info ("Checking if the managed server {0} is shutdown in namespace {1}" ,
359
360
managedServerPodNamePrefix + i , domainNamespace5 );
360
- checkPodDoesNotExist (managedServerPodNamePrefix + i , domainUid , domainNamespace5 );
361
+ checkPodDoesNotExist (managedServerPodNamePrefix + i , domainUid5 , domainNamespace5 );
361
362
}
362
363
363
364
logger .info ("Replace the domainHome to a nonexisting location to verify the following events"
@@ -368,15 +369,15 @@ void testK8SEventsFailedLifeCycle() {
368
369
logger .info ("PatchStr for domainHome: {0}" , patchStr );
369
370
370
371
patch = new V1Patch (patchStr );
371
- assertTrue (patchDomainCustomResource (domainUid , domainNamespace5 , patch , V1Patch .PATCH_FORMAT_JSON_PATCH ),
372
+ assertTrue (patchDomainCustomResource (domainUid5 , domainNamespace5 , patch , V1Patch .PATCH_FORMAT_JSON_PATCH ),
372
373
"patchDomainCustomResource failed" );
373
374
374
375
logger .info ("verify domain changed event is logged" );
375
- checkEvent (opNamespace , domainNamespace5 , domainUid , DOMAIN_CHANGED , "Normal" , timestamp );
376
+ checkEvent (opNamespace , domainNamespace5 , domainUid5 , DOMAIN_CHANGED , "Normal" , timestamp );
376
377
logger .info ("verify domain failed event" );
377
- checkFailedEvent (opNamespace , domainNamespace5 , domainUid , ABORTED_ERROR , "Warning" , timestamp );
378
+ checkFailedEvent (opNamespace , domainNamespace5 , domainUid5 , ABORTED_ERROR , "Warning" , timestamp );
378
379
379
- shutdownDomain (domainUid , domainNamespace5 );
380
+ shutdownDomain (domainUid5 , domainNamespace5 );
380
381
}
381
382
382
383
/**
0 commit comments