Files
openairinterface5g/ci-scripts/tests/config/test_core_infra.yaml
T
Robert Schmidt dc694475d0 Add helper class for core network handling in CI
This adds a helper class to manage various core networks in the CI
testing framework. Specifically, it reads from a YAML file information
such as a node, (un-)deployment script (file), log collection
instructions, etc., in order to allow a common interface to be used to
deploy and undeploy various core network implementations.

This commit adds the class (in cls_corenetwork.py) as well as tests for
this class.
2025-03-31 16:38:12 +02:00

47 lines
1.1 KiB
YAML

test:
Host: localhost
NetworkScript: echo "inet 127.0.0.1 mtu 1500"
Deploy: echo deploy
Undeploy: echo undeploy
LogCollect: echo logs > %%log_dir%%/logs
test_list:
Host: localhost
NetworkScript: echo "inet 127.0.0.1 mtu 1500"
Deploy:
- echo deploy
- echo multistep deploy!!
Undeploy:
- "echo undeploy"
- "echo terminated"
LogCollect:
- echo logs > %%log_dir%%/logs
RunIperf3Server: false
test_fail:
Host: localhost
NetworkScript: echo "inet 127.0.0.1 mtu 1500"
Deploy:
- echo deploy
- "false"
- echo multistep deploy!!
Undeploy:
- "echo undeploy"
- "echo terminated"
LogCollect:
- echo logs > %%log_dir%%/logs
test_script:
Host: localhost
NetworkScript: echo "inet 127.0.0.1 mtu 1500"
Deploy: ! tests/scripts/deploy-core.sh
Undeploy: "echo undeploy"
LogCollect: echo logs > %%log_dir%%/logs
test_script_fail:
Host: localhost
NetworkScript: echo "inet 127.0.0.1 mtu 1500"
Deploy: ! tests/scripts/deploy-core.sh WILLFAIL
Undeploy: "echo undeploy"
LogCollect: echo logs > %%log_dir%%/logs