Skip to content

Commit

Permalink
Merge branch 'xc-112466' into 'main'
Browse files Browse the repository at this point in the history
OCNE: split ocne profile to ocne-srg and ocne-mrg

See merge request weblogic-cloud/weblogic-kubernetes-operator!4455
  • Loading branch information
rjeberhard committed Sep 29, 2023
2 parents b1a7ebf + f5189b0 commit 3d10b8c
Show file tree
Hide file tree
Showing 80 changed files with 181 additions and 149 deletions.
53 changes: 30 additions & 23 deletions Jenkinsfile.ocne

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -659,10 +659,17 @@
</profile>

<profile>
<id>olcne</id>
<id>olcne-srg</id>
<properties>
<skipITs>false</skipITs>
<groups>olcne</groups>
<groups>olcne-srg</groups>
</properties>
</profile>
<profile>
<id>olcne-mrg</id>
<properties>
<skipITs>false</skipITs>
<groups>olcne-mrg</groups>
</properties>
</profile>
<profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
@IntegrationTest
@Tag("oke-parallel")
@Tag("kind-parallel")
@Tag("olcne")
@Tag("olcne-mrg")
class ItAddNewDynamicClusterUsingWlst {

// domain constants
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022, Oracle and/or its affiliates.
// Copyright (c) 2022, 2023, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

package oracle.weblogic.kubernetes;
Expand Down Expand Up @@ -41,7 +41,7 @@
*/
@DisplayName("Test scaling usability ")
@IntegrationTest
@Tag("olcne")
@Tag("olcne-mrg")
@Tag("oke-parallel")
@Tag("kind-parallel")
@Tag("okd-wls-mrg")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
*/
@DisplayName("Test to create a WebLogic domain with Coherence and verify the use of Coherence cache service")
@IntegrationTest
@Tag("olcne")
@Tag("kind-parallel")
@Tag("okd-wls-mrg")
@Tag("oke-gate")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020, 2022, Oracle and/or its affiliates.
// Copyright (c) 2020, 2023, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

package oracle.weblogic.kubernetes;
Expand Down Expand Up @@ -132,7 +132,7 @@
@Tag("okd-wls-mrg")
@Tag("oke-sequential")
@IntegrationTest
@Tag("olcne")
@Tag("olcne-mrg")
class ItConfigDistributionStrategy {

private static String opNamespace = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
@DisplayName("Test introspector will fail with error msg if the consensus leasing is configured in the cluster")
@IntegrationTest
@Tag("kind-parallel")
@Tag("olcne")
@Tag("olcne-mrg")
@Tag("oke-gate")
class ItConsensusLeasingValidation {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
*/
@DisplayName("Verify cross domain transaction is successful")
@IntegrationTest
@Tag("olcne")
@Tag("oke-parallel")
@Tag("kind-parallel")
@Tag("okd-wls-srg")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
@DisplayName("Verify dataHome override with different dataHome setting in the domain spec")
@IntegrationTest
@Tag("kind-parallel")
@Tag("olcne")
@Tag("olcne-mrg")
@Tag("oke-gate")
class ItDataHomeOverride {

Expand Down Expand Up @@ -109,7 +109,7 @@ void testDataHomeOverrideWithDataHomeInSpec() {
// create mii domain and override data home
createMiiDomainAndVerify(miiDomainNamespace, domainUid, miiImage,
adminServerPodName, managedServerPrefix, replicaCount, Arrays.asList(clusterName),
true, DATA_HOME_OVERRIDE);
true, DATA_HOME_OVERRIDE, true);

// check in admin server pod, there is no data file for JMS server created
String dataFileToCheck = DATA_HOME_OVERRIDE + "/" + domainUid + "/FILESTORE-0000000.DAT";
Expand Down Expand Up @@ -157,8 +157,8 @@ void testDataHomeOverrideNoDataHomeInSpec() {
String adminServerPodName = domainUid + "-" + ADMIN_SERVER_NAME_BASE;
String managedServerPrefix = domainUid + "-" + MANAGED_SERVER_NAME_BASE;
// create mii domain and don't override data home
createMiiDomainAndVerify(miiDomainNamespace, domainUid, miiImage,
adminServerPodName, managedServerPrefix, replicaCount, Arrays.asList(clusterName), false, null);
createMiiDomainAndVerify(miiDomainNamespace, domainUid, miiImage, adminServerPodName,
managedServerPrefix, replicaCount, Arrays.asList(clusterName), false, null, true);

// check in admin server pod, there is no data file for JMS server created in /u01/oracle/customFileStore
String dataFileToCheck = "/u01/oracle/customFileStore/FILESTORE-0000000.DAT";
Expand Down Expand Up @@ -206,7 +206,7 @@ void testDataHomeOverrideDataHomeEmpty() {
String managedServerPrefix = domainUid + "-" + MANAGED_SERVER_NAME_BASE;
// create mii domain and set datahome to empty string
createMiiDomainAndVerify(miiDomainNamespace, domainUid, miiImage,
adminServerPodName, managedServerPrefix, replicaCount, Arrays.asList(clusterName), true, "");
adminServerPodName, managedServerPrefix, replicaCount, Arrays.asList(clusterName), true, "", true);

// check in admin server pod, there is no data file for JMS server created in /u01/oracle/customFileStore
String dataFileToCheck = "/u01/oracle/customFileStore/FILESTORE-0000000.DAT";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
@DisplayName("Verify the domain status conditions for domain lifecycle")
@IntegrationTest
@Tag("olcne")
@Tag("olcne-mrg")
@Tag("kind-parallel")
@Tag("okd-wls-mrg")
@Tag("oke-gate")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
*/
@DisplayName("Verify the domain status failed conditions for domain lifecycle")
@IntegrationTest
@Tag("olcne")
@Tag("olcne-mrg")
@Tag("kind-parallel")
@Tag("okd-wls-mrg")
@Tag("oke-gate")
Expand Down Expand Up @@ -543,8 +543,6 @@ void testNonexistentPVC() {
.nodePort(getNextFreePort())))));
setPodAntiAffinity(domain);



ClusterResource cluster = createClusterResource(clusterResName, wlClusterName, domainNamespace, replicaCount);
logger.info("Creating cluster {0} in namespace {1}", clusterResName, domainNamespace);
createClusterAndVerify(cluster);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
*/
@DisplayName("Test to use Elasticsearch API to query WebLogic logs")
@IntegrationTest
@Tag("olcne")
@Tag("olcne-mrg")
@Tag("kind-parallel")
@Tag("okd-wls-mrg")
@Tag("oke-gate")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
*/
@DisplayName("Test to use Elasticsearch API to query WebLogic logs")
@IntegrationTest
@Tag("olcne")
@Tag("olcne-mrg")
@Tag("kind-parallel")
@Tag("okd-wls-mrg")
@Tag("oke-gate")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022, Oracle and/or its affiliates.
// Copyright (c) 2022, 2023, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

package oracle.weblogic.kubernetes;
Expand Down Expand Up @@ -46,7 +46,7 @@
*/
@DisplayName("Test WLS server pods were evicted due to Pod ephemeral storage usage exceeds the total limit")
@IntegrationTest
@Tag("olcne")
@Tag("olcne-mrg")
@Tag("kind-parallel")
@Tag("oke-gate")
class ItEvictedPodsCycling {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
@Tag("okd-wls-mrg")
@IntegrationTest
@DisabledOnSlimImage
@Tag("olcne")
@Tag("olcne-mrg")
class ItExternalLbTunneling {

private static String opNamespace = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
@Tag("okd-wls-mrg")
@IntegrationTest
@DisabledOnSlimImage
@Tag("olcne")
@Tag("olcne-mrg")
class ItExternalNodePortService {

private static String opNamespace = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020, 2022, Oracle and/or its affiliates.
// Copyright (c) 2020, 2023, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

package oracle.weblogic.kubernetes;
Expand Down Expand Up @@ -69,7 +69,7 @@
@Tag("kind-parallel")
@Tag("okd-fmw-cert")
@IntegrationTest
@Tag("olcne")
@Tag("olcne-mrg")
@Tag("oke-gate")
class ItFmwDomainInPVUsingWLST {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
@Tag("kind-parallel")
@Tag("oke-gate")
@Tag("okd-fmw-cert")
@Tag("olcne")
@Tag("olcne-mrg")
class ItFmwDomainOnPV {

private static String domainNamespace = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021, 2022, Oracle and/or its affiliates.
// Copyright (c) 2021, 2023, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

package oracle.weblogic.kubernetes;
Expand Down Expand Up @@ -60,7 +60,7 @@
*/
@DisplayName("Test to Create a FMW Dynamic Domain with Dynamic Cluster using model in image")
@IntegrationTest
@Tag("olcne")
@Tag("olcne-mrg")
@Tag("oke-parallel")
@Tag("kind-parallel")
@Tag("okd-fmw-cert")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
@DisplayName("Verify the introspectVersion runs the introspector")
@IntegrationTest
@Tag("olcne")
@Tag("olcne-srg")
@Tag("kind-parallel")
@Tag("okd-wls-mrg")
@Tag("oke-gate")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
@DisplayName("Test to create a WebLogic domain with Coherence and verify the use of Coherence cache service")
@IntegrationTest
@Tag("kind-parallel")
@Tag("olcne")
@Tag("oke-gate")
class ItIstioCoherenceTests {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020, 2022, Oracle and/or its affiliates.
// Copyright (c) 2020, 2023, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

package oracle.weblogic.kubernetes;
Expand Down Expand Up @@ -85,7 +85,6 @@
@IntegrationTest
@Tag("oke-parallel")
@Tag("kind-parallel")
@Tag("olcne")
class ItIstioCrossDomainTransaction {

private static final String WDT_MODEL_FILE_DOMAIN1 = "model-crossdomaintransaction-domain1.yaml";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020, 2022, Oracle and/or its affiliates.
// Copyright (c) 2020, 2023, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

package oracle.weblogic.kubernetes;
Expand Down Expand Up @@ -71,7 +71,6 @@
@IntegrationTest
@Tag("oke-parallel")
@Tag("kind-parallel")
@Tag("olcne")
class ItIstioDomainInImage {

private static String opNamespace = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
@IntegrationTest
@Tag("oke-parallel")
@Tag("kind-parallel")
@Tag("olcne")
@Tag("olcne-mrg")
class ItIstioDomainInPV {

private static String opNamespace = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021, 2022, Oracle and/or its affiliates.
// Copyright (c) 2021, 2023, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

package oracle.weblogic.kubernetes;
Expand Down Expand Up @@ -62,7 +62,7 @@
@DisplayName("Test WLS Session Migration via istio enabled using Istio gateway")
@IntegrationTest
@Tag("kind-parallel")
@Tag("olcne")
@Tag("olcne-mrg")
@Tag("oke-gate")
class ItIstioGatewaySessionMigration {

Expand Down Expand Up @@ -212,7 +212,12 @@ void testSessionMigrationIstioGateway() {
String primaryServerName = httpDataInfo.get(primaryServerAttr);
String sessionCreateTime = httpDataInfo.get(sessionCreateTimeAttr);
String countStr = httpDataInfo.get(countAttr);
int count = Optional.ofNullable(countStr).map(Integer::valueOf).orElse(0);
int count;
if (countStr.equalsIgnoreCase("null")) {
count = 0;
} else {
count = Optional.ofNullable(countStr).map(Integer::valueOf).orElse(0);
}
logger.info("After patching the domain, the primary server changes to {0} "
+ ", session create time {1} and session state {2}",
primaryServerName, sessionCreateTime, countStr);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
@IntegrationTest
@Tag("oke-parallel")
@Tag("kind-parallel")
@Tag("olcne")
class ItIstioManagedCoherence {

// constants for Coherence
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
@IntegrationTest
@Tag("oke-parallel")
@Tag("kind-parallel")
@Tag("olcne")
@Tag("olcne-srg")
class ItIstioMiiDomain {

private static String opNamespace = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
@IntegrationTest
@Tag("oke-parallel")
@Tag("kind-parallel")
@Tag("olcne")
@Tag("olcne-mrg")
class ItIstioMonitoringExporter {

private static String opNamespace = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022, Oracle and/or its affiliates.
// Copyright (c) 2022, 2023, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

package oracle.weblogic.kubernetes;
Expand Down Expand Up @@ -58,7 +58,7 @@
@IntegrationTest
@Tag("kind-parallel")
@Tag("oke-gate")
@Tag("olcne")
@Tag("olcne-mrg")
class ItIstioProductionSecureMode {

private static String opNamespace = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
@IntegrationTest
@Tag("kind-parallel")
@Tag("oke-gate")
@Tag("olcne")
@Tag("olcne-mrg")
class ItIstioSessionMigration {

private static String opNamespace = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
@IntegrationTest
@Tag("oke-parallel")
@Tag("kind-parallel")
@Tag("olcne")
class ItIstioTwoDomainsInImage {

private static String opNamespace = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
@Tag("okd-wls-srg")
@Tag("oke-gate")
@IntegrationTest
@Tag("olcne")
@Tag("olcne-srg")
class ItKubernetesDomainEvents {

private static String opNamespace = null;
Expand Down
Loading

0 comments on commit 3d10b8c

Please # to comment.