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.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
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
|
||||
Reference in New Issue
Block a user