tree: 6837674f6ad17a940d5fce4eddaa576d88f3c05a [path history] [tgz]
  1. README.md
  2. test_env.sh
  3. testcase_common.sh
near-rt-ric-simulator/common/README.md

Description for common test scripts

test_env.sh
Common env variables for test in the auto-test dir. Used by the auto test cases/suites but could be used for other test script as well.

testcase_common.sh
Common functions for auto test cases in the auto-test dir. A subset of the functions could be used in other test scripts as well.

###Descriptions of functions in testcase_common.sh

clean_containers
Stop and remove all containers including policy agent apps and simulators

start_simulators
Start all simulators in the simulator group

consul_config_app
Configure consul with json file with app config for a policy agent instance using the policy agent instance id and the json file.

start_policy_agent
Start the policy agent application.

check_policy_agent_logs Check the Policy agent application log for WARN and ERR messages and print the count. store_logs Store all Policy agent app and simulators log to the test case log dir. All logs get a prefix to separate logs stored at different steps in the test script. If logs need to be stored in several locations, use different prefix to easily identify the location when the logs where taken.