@@ -287,18 +287,26 @@ docker ps
287
287
echo ' Clean up result root...'
288
288
rm -rf " ${RESULT_ROOT:? } /*"
289
289
290
+ # If IT_TEST is set, integration-test profile is used to run the tests and
291
+ # MAVEN_PROFILE_NAME parameter is ignored
292
+
293
+ # If the IT_TEST(test_filter) is set to "**/It*" (i.e. all tests are chosen)
294
+ # and maven profile is chosen to any of toolkits-srg or fmw-image-cert or
295
+ # all tests are run with chosen profile, else all the tests are run
296
+ # with integration-tests profile with certain exclusion.
297
+
290
298
echo " Run tests..."
291
299
292
300
if [ " ${test_filter} " != " **/It*" ]; then
293
- 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"
294
- 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
301
+ 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 integration-tests verify"
302
+ 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 integration-tests verify 2>&1 | tee " ${RESULT_ROOT} /kindtest.log" || captureLogs
295
303
else
296
304
if [ " ${maven_profile_name} " = " toolkits-srg" ] || [ " ${maven_profile_name} " = " fmw-image-cert" ] || [ " ${maven_profile_name} " = " kind-sequential" ]; then
297
305
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"
298
306
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
299
307
else
300
- echo " Running mvn -Dit.test=!ItOperatorWlsUpgrade, !ItDedicatedMode, !ItT3Channel, !ItOperatorFmwUpgrade, !ItOCILoadBalancer, !ItMiiSampleFmwMain, !ItIstioCrossClusters*, !ItMultiDomainModels, !ItOpenshiftIstioMiiDomain -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"
301
- time mvn -Dit.test=" !ItOperatorWlsUpgrade, !ItFmwDomainInPVUsingWDT, !ItFmwDynamicDomainInPV, !ItDedicatedMode, !ItT3Channel, !ItOperatorFmwUpgrade, !ItOCILoadBalancer, !ItMiiSampleFmwMain, !ItIstioCrossClusters*, !ItResilience, !ItMultiDomainModels, !ItOpenshiftIstioMiiDomain" -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
308
+ echo " Running mvn -Dit.test=!ItOperatorWlsUpgrade, !ItDedicatedMode, !ItT3Channel, !ItOperatorFmwUpgrade, !ItOCILoadBalancer, !ItMiiSampleFmwMain, !ItIstioCrossClusters*, !ItMultiDomainModels, !ItOpenshiftIstioMiiDomain -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 integration-tests verify"
309
+ time mvn -Dit.test=" !ItOperatorWlsUpgrade, !ItFmwDomainInPVUsingWDT, !ItFmwDynamicDomainInPV, !ItDedicatedMode, !ItT3Channel, !ItOperatorFmwUpgrade, !ItOCILoadBalancer, !ItMiiSampleFmwMain, !ItIstioCrossClusters*, !ItResilience, !ItMultiDomainModels, !ItOpenshiftIstioMiiDomain" -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 integration-tests verify 2>&1 | tee " ${RESULT_ROOT} /kindtest.log" || captureLogs
302
310
fi
303
311
fi
304
312
0 commit comments