blob: f6919a1fc9298daab8f21d2e3546546c808797d8 [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"
12
13# Run tests
Alexa0053b92022-10-14 16:38:28 -050014pytest /opt/si-tests/si_tests/tests/deployment/test_k8s_conformance.py
15unset TARGET_CLUSTER
16unset TARGET_NAMESPACE
17deactivate
18# report
19if [ -d $MY_PROJFOLDER/reports/${tenv}-conformance ]; then
20 echo "# Generating repors"
21 yes | rm $MY_PROJFOLDER/reports/${tenv}-conformance/*
22else
23 mkdir $MY_PROJFOLDER/reports/${tenv}-conformance
24fi
25cp ./artifacts/*.xml $MY_PROJFOLDER/reports/${tenv}-conformance/
26cd $MY_PROJFOLDER/reports/
27tparser -f r_xml --omit-status SKIP --force-single -d -r $MY_CLIENTSHORTNAME-${tenv}-conformance-latest.html $MY_PROJFOLDER/reports/${tenv}-conformance/
28cd $MY_PROJFOLDER