Skip to content

Commit c314d89

Browse files
committed
Merge branch 'xc-126148' into 'main'
add test order in ItIntrospectVersion See merge request weblogic-cloud/weblogic-kubernetes-operator!4951
2 parents 881b817 + c836d98 commit c314d89

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItIntrospectVersion.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
import org.junit.jupiter.api.BeforeAll;
6161
import org.junit.jupiter.api.DisplayName;
6262
import org.junit.jupiter.api.MethodOrderer;
63+
import org.junit.jupiter.api.Order;
6364
import org.junit.jupiter.api.Tag;
6465
import org.junit.jupiter.api.Test;
6566
import org.junit.jupiter.api.TestMethodOrder;
@@ -294,6 +295,7 @@ static void initAll(@Namespaces(3) List<String> namespaces) {
294295
* under domain status.
295296
* Verifies that the new pod comes up and sample application deployment works.
296297
*/
298+
@Order(1)
297299
@Test
298300
@DisplayName("Test introSpectVersion starting a introspector and updating domain status")
299301
@Tag("gate")
@@ -426,6 +428,7 @@ void testDomainIntrospectVersionNotRolling() {
426428
* Verifies the new admin port of the admin server in services.
427429
* Verifies accessing sample application in admin server works.
428430
*/
431+
@Order(2)
429432
@Test
430433
@DisplayName("Test introspectVersion rolling server pods when admin server port is changed")
431434
void testDomainIntrospectVersionRolling() throws ApiException {
@@ -550,6 +553,7 @@ void testDomainIntrospectVersionRolling() throws ApiException {
550553
* e. Make a REST api call to access management console using new password.
551554
* f. Make a REST api call to access management console using old password.
552555
*/
556+
@Order(3)
553557
@Test
554558
@DisplayName("Test change WebLogic admin credentials for domain running in persistent volume")
555559
void testCredentialChange() {
@@ -685,6 +689,7 @@ void testCredentialChange() {
685689
* d. Verifies the servers in the new WebLogic cluster comes up without affecting any of the running servers on
686690
* pre-existing WebLogic cluster.
687691
*/
692+
@Order(4)
688693
@Test
689694
@DisplayName("Test new cluster creation on demand using WLST and introspection")
690695
void testCreateNewCluster() {
@@ -767,6 +772,7 @@ void testCreateNewCluster() {
767772
* Verify all the pods are restarted and back to ready state
768773
* Verify the admin server is accessible and cluster members are healthy
769774
*/
775+
@Order(5)
770776
@Test
771777
@DisplayName("Verify server pods are restarted by updating image name")
772778
void testUpdateImageName() {
@@ -872,6 +878,7 @@ void testUpdateImageName() {
872878
* Test that when a domain resource has spec.introspectVersion configured,
873879
* after a cluster is scaled up, new server pods have the label "weblogic.introspectVersion" set as well.
874880
*/
881+
@Order(6)
875882
@Test
876883
@DisplayName("Scale up cluster-1 in domain1Namespace and verify label weblogic.introspectVersion set")
877884
void testDedicatedModeSameNamespaceScale() {
@@ -933,6 +940,7 @@ void testDedicatedModeSameNamespaceScale() {
933940
* It also verifies the intospector job is started/stoped and none of the
934941
* server pod is rolled since there is no change to resource configuration.
935942
*/
943+
@Order(7)
936944
@Test
937945
@DisplayName("Test to use sample scripts to explicitly initiate introspection")
938946
void testIntrospectDomainScript() {
@@ -1073,6 +1081,7 @@ void testIntrospectDomainScript() {
10731081
* type: Completed, status: false
10741082
* Verify the introspector reruns to make it right when model file is fixed.
10751083
*/
1084+
@Order(8)
10761085
@Test
10771086
@DisplayName("Test domain status condition with bad model file")
10781087
void testIntrospectorMakeright() {

0 commit comments

Comments
 (0)