Skip to content

Commit ef6e1bc

Browse files
committed
Merge branch 'xc-126148-42' into 'release/4.2'
add test order in ItIntrospectVersion.java See merge request weblogic-cloud/weblogic-kubernetes-operator!4950
2 parents e0398ae + ffe20d5 commit ef6e1bc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020, 2024, Oracle and/or its affiliates.
1+
// Copyright (c) 2020, 2025, Oracle and/or its affiliates.
22
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
package oracle.weblogic.kubernetes;
@@ -59,6 +59,7 @@
5959
import org.junit.jupiter.api.BeforeAll;
6060
import org.junit.jupiter.api.DisplayName;
6161
import org.junit.jupiter.api.MethodOrderer;
62+
import org.junit.jupiter.api.Order;
6263
import org.junit.jupiter.api.Tag;
6364
import org.junit.jupiter.api.Test;
6465
import org.junit.jupiter.api.TestMethodOrder;
@@ -292,6 +293,7 @@ public static void initAll(@Namespaces(3) List<String> namespaces) {
292293
* under domain status.
293294
* Verifies that the new pod comes up and sample application deployment works.
294295
*/
296+
@Order(1)
295297
@Test
296298
@DisplayName("Test introSpectVersion starting a introspector and updating domain status")
297299
@Tag("gate")
@@ -419,6 +421,7 @@ void testDomainIntrospectVersionNotRolling() {
419421
* Verifies the new admin port of the admin server in services.
420422
* Verifies accessing sample application in admin server works.
421423
*/
424+
@Order(2)
422425
@Test
423426
@DisplayName("Test introspectVersion rolling server pods when admin server port is changed")
424427
void testDomainIntrospectVersionRolling() throws ApiException {
@@ -543,6 +546,7 @@ void testDomainIntrospectVersionRolling() throws ApiException {
543546
* e. Make a REST api call to access management console using new password.
544547
* f. Make a REST api call to access management console using old password.
545548
*/
549+
@Order(3)
546550
@Test
547551
@DisplayName("Test change WebLogic admin credentials for domain running in persistent volume")
548552
void testCredentialChange() {
@@ -678,6 +682,7 @@ void testCredentialChange() {
678682
* d. Verifies the servers in the new WebLogic cluster comes up without affecting any of the running servers on
679683
* pre-existing WebLogic cluster.
680684
*/
685+
@Order(4)
681686
@Test
682687
@DisplayName("Test new cluster creation on demand using WLST and introspection")
683688
void testCreateNewCluster() {
@@ -760,6 +765,7 @@ void testCreateNewCluster() {
760765
* Verify all the pods are restarted and back to ready state
761766
* Verify the admin server is accessible and cluster members are healthy
762767
*/
768+
@Order(5)
763769
@Test
764770
@DisplayName("Verify server pods are restarted by updating image name")
765771
void testUpdateImageName() {
@@ -865,6 +871,7 @@ void testUpdateImageName() {
865871
* Test that when a domain resource has spec.introspectVersion configured,
866872
* after a cluster is scaled up, new server pods have the label "weblogic.introspectVersion" set as well.
867873
*/
874+
@Order(6)
868875
@Test
869876
@DisplayName("Scale up cluster-1 in domain1Namespace and verify label weblogic.introspectVersion set")
870877
void testDedicatedModeSameNamespaceScale() {
@@ -926,6 +933,7 @@ void testDedicatedModeSameNamespaceScale() {
926933
* It also verifies the intospector job is started/stoped and none of the
927934
* server pod is rolled since there is no change to resource configuration.
928935
*/
936+
@Order(7)
929937
@Test
930938
@DisplayName("Test to use sample scripts to explicitly initiate introspection")
931939
void testIntrospectDomainScript() {
@@ -1066,6 +1074,7 @@ void testIntrospectDomainScript() {
10661074
* type: Completed, status: false
10671075
* Verify the introspector reruns to make it right when model file is fixed.
10681076
*/
1077+
@Order(8)
10691078
@Test
10701079
@DisplayName("Test domain status condition with bad model file")
10711080
void testIntrospectorMakeright() {

0 commit comments

Comments
 (0)