mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-04-15 06:57:28 +00:00
* Github Action + functional tests (no *hog tests) * changed the trigger keyword to /test * removed deprecated kill_pod scenario + added namespace to app_outage (new kill_pod) * #365: renamed ingress_namespace scenario to network_diagnostrcs * requested team filter added --------- Co-authored-by: Tullio Sebastiani <tullio.sebastiani@x3solutions.it>
21 lines
911 B
Bash
Executable File
21 lines
911 B
Bash
Executable File
set -xeEo pipefail
|
|
|
|
source CI/tests/common.sh
|
|
|
|
trap error ERR
|
|
trap finish EXIT
|
|
|
|
|
|
function functional_test_litmus_cpu {
|
|
[ -z $NODE_NAME ] && echo "[ERR] NODE_NAME variable not set, failing." && exit 1
|
|
yq -i ' .spec.experiments = [{"name": "node-cpu-hog", "spec":{"components":{"env":[{"name":"TOTAL_CHAOS_DURATION","value":"10"},{"name":"NODE_CPU_CORE","value":"1"},{"name":"NODES_AFFECTED_PERC","value":"30"},{"name":"TARGET_NODES","value":"'$NODE_NAME'"}]}}}]' CI/scenarios/node_cpu_hog_engine_node.yaml
|
|
|
|
cp CI/config/common_test_config.yaml CI/config/litmus_config.yaml
|
|
yq '.kraken.chaos_scenarios = [{"litmus_scenarios":[["scenarios/openshift/templates/litmus-rbac.yaml","CI/scenarios/node_cpu_hog_engine_node.yaml"]]}]' -i CI/config/litmus_config.yaml
|
|
|
|
python3 -m coverage run -a run_kraken.py -c CI/config/litmus_config.yaml
|
|
echo "Litmus scenario test: Success"
|
|
}
|
|
|
|
functional_test_litmus_cpu
|