1 ## Description for common test scripts
4 Common env variables for test in the auto-test dir.
5 Used by the auto test cases/suites but could be used for other test script as well.
8 Common functions for auto test cases in the auto-test dir.
9 A subset of the functions could be used in other test scripts as well.
11 ###Descriptions of functions in testcase_common.sh
14 Stop and remove all containers including policy agent apps and simulators
17 Start all simulators in the simulator group
19 `consul_config_app ` \
20 Configure consul with json file with app config for a policy agent instance using the policy agent
21 instance id and the json file.
23 `start_policy_agent` \
24 Start the policy agent application.
26 `check_policy_agent_logs`
27 Check the Policy agent application log for WARN and ERR messages and print the count.
29 Store all Policy agent app and simulators log to the test case log dir. All logs get a prefix to
30 separate logs stored at different steps in the test script.
31 If logs need to be stored in several locations, use different prefix to easily identify the location
32 when the logs where taken.