blob: 5a6db04d1b814e68bd90c07856c7e6028f56cbec [file] [log] [blame]
Alexa0053b92022-10-14 16:38:28 -05001#!/bin/bash
2tenv=mcc
3. /opt/si-tests/.sivenv/bin/activate
4cd $MY_PROJFOLDER/tmp
Alexc85212b2022-11-08 12:27:01 -06005. $MY_PROJFOLDER/envs/mccrc
6. $MY_PROJFOLDER/envs/target-${tenv}
Alex876e93a2022-12-21 12:02:13 -06007
8# Setting concurrency
9echo "Current conformance concurrency is ${K8S_CONFORMANCE_CONCURRENCY}"
10export K8S_CONFORMANCE_CONCURRENCY=5
11echo "Using concurrency of ${K8S_CONFORMANCE_CONCURRENCY} for MCC"
Alexd1ac2262023-03-31 13:53:33 -050012export K8S_CONFORMANCE_RUN_NETPOLICY_TESTS=False
13echo "Run network policy tests is ${K8S_CONFORMANCE_CONCURRENCY} for MCC"
Alex876e93a2022-12-21 12:02:13 -060014
15# Run tests
Alexa0053b92022-10-14 16:38:28 -050016pytest /opt/si-tests/si_tests/tests/deployment/test_k8s_conformance.py
17unset TARGET_CLUSTER
18unset TARGET_NAMESPACE
19deactivate
20# report
21if [ -d $MY_PROJFOLDER/reports/${tenv}-conformance ]; then
22 echo "# Generating repors"
23 yes | rm $MY_PROJFOLDER/reports/${tenv}-conformance/*
24else
25 mkdir $MY_PROJFOLDER/reports/${tenv}-conformance
26fi
27cp ./artifacts/*.xml $MY_PROJFOLDER/reports/${tenv}-conformance/
28cd $MY_PROJFOLDER/reports/
29tparser -f r_xml --omit-status SKIP --force-single -d -r $MY_CLIENTSHORTNAME-${tenv}-conformance-latest.html $MY_PROJFOLDER/reports/${tenv}-conformance/
30cd $MY_PROJFOLDER