blob: a528b3dc0669a72b324c84478c8ed062b00e0ebf [file] [log] [blame]
Alexa0053b92022-10-14 16:38:28 -05001#!/bin/bash
2tenv=mos
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# Set concurrency
8echo "Current conformance concurrency is ${K8S_CONFORMANCE_CONCURRENCY}"
9export K8S_CONFORMANCE_CONCURRENCY=10
10echo "Using concurrency of ${K8S_CONFORMANCE_CONCURRENCY} for MOS"
Alexd1ac2262023-03-31 13:53:33 -050011export K8S_CONFORMANCE_RUN_NETPOLICY_TESTS=False
12echo "Run network policy tests is ${K8S_CONFORMANCE_CONCURRENCY} for MCC"
Alex876e93a2022-12-21 12:02:13 -060013
14# Run tests
Alexa0053b92022-10-14 16:38:28 -050015pytest /opt/si-tests/si_tests/tests/deployment/test_k8s_conformance.py
16unset TARGET_CLUSTER
17unset TARGET_NAMESPACE
18deactivate
19# report
20if [ -d $MY_PROJFOLDER/reports/${tenv}-conformance ]; then
21 echo "# Generating repors"
22 yes | rm $MY_PROJFOLDER/reports/${tenv}-conformance/*
23else
24 mkdir $MY_PROJFOLDER/reports/${tenv}-conformance
25fi
26cp ./artifacts/*.xml $MY_PROJFOLDER/reports/${tenv}-conformance/
27cd $MY_PROJFOLDER/reports/
28tparser -f r_xml --omit-status SKIP --force-single -d -r $MY_CLIENTSHORTNAME-${tenv}-conformance-latest.html $MY_PROJFOLDER/reports/${tenv}-conformance/
29cd $MY_PROJFOLDER