|
1 |
| -// Copyright (c) 2022, 2023, Oracle and/or its affiliates. |
| 1 | +// Copyright (c) 2022, 2025, Oracle and/or its affiliates. |
2 | 2 | // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
|
3 | 3 |
|
4 | 4 | package oracle.weblogic.kubernetes;
|
@@ -99,7 +99,7 @@ class ItAuxV8DomainImplicitUpgrade {
|
99 | 99 | * JUnit engine parameter resolution mechanism
|
100 | 100 | */
|
101 | 101 | @BeforeAll
|
102 |
| - public static void initAll(@Namespaces(2) List<String> namespaces) { |
| 102 | + static void initAll(@Namespaces(2) List<String> namespaces) { |
103 | 103 | logger = getLogger();
|
104 | 104 |
|
105 | 105 | // get a new unique opNamespace
|
@@ -226,7 +226,7 @@ void testMultipleAuxImagesV8Domain() {
|
226 | 226 | logger.info("Run " + KUBERNETES_CLI + " to create the domain");
|
227 | 227 | CommandParams params = new CommandParams().defaults();
|
228 | 228 | params.command(KUBERNETES_CLI + " apply -f "
|
229 |
| - + Paths.get(WORK_DIR + "/domain.yaml").toString()); |
| 229 | + + Paths.get(WORK_DIR + "/domain.yaml")); |
230 | 230 | boolean result = Command.withParams(params).execute();
|
231 | 231 | assertTrue(result, "Failed to create domain custom resource");
|
232 | 232 |
|
@@ -300,9 +300,6 @@ void testErrorPathV8DomainMissingWDTBinary() {
|
300 | 300 | deleteDomainResource(domainNamespace, domainUid);
|
301 | 301 | }
|
302 | 302 |
|
303 |
| - final String adminServerPodName = domainUid + "-admin-server"; |
304 |
| - final String managedServerPrefix = domainUid + "-managed-server"; |
305 |
| - |
306 | 303 | String missingWdtTag = "missing-wdtbinary-image";
|
307 | 304 | String missingWdtImage = MII_AUXILIARY_IMAGE_NAME + ":" + missingWdtTag;
|
308 | 305 |
|
@@ -336,7 +333,7 @@ void testErrorPathV8DomainMissingWDTBinary() {
|
336 | 333 | logger.info("Run " + KUBERNETES_CLI + " to create the domain");
|
337 | 334 | CommandParams params = new CommandParams().defaults();
|
338 | 335 | params.command(KUBERNETES_CLI + " apply -f "
|
339 |
| - + Paths.get(WORK_DIR + "/domain.yaml").toString()); |
| 336 | + + Paths.get(WORK_DIR + "/domain.yaml")); |
340 | 337 | boolean result = Command.withParams(params).execute();
|
341 | 338 | assertTrue(result, "Failed to create domain custom resource");
|
342 | 339 |
|
@@ -367,9 +364,6 @@ void testErrorPathV8DomainMissingDomainConfig() {
|
367 | 364 | deleteDomainResource(domainNamespace, domainUid);
|
368 | 365 | }
|
369 | 366 |
|
370 |
| - final String adminServerPodName = domainUid + "-admin-server"; |
371 |
| - final String managedServerPrefix = domainUid + "-managed-server"; |
372 |
| - |
373 | 367 | String missingModelTag = "missing-model-image";
|
374 | 368 | String missingModelImage = MII_AUXILIARY_IMAGE_NAME + ":" + missingModelTag;
|
375 | 369 |
|
@@ -402,7 +396,7 @@ void testErrorPathV8DomainMissingDomainConfig() {
|
402 | 396 | logger.info("Run " + KUBERNETES_CLI + " to create the domain");
|
403 | 397 | CommandParams params = new CommandParams().defaults();
|
404 | 398 | params.command(KUBERNETES_CLI + " apply -f "
|
405 |
| - + Paths.get(WORK_DIR + "/domain.yaml").toString()); |
| 399 | + + Paths.get(WORK_DIR + "/domain.yaml")); |
406 | 400 | boolean result = Command.withParams(params).execute();
|
407 | 401 | assertTrue(result, "Failed to create domain custom resource");
|
408 | 402 |
|
@@ -430,9 +424,6 @@ void testErrorPathV8DomainFilePermission() {
|
430 | 424 | deleteDomainResource(domainNamespace, domainUid);
|
431 | 425 | }
|
432 | 426 |
|
433 |
| - final String adminServerPodName = domainUid + "-admin-server"; |
434 |
| - final String managedServerPrefix = domainUid + "-managed-server"; |
435 |
| - |
436 | 427 | String permModelTag = "perm-model-image";
|
437 | 428 | String permModelImage = MII_AUXILIARY_IMAGE_NAME + ":" + permModelTag;
|
438 | 429 |
|
@@ -472,7 +463,7 @@ void testErrorPathV8DomainFilePermission() {
|
472 | 463 | logger.info("Run " + KUBERNETES_CLI + " to create the domain");
|
473 | 464 | CommandParams params = new CommandParams().defaults();
|
474 | 465 | params.command(KUBERNETES_CLI + " apply -f "
|
475 |
| - + Paths.get(WORK_DIR + "/domain.yaml").toString()); |
| 466 | + + Paths.get(WORK_DIR + "/domain.yaml")); |
476 | 467 | boolean result = Command.withParams(params).execute();
|
477 | 468 | assertTrue(result, "Failed to create domain custom resource");
|
478 | 469 |
|
@@ -545,12 +536,11 @@ void testUpdateBaseImageV8AuxDomain() {
|
545 | 536 | logger.info("Run " + KUBERNETES_CLI + " to create the domain");
|
546 | 537 | CommandParams params = new CommandParams().defaults();
|
547 | 538 | params.command(KUBERNETES_CLI + " apply -f "
|
548 |
| - + Paths.get(WORK_DIR + "/domain.yaml").toString()); |
| 539 | + + Paths.get(WORK_DIR + "/domain.yaml")); |
549 | 540 | boolean result = Command.withParams(params).execute();
|
550 | 541 | assertTrue(result, "Failed to create domain custom resource");
|
551 | 542 |
|
552 |
| - String operatorPodName = |
553 |
| - assertDoesNotThrow(() -> getOperatorPodName(OPERATOR_RELEASE_NAME, opNamespace)); |
| 543 | + assertDoesNotThrow(() -> getOperatorPodName(OPERATOR_RELEASE_NAME, opNamespace)); |
554 | 544 | logger.info("Wait for admin server pod {0} to be ready in namespace {1}",
|
555 | 545 | adminServerPodName, domainNamespace);
|
556 | 546 | checkPodReadyAndServiceExists(adminServerPodName, domainUid, domainNamespace);
|
|
0 commit comments