#!/usr/bin/bash export EXTERNAL_TEST="true" export PATTERN_NAME="MultiCloudGitops" export PATTERN_SHORTNAME="mcgitops" if [ -z "${KUBECONFIG}" ]; then echo "No kubeconfig file set for hub cluster" exit 1 fi if [ -z "${KUBECONFIG_EDGE}" ]; then echo "No kubeconfig file set for edge cluster" exit 1 fi if [ -z "${INFRA_PROVIDER}" ]; then echo "INFRA_PROVIDER is not defined" exit 1 fi if [ -z "${WORKSPACE}" ]; then export WORKSPACE=/tmp fi pytest -lv --disable-warnings test_subscription_status_hub.py --kubeconfig $KUBECONFIG --junit-xml $WORKSPACE/test_subscription_status_hub.xml pytest -lv --disable-warnings test_subscription_status_edge.py --kubeconfig $KUBECONFIG_EDGE --junit-xml $WORKSPACE/test_subscription_status_edge.xml pytest -lv --disable-warnings test_validate_hub_site_components.py --kubeconfig $KUBECONFIG --junit-xml $WORKSPACE/test_validate_hub_site_components.xml pytest -lv --disable-warnings test_validate_edge_site_components.py --kubeconfig $KUBECONFIG_EDGE --junit-xml $WORKSPACE/test_validate_edge_site_components.xml pytest -lv --disable-warnings test_modify_web_content.py --kubeconfig $KUBECONFIG --junit-xml $WORKSPACE/test_modify_web_content.xml python3 create_ci_badge.py