|
60 | 60 | import org.junit.jupiter.api.BeforeAll; |
61 | 61 | import org.junit.jupiter.api.DisplayName; |
62 | 62 | import org.junit.jupiter.api.MethodOrderer; |
| 63 | +import org.junit.jupiter.api.Order; |
63 | 64 | import org.junit.jupiter.api.Tag; |
64 | 65 | import org.junit.jupiter.api.Test; |
65 | 66 | import org.junit.jupiter.api.TestMethodOrder; |
@@ -294,6 +295,7 @@ static void initAll(@Namespaces(3) List<String> namespaces) { |
294 | 295 | * under domain status. |
295 | 296 | * Verifies that the new pod comes up and sample application deployment works. |
296 | 297 | */ |
| 298 | + @Order(1) |
297 | 299 | @Test |
298 | 300 | @DisplayName("Test introSpectVersion starting a introspector and updating domain status") |
299 | 301 | @Tag("gate") |
@@ -426,6 +428,7 @@ void testDomainIntrospectVersionNotRolling() { |
426 | 428 | * Verifies the new admin port of the admin server in services. |
427 | 429 | * Verifies accessing sample application in admin server works. |
428 | 430 | */ |
| 431 | + @Order(2) |
429 | 432 | @Test |
430 | 433 | @DisplayName("Test introspectVersion rolling server pods when admin server port is changed") |
431 | 434 | void testDomainIntrospectVersionRolling() throws ApiException { |
@@ -550,6 +553,7 @@ void testDomainIntrospectVersionRolling() throws ApiException { |
550 | 553 | * e. Make a REST api call to access management console using new password. |
551 | 554 | * f. Make a REST api call to access management console using old password. |
552 | 555 | */ |
| 556 | + @Order(3) |
553 | 557 | @Test |
554 | 558 | @DisplayName("Test change WebLogic admin credentials for domain running in persistent volume") |
555 | 559 | void testCredentialChange() { |
@@ -685,6 +689,7 @@ void testCredentialChange() { |
685 | 689 | * d. Verifies the servers in the new WebLogic cluster comes up without affecting any of the running servers on |
686 | 690 | * pre-existing WebLogic cluster. |
687 | 691 | */ |
| 692 | + @Order(4) |
688 | 693 | @Test |
689 | 694 | @DisplayName("Test new cluster creation on demand using WLST and introspection") |
690 | 695 | void testCreateNewCluster() { |
@@ -767,6 +772,7 @@ void testCreateNewCluster() { |
767 | 772 | * Verify all the pods are restarted and back to ready state |
768 | 773 | * Verify the admin server is accessible and cluster members are healthy |
769 | 774 | */ |
| 775 | + @Order(5) |
770 | 776 | @Test |
771 | 777 | @DisplayName("Verify server pods are restarted by updating image name") |
772 | 778 | void testUpdateImageName() { |
@@ -872,6 +878,7 @@ void testUpdateImageName() { |
872 | 878 | * Test that when a domain resource has spec.introspectVersion configured, |
873 | 879 | * after a cluster is scaled up, new server pods have the label "weblogic.introspectVersion" set as well. |
874 | 880 | */ |
| 881 | + @Order(6) |
875 | 882 | @Test |
876 | 883 | @DisplayName("Scale up cluster-1 in domain1Namespace and verify label weblogic.introspectVersion set") |
877 | 884 | void testDedicatedModeSameNamespaceScale() { |
@@ -933,6 +940,7 @@ void testDedicatedModeSameNamespaceScale() { |
933 | 940 | * It also verifies the intospector job is started/stoped and none of the |
934 | 941 | * server pod is rolled since there is no change to resource configuration. |
935 | 942 | */ |
| 943 | + @Order(7) |
936 | 944 | @Test |
937 | 945 | @DisplayName("Test to use sample scripts to explicitly initiate introspection") |
938 | 946 | void testIntrospectDomainScript() { |
@@ -1073,6 +1081,7 @@ void testIntrospectDomainScript() { |
1073 | 1081 | * type: Completed, status: false |
1074 | 1082 | * Verify the introspector reruns to make it right when model file is fixed. |
1075 | 1083 | */ |
| 1084 | + @Order(8) |
1076 | 1085 | @Test |
1077 | 1086 | @DisplayName("Test domain status condition with bad model file") |
1078 | 1087 | void testIntrospectorMakeright() { |
|
0 commit comments