Skip to content
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

Merged

Conversation

gtjoseph
Copy link
Member

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 ...

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 ...`
@gtjoseph
Copy link
Member Author

cherry-pick-to: 18
cherry-pick-to: 20
cherry-pick-to: 21
cherry-pick-to: 22
cherry-pick-to: certified/18.9
cherry-pick-to: certified/20.7

Copy link

github-actions bot commented Mar 21, 2025

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.

  • The following cherry-pick-to values are invalid: ["18"]. Valid values are ["22","21","20"].

Documentation:

Copy link

Workflow PRCheck completed successfully

@github-actions github-actions bot added cherry-pick-testing-in-progress Cherry-Pick tests in progress cherry-pick-checks-passed Cherry-Pick checks passed and removed cherry-pick-test cherry-pick-testing-in-progress Cherry-Pick tests in progress labels Mar 28, 2025
Copy link

Workflow PRCPCheck completed successfully

Copy link

Successfully merged to branch master and cherry-picked to ["18","20","21","22","certified/18.9","certified/20.7"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants