-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow an alternate top-level test-config.yaml file to be used. #84
Allow an alternate top-level test-config.yaml file to be used. #84
Conversation
A new `--testsuite-config=<yaml_file>` option has been added to runtests.py that allows different test configurations to be used without having to swap out the checked-in default `test-config.yaml`. It can be used in the following scenarios: * Realtime tests: The realtime tests require database connection information be specified in the top-level test-config.yaml. Instead of replacing it with a modified version, you can now create a separate file, say `test-config-realtime.yaml` and specify it with `./runtests.py --testsuite-config=./test-config-realtime.yaml ...` * Using a running asterisk instance: Sometimes it's handy to run a testsuite test against a running instance of asterisk. This requires specifying host information in the top-level test-config.yaml. Assuming the instance is properly configured for the test, you can now create a separate file, say `test-config-running.yaml` and specify it with `./runtests.py --testsuite-config=./test-config-running.yaml ...`
cherry-pick-to: 18 |
Attention! This pull request may contain issues that could prevent it from being accepted. Please review the checklist below and take the recommended action. If you believe any of these are not applicable, just add a comment and let us know.
Documentation: |
Workflow PRCheck completed successfully |
Workflow PRCPCheck completed successfully |
Successfully merged to branch master and cherry-picked to ["18","20","21","22","certified/18.9","certified/20.7"] |
A new
--testsuite-config=<yaml_file>
option has been added to runtests.pythat allows different test configurations to be used without having to
swap out the checked-in default
test-config.yaml
. It can be usedin the following scenarios:
Realtime tests: The realtime tests require database connection information
be specified in the top-level test-config.yaml. Instead of replacing it
with a modified version, you can now create a separate file, say
test-config-realtime.yaml
and specify it with./runtests.py --testsuite-config=./test-config-realtime.yaml ...
Using a running asterisk instance: Sometimes it's handy to run a testsuite
test against a running instance of asterisk. This requires specifying host
information in the top-level test-config.yaml. Assuming the instance is
properly configured for the test, you can now create a separate
file, say
test-config-running.yaml
and specify it with./runtests.py --testsuite-config=./test-config-running.yaml ...