Skip to content

Commit 940de86

Browse files
committed
Merge branch 'oketestmain' into 'main'
Port forward changes from release/4.2 for oke runs See merge request weblogic-cloud/weblogic-kubernetes-operator!4819
2 parents 47a40b3 + 48d9c4a commit 940de86

21 files changed

+250
-49
lines changed

Jenkinsfile.oke

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
//
44

55
CRON_SETTINGS = '''H 3 * * 0-4 % MAVEN_PROFILE_NAME=oke-gate;CLUSTER_NAME=seqone;PARALLEL_RUN=false
6+
H 1 * * 0-4 % MAVEN_PROFILE_NAME=oke-sequential;CLUSTER_NAME=seqtwo;PARALLEL_RUN=false
67
H 2 * * 0-4 % MAVEN_PROFILE_NAME=oke-parallel;CLUSTER_NAME=parone;PARALLEL_RUN=true'''
8+
79
pipeline {
810
agent { label 'large' }
911
options {
@@ -113,9 +115,10 @@ pipeline {
113115
)
114116

115117
choice(name: 'MAVEN_PROFILE_NAME',
116-
description: 'Profile to use in mvn command to run the tests. Possible values are oke-gate,oke-parallel. Refer to weblogic-kubernetes-operator/integration-tests/pom.xml on the branch.',
118+
description: 'Profile to use in mvn command to run the tests. Possible values are oke-gate,oke-parallel, oke-sequential. Refer to weblogic-kubernetes-operator/integration-tests/pom.xml on the branch.',
117119
choices: [
118120
'oke-gate',
121+
'oke-sequential',
119122
'oke-parallel'
120123
]
121124
)
@@ -528,6 +531,8 @@ EOF
528531
export OCI_CLI_CONFIG_FILE=${jenkins_home_directory}/.oci/config
529532
export OCI_CLI_PROFILE=${oci_profile}
530533
compartment_ocid=${compartment_id}
534+
export COMPARTMENT_OCID=${compartment_id}
535+
echo "COMPARTMENT_OCID : ${COMPARTMENT_OCID}"
531536
mkdir -m777 -p "${WORKSPACE}/.mvn"
532537
touch ${WORKSPACE}/.mvn/maven.config
533538
export KUBECONFIG=${kubeconfig_file}
@@ -599,6 +604,7 @@ EOF
599604
echo "-Dwko.it.monitoring.exporter.branch=\"${MONITORING_EXPORTER_BRANCH}\"" >> ${WORKSPACE}/.mvn/maven.config
600605
echo "-Dwko.it.monitoring.exporter.webapp.version=\"${MONITORING_EXPORTER_WEBAPP_VERSION}\"" >> ${WORKSPACE}/.mvn/maven.config
601606
echo "-Dwko.it.prometheus.chart.version=\"${PROMETHEUS_CHART_VERSION}\"" >> ${WORKSPACE}/.mvn/maven.config
607+
echo "-Dwko.it.oci.compartment.ocid=\"${COMPARTMENT_OCID}\"" >> ${WORKSPACE}/.mvn/maven.config
602608
echo "-Dwko.it.grafana.chart.version=\"${GRAFANA_CHART_VERSION}\"" >> ${WORKSPACE}/.mvn/maven.config
603609
echo "-Dwko.it.collect.logs.on.success=\"${COLLECT_LOGS_ON_SUCCESS}\"" >> ${WORKSPACE}/.mvn/maven.config
604610
echo "-Dwko.it.remoteconsole.version=\"${REMOTECONSOLE_VERSION}\"" >> ${WORKSPACE}/.mvn/maven.config
@@ -608,6 +614,10 @@ EOF
608614
echo "${WORKSPACE}/.mvn/maven.config contents:"
609615
cat "${WORKSPACE}/.mvn/maven.config"
610616
cp "${WORKSPACE}/.mvn/maven.config" "${result_root}"
617+
echo "${HTTP_PROXY} HTTP_PROXY settings"
618+
echo "${HTTPS_PROXY} HTTPS_PROXY settings"
619+
echo "${http_proxy} http_proxy settings"
620+
echo "${https_proxy} https_proxy settings"
611621
'''
612622
}
613623
withMaven(globalMavenSettingsConfig: 'wkt-maven-settings-xml', publisherStrategy: 'EXPLICIT') {
@@ -620,12 +630,15 @@ EOF
620630
export OKE_CLUSTER_PRIVATEIP="true"
621631
export OKD="false"
622632
export KUBECONFIG=${kubeconfig_file}
633+
export COMPARTMENT_OCID=${compartment_id}
623634
export BASE_IMAGES_REPO_USERNAME="${OCIR_USER}"
624635
export BASE_IMAGES_REPO_PASSWORD="${OCIR_PASS}"
625636
export BASE_IMAGES_REPO_EMAIL="[email protected]"
626637
export TEST_IMAGES_REPO_USERNAME="${OCIR_USER}"
627638
export TEST_IMAGES_REPO_PASSWORD="${OCIR_PASS}"
628639
export TEST_IMAGES_REPO_EMAIL="[email protected]"
640+
export no_proxy="${NO_PROXY},localhost,127.0.0.1,.us.oracle.com,.oraclecorp.com,login.oracle.com"
641+
export NO_PROXY="${no_proxy}"
629642

630643
if ! mvn -pl integration-tests -P ${MAVEN_PROFILE_NAME} verify 2>&1 | tee "${result_root}/oketest.log"; then
631644
echo "integration-tests failed"
@@ -670,7 +683,7 @@ EOF
670683
${WORKSPACE}/terraform/oke.delete.sh ${OCI_PROP_FILE} ${WORKSPACE}/terraform ${AVAILABILITY_DOMAIN}
671684
fi
672685

673-
if [ "${MAVEN_PROFILE_NAME}" = "oke-gate" ] && [ "${BRANCH}" = "main" ]; then
686+
if [ "${MAVEN_PROFILE_NAME}" = "oke-gate" ] && [ "${BRANCH}" = "release/4.2" ]; then
674687
compname="wkt"
675688
wkt_compartment_ocid=$(oci iam compartment list --compartment-id-in-subtree true --all | jq --arg compname "$compname" '.data[] | select(."name"==$compname)' | jq -r ."id")
676689
sec_list_id=$(oci network security-list list --compartment-id="$wkt_compartment_ocid" --display-name=Security-List-wktiso1 | jq -r '.data[] | ."id"')

integration-tests/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
<wko.it.grafana.chart.version>${env.GRAFANA_CHART_VERSION}</wko.it.grafana.chart.version>
4949
<wko.it.istio.version>${env.ISTIO_VERSION}</wko.it.istio.version>
5050
<wko.it.oke.cluster>${env.OKE_CLUSTER}</wko.it.oke.cluster>
51+
<wko.it.oci.compartment.ocid>${env.COMPARTMENT_OCID}</wko.it.oci.compartment.ocid>
5152
<wko.it.arm.cluster>${env.ARM}</wko.it.arm.cluster>
5253
<wko.it.oke.cluster.privateip>${env.OKE_CLUSTER_PRIVATEIP}</wko.it.oke.cluster.privateip>
5354
<wko.it.nfs.server>${env.NFS_SERVER}</wko.it.nfs.server>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
@IntegrationTest
5858
@Tag("kind-parallel")
5959
@Tag("olcne-mrg")
60-
@Tag("oke-gate")
60+
@Tag("oke-parallel")
6161

6262
class ItAddNewDynamicClusterUsingWlst {
6363

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
*/
108108
@DisplayName("Verify cross domain transaction is successful")
109109
@IntegrationTest
110-
@Tag("oke-gate")
110+
@Tag("oke-sequential")
111111
@Tag("kind-parallel")
112112
@Tag("okd-wls-srg")
113113
class ItCrossDomainTransaction {
@@ -666,7 +666,7 @@ private static void createNginxIngressPathRoutingRules() {
666666

667667
ingressRules.add(ingressRule);
668668

669-
createIngressAndRetryIfFail(60, false, ingressName, domain1Namespace, null, ingressClassName, ingressRules, null);
669+
createIngressAndRetryIfFail(20, false, ingressName, domain1Namespace, null, ingressClassName, ingressRules, null);
670670

671671
// check the ingress was found in the domain namespace
672672
assertThat(assertDoesNotThrow(() -> listIngresses(domain1Namespace)))
@@ -681,6 +681,6 @@ private static void createNginxIngressPathRoutingRules() {
681681
+ "/weblogic/ready --write-out %{http_code} -o /dev/null";
682682

683683
logger.info("Executing curl command {0}", curlCmd);
684-
assertTrue(callWebAppAndWaitTillReady(curlCmd, 60));
684+
assertTrue(callWebAppAndWaitTillReady(curlCmd, 20));
685685
}
686686
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
*/
7979
@DisplayName("Test to creat a FMW dynamic domain in persistent volume using WLST")
8080
@IntegrationTest
81-
@Tag("oke-gate")
81+
@Tag("oke-sequential")
8282
@Tag("kind-sequential")
8383
@Tag("okd-fmw-cert")
8484
class ItFmwDynamicDomainInPV {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
@Tag("olcne-srg")
179179
@Tag("kind-parallel")
180180
@Tag("okd-wls-mrg")
181-
@Tag("oke-gate")
181+
@Tag("oke-sequential")
182182
@Tag("oke-arm")
183183
class ItIntrospectVersion {
184184

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
@DisplayName("Test the monitoring WebLogic Domain via istio provided Prometheus")
7979
@IntegrationTest
80-
@Tag("oke-gate")
80+
@Tag("oke-parallel")
8181
@Tag("kind-parallel")
8282
@Tag("olcne-mrg")
8383
class ItIstioMonitoringExporter {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
@Tag("oke-arm")
152152
@IntegrationTest
153153
@Tag("olcne-srg")
154-
@Tag("oke-parallel")
154+
@Tag("oke-sequential")
155155
class ItKubernetesDomainEvents {
156156

157157
private static String opNamespace = null;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
@Tag("toolkits-srg")
122122
@Tag("okd-wls-srg")
123123
@Tag("oke-arm")
124-
@Tag("oke-gate")
124+
@Tag("oke-parallel")
125125
class ItMiiAuxiliaryImage {
126126

127127
private static String domainNamespace = null;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
@Tag("kind-parallel")
105105
@Tag("okd-wls-srg")
106106
@Tag("oke-arm")
107-
@Tag("oke-gate")
107+
@Tag("oke-sequential")
108108
class ItMiiClusterResource {
109109

110110
private static String opNamespace = null;

0 commit comments

Comments
 (0)