|
1 |
| -// Copyright (c) 2020, 2024, Oracle and/or its affiliates. |
| 1 | +// Copyright (c) 2020, 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;
|
|
59 | 59 | import org.junit.jupiter.api.BeforeAll;
|
60 | 60 | import org.junit.jupiter.api.DisplayName;
|
61 | 61 | import org.junit.jupiter.api.MethodOrderer;
|
| 62 | +import org.junit.jupiter.api.Order; |
62 | 63 | import org.junit.jupiter.api.Tag;
|
63 | 64 | import org.junit.jupiter.api.Test;
|
64 | 65 | import org.junit.jupiter.api.TestMethodOrder;
|
@@ -292,6 +293,7 @@ public static void initAll(@Namespaces(3) List<String> namespaces) {
|
292 | 293 | * under domain status.
|
293 | 294 | * Verifies that the new pod comes up and sample application deployment works.
|
294 | 295 | */
|
| 296 | + @Order(1) |
295 | 297 | @Test
|
296 | 298 | @DisplayName("Test introSpectVersion starting a introspector and updating domain status")
|
297 | 299 | @Tag("gate")
|
@@ -419,6 +421,7 @@ void testDomainIntrospectVersionNotRolling() {
|
419 | 421 | * Verifies the new admin port of the admin server in services.
|
420 | 422 | * Verifies accessing sample application in admin server works.
|
421 | 423 | */
|
| 424 | + @Order(2) |
422 | 425 | @Test
|
423 | 426 | @DisplayName("Test introspectVersion rolling server pods when admin server port is changed")
|
424 | 427 | void testDomainIntrospectVersionRolling() throws ApiException {
|
@@ -543,6 +546,7 @@ void testDomainIntrospectVersionRolling() throws ApiException {
|
543 | 546 | * e. Make a REST api call to access management console using new password.
|
544 | 547 | * f. Make a REST api call to access management console using old password.
|
545 | 548 | */
|
| 549 | + @Order(3) |
546 | 550 | @Test
|
547 | 551 | @DisplayName("Test change WebLogic admin credentials for domain running in persistent volume")
|
548 | 552 | void testCredentialChange() {
|
@@ -678,6 +682,7 @@ void testCredentialChange() {
|
678 | 682 | * d. Verifies the servers in the new WebLogic cluster comes up without affecting any of the running servers on
|
679 | 683 | * pre-existing WebLogic cluster.
|
680 | 684 | */
|
| 685 | + @Order(4) |
681 | 686 | @Test
|
682 | 687 | @DisplayName("Test new cluster creation on demand using WLST and introspection")
|
683 | 688 | void testCreateNewCluster() {
|
@@ -760,6 +765,7 @@ void testCreateNewCluster() {
|
760 | 765 | * Verify all the pods are restarted and back to ready state
|
761 | 766 | * Verify the admin server is accessible and cluster members are healthy
|
762 | 767 | */
|
| 768 | + @Order(5) |
763 | 769 | @Test
|
764 | 770 | @DisplayName("Verify server pods are restarted by updating image name")
|
765 | 771 | void testUpdateImageName() {
|
@@ -865,6 +871,7 @@ void testUpdateImageName() {
|
865 | 871 | * Test that when a domain resource has spec.introspectVersion configured,
|
866 | 872 | * after a cluster is scaled up, new server pods have the label "weblogic.introspectVersion" set as well.
|
867 | 873 | */
|
| 874 | + @Order(6) |
868 | 875 | @Test
|
869 | 876 | @DisplayName("Scale up cluster-1 in domain1Namespace and verify label weblogic.introspectVersion set")
|
870 | 877 | void testDedicatedModeSameNamespaceScale() {
|
@@ -926,6 +933,7 @@ void testDedicatedModeSameNamespaceScale() {
|
926 | 933 | * It also verifies the intospector job is started/stoped and none of the
|
927 | 934 | * server pod is rolled since there is no change to resource configuration.
|
928 | 935 | */
|
| 936 | + @Order(7) |
929 | 937 | @Test
|
930 | 938 | @DisplayName("Test to use sample scripts to explicitly initiate introspection")
|
931 | 939 | void testIntrospectDomainScript() {
|
@@ -1066,6 +1074,7 @@ void testIntrospectDomainScript() {
|
1066 | 1074 | * type: Completed, status: false
|
1067 | 1075 | * Verify the introspector reruns to make it right when model file is fixed.
|
1068 | 1076 | */
|
| 1077 | + @Order(8) |
1069 | 1078 | @Test
|
1070 | 1079 | @DisplayName("Test domain status condition with bad model file")
|
1071 | 1080 | void testIntrospectorMakeright() {
|
|
0 commit comments