mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-04-15 06:57:28 +00:00
Signed-off-by: Tullio Sebastiani <tsebasti@redhat.com> typo Signed-off-by: Tullio Sebastiani <tsebasti@redhat.com> app_outage fix Signed-off-by: Tullio Sebastiani <tsebasti@redhat.com> typo Signed-off-by: Tullio Sebastiani <tsebasti@redhat.com> typo Signed-off-by: Tullio Sebastiani <tsebasti@redhat.com>
21 lines
766 B
Bash
Executable File
21 lines
766 B
Bash
Executable File
set -xeEo pipefail
|
|
|
|
source CI/tests/common.sh
|
|
|
|
trap error ERR
|
|
trap finish EXIT
|
|
|
|
function funtional_test_namespace_deletion {
|
|
export scenario_type="namespace_scenarios"
|
|
export scenario_file="- scenarios/openshift/ingress_namespace.yaml"
|
|
export post_config=""
|
|
yq '.scenarios[0].namespace="^namespace-scenario$"' -i scenarios/openshift/ingress_namespace.yaml
|
|
yq '.scenarios[0].wait_time=30' -i scenarios/openshift/ingress_namespace.yaml
|
|
yq '.scenarios[0].action="delete"' -i scenarios/openshift/ingress_namespace.yaml
|
|
envsubst < CI/config/common_test_config.yaml > CI/config/namespace_config.yaml
|
|
python3 -m coverage run -a run_kraken.py -c CI/config/namespace_config.yaml
|
|
echo "Namespace scenario test: Success"
|
|
}
|
|
|
|
funtional_test_namespace_deletion
|