Skip to content

Commit d232e37

Browse files
committed
Merge remote-tracking branch 'origin/release/3.3' into release/3.4
2 parents 6fa7078 + 933a613 commit d232e37

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

kindtest.sh

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ usage() {
5959
echo " (default: https://github.com/oracle/weblogic-image-tool/releases/latest) "
6060
echo " -l WLE download URL"
6161
echo " (default: https://github.com/oracle/weblogic-logging-exporter/releases/latest) "
62-
echo " -m Run integration-tests or wls-image-cert or fmw-image-cert"
63-
echo " (default: integration-tests, supported values: wls-image-cert, fmw-image-cert) "
62+
echo " -m Run integration-tests or the other maven_profile_name in the pom.xml"
63+
echo " (default: integration-tests) "
6464
echo " -h Help"
6565
exit $1
6666
}
@@ -201,11 +201,16 @@ esac
201201

202202
echo 'Create registry container unless it already exists'
203203
running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)"
204-
if [ "${running}" != 'true' ]; then
205-
docker run \
206-
-d --restart=always -p "127.0.0.1:${reg_port}:5000" --name "${reg_name}" \
207-
registry:2
204+
if [ "${running}" = 'false' ]; then
205+
docker rm --force "${reg_name}"
208206
fi
207+
if [ "${running}" = 'true' ]; then
208+
docker stop "${reg_name}"
209+
docker rm --force "${reg_name}"
210+
fi
211+
docker run \
212+
-d --restart=always -p "127.0.0.1:${reg_port}:5000" --name "${reg_name}" \
213+
registry:2
209214

210215
reg_host="${reg_name}"
211216
if [ "${kind_network}" = "bridge" ]; then
@@ -308,12 +313,12 @@ if [ "${test_filter}" != "**/It*" ]; then
308313
echo "Running mvn -Dit.test=${test_filter} -Dwdt.download.url=${wdt_download_url} -Dwit.download.url=${wit_download_url} -Dwle.download.url=${wle_download_url} -DPARALLEL_CLASSES=${parallel_run} -DNUMBER_OF_THREADS=${threads} -pl integration-tests -P ${maven_profile_name} verify"
309314
time mvn -Dit.test="${test_filter}" -Dwdt.download.url="${wdt_download_url}" -Dwit.download.url="${wit_download_url}" -Dwle.download.url="${wle_download_url}" -DPARALLEL_CLASSES="${parallel_run}" -DNUMBER_OF_THREADS="${threads}" -pl integration-tests -P ${maven_profile_name} verify 2>&1 | tee "${RESULT_ROOT}/kindtest.log" || captureLogs
310315
else
311-
if [ "${maven_profile_name}" = "fmw-srg" ] || [ "${maven_profile_name}" = "toolkits-srg" ] || [ "${maven_profile_name}" = "wls-image-cert" ] || [ "${maven_profile_name}" = "fmw-pipeline" ] || [ "${maven_profile_name}" = "fmw-image-cert" ] || [ "${maven_profile_name}" = "kind-sequential" ] || [ "${maven_profile_name}" = "wls-srg" ]; then
316+
if [ "${maven_profile_name}" = "toolkits-srg" ] || [ "${maven_profile_name}" = "fmw-image-cert" ] || [ "${maven_profile_name}" = "kind-sequential" ]; then
312317
echo "Running mvn -Dwdt.download.url=${wdt_download_url} -Dwit.download.url=${wit_download_url} -Dwle.download.url=${wle_download_url} -DPARALLEL_CLASSES=${parallel_run} -DNUMBER_OF_THREADS=${threads} -pl integration-tests -P ${maven_profile_name} verify"
313318
time mvn -Dwdt.download.url="${wdt_download_url}" -Dwit.download.url="${wit_download_url}" -Dwle.download.url="${wle_download_url}" -DPARALLEL_CLASSES="${parallel_run}" -DNUMBER_OF_THREADS="${threads}" -pl integration-tests -P ${maven_profile_name} verify 2>&1 | tee "${RESULT_ROOT}/kindtest.log" || captureLogs
314319
else
315-
echo "Running mvn -Dit.test=!ItOperatorWlsUpgrade, !ItDedicatedMode, !ItT3Channel, !ItOpUpgradeFmwDomainInPV, !ItOCILoadBalancer, !ItIstioCrossClusters*, !ItMultiDomainModels -Dwdt.download.url=${wdt_download_url} -Dwit.download.url=${wit_download_url} -Dwle.download.url=${wle_download_url} -DPARALLEL_CLASSES=${parallel_run} -DNUMBER_OF_THREADS=${threads} -pl integration-tests -P ${maven_profile_name} verify"
316-
time mvn -Dit.test="!ItOperatorWlsUpgrade, !ItFmwDomainInPVUsingWDT, !ItFmwDynamicDomainInPV, !ItDedicatedMode, !ItT3Channel, !ItOpUpgradeFmwDomainInPV, !ItOCILoadBalancer, !ItIstioCrossClusters*, !ItMultiDomainModels" -Dwdt.download.url="${wdt_download_url}" -Dwit.download.url="${wit_download_url}" -Dwle.download.url="${wle_download_url}" -DPARALLEL_CLASSES="${parallel_run}" -DNUMBER_OF_THREADS="${threads}" -pl integration-tests -P ${maven_profile_name} verify 2>&1 | tee "${RESULT_ROOT}/kindtest.log" || captureLogs
320+
echo "Running mvn -Dit.test=!ItOperatorWlsUpgrade, !ItDedicatedMode, !ItT3Channel, !ItOperatorFmwUpgrade, !ItOCILoadBalancer, !ItMiiSampleFmwMain, !ItIstioCrossClusters*, !ItMultiDomainModels -Dwdt.download.url=${wdt_download_url} -Dwit.download.url=${wit_download_url} -Dwle.download.url=${wle_download_url} -DPARALLEL_CLASSES=${parallel_run} -DNUMBER_OF_THREADS=${threads} -pl integration-tests -P ${maven_profile_name} verify"
321+
time mvn -Dit.test="!ItOperatorWlsUpgrade, !ItFmwDomainInPVUsingWDT, !ItFmwDynamicDomainInPV, !ItDedicatedMode, !ItT3Channel, !ItOperatorFmwUpgrade, !ItOCILoadBalancer, !ItMiiSampleFmwMain, !ItIstioCrossClusters*, !ItResilience, !ItMultiDomainModels" -Dwdt.download.url="${wdt_download_url}" -Dwit.download.url="${wit_download_url}" -Dwle.download.url="${wle_download_url}" -DPARALLEL_CLASSES="${parallel_run}" -DNUMBER_OF_THREADS="${threads}" -pl integration-tests -P ${maven_profile_name} verify 2>&1 | tee "${RESULT_ROOT}/kindtest.log" || captureLogs
317322
fi
318323
fi
319324

@@ -323,4 +328,5 @@ docker exec kind-control-plane journalctl --utc --dmesg --system > "${RESULT_ROO
323328

324329
echo "Destroy cluster and registry"
325330
kind delete cluster --name "${kind_name}"
326-
docker stop "${reg_name}"
331+
docker stop "${reg_name}"
332+
docker rm --force "${reg_name}"

0 commit comments

Comments
 (0)