@@ -59,8 +59,8 @@ usage() {
59
59
echo " (default: https://github.com/oracle/weblogic-image-tool/releases/latest) "
60
60
echo " -l WLE download URL"
61
61
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) "
64
64
echo " -h Help"
65
65
exit $1
66
66
}
@@ -201,11 +201,16 @@ esac
201
201
202
202
echo ' Create registry container unless it already exists'
203
203
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} "
208
206
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
209
214
210
215
reg_host=" ${reg_name} "
211
216
if [ " ${kind_network} " = " bridge" ]; then
@@ -308,12 +313,12 @@ if [ "${test_filter}" != "**/It*" ]; then
308
313
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"
309
314
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
310
315
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
312
317
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"
313
318
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
314
319
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
317
322
fi
318
323
fi
319
324
@@ -323,4 +328,5 @@ docker exec kind-control-plane journalctl --utc --dmesg --system > "${RESULT_ROO
323
328
324
329
echo " Destroy cluster and registry"
325
330
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