Offline procedure preparations, p2
Related-PROD: PROD-36856
Change-Id: I9228941dfbc84451abf803ab3a4b3e9e5579b70f
diff --git a/k8s/workspace/run-conformance-mos.sh b/k8s/workspace/run-conformance-mos.sh
new file mode 100644
index 0000000..bc352a3
--- /dev/null
+++ b/k8s/workspace/run-conformance-mos.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+tenv=mos
+. /opt/si-tests/.sivenv/bin/activate
+cd $MY_PROJFOLDER/tmp
+. $MY_PROJFOLDER/${tenv}rc
+. $MY_PROJFOLDER/target-${tenv}
+pytest /opt/si-tests/si_tests/tests/deployment/test_k8s_conformance.py
+unset TARGET_CLUSTER
+unset TARGET_NAMESPACE
+deactivate
+# report
+if [ -d $MY_PROJFOLDER/reports/${tenv}-conformance ]; then
+ echo "# Generating repors"
+ yes | rm $MY_PROJFOLDER/reports/${tenv}-conformance/*
+else
+ mkdir $MY_PROJFOLDER/reports/${tenv}-conformance
+fi
+cp ./artifacts/*.xml $MY_PROJFOLDER/reports/${tenv}-conformance/
+cd $MY_PROJFOLDER/reports/
+tparser -f r_xml --omit-status SKIP --force-single -d -r $MY_CLIENTSHORTNAME-${tenv}-conformance-latest.html $MY_PROJFOLDER/reports/${tenv}-conformance/
+cd $MY_PROJFOLDER