mirror of https://github.com/sipwise/ngcpcfg.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
8 months ago | |
---|---|---|
.. | ||
fixtures | 8 months ago | |
Dockerfile | 2 years ago | |
README.adoc | ||
basic-ngcp-config.tar.gz | ||
conftest.py | ||
default-git-repository.tar.gz | ||
empty-git-repository.tar.gz | ||
pytest.ini | 3 years ago | |
test_fixture_ngcpcfg.py | ||
test_git.py | 3 years ago | |
test_ngcp_instances_validator.py | 3 years ago | |
test_ngcpcfg.py | 3 years ago | |
test_ngcpcfg_apply.py | ||
test_ngcpcfg_apply_instances.py | 3 years ago | |
test_ngcpcfg_build_instances.py | 3 years ago | |
test_ngcpcfg_build_network_interfaces.py | ||
test_ngcpcfg_build_syntax.py | ||
test_ngcpcfg_cat.py | ||
test_ngcpcfg_get.py | ||
test_ngcpcfg_instance_info.py | 3 years ago | |
test_ngcpcfg_lib_get_all_ips.py | ||
test_ngcpcfg_lib_get_all_ips_of_connection_for_instance.py | 3 years ago | |
test_ngcpcfg_lib_get_all_rtp_for_instance.py | 3 years ago | |
test_ngcpcfg_lib_status.py | ||
test_ngcpcfg_patch.py | ||
test_ngcpcfg_set_and_del.py | 2 years ago | |
test_ngcpcfg_status.py | ||
testrunner |
README.adoc
README ====== Purpose of this directory ------------------------- This directory provides system tests for ngcpcfg, using pytest (a mature full-featured Python testing tool). Tips for working with tests --------------------------- If you're working on a new feature, try to simulate a specific behavior, or need to run ngcpcfg for any other reason, you might need to run ngcpcfg with a certain environment. This can be achieved by injecting according environment variables to ngcpcfg. The following command line provides an example invocation: [source,bash] cd t # we're assuming in the following command line that you're inside this testing folder HELPER=../helper \ HOOKS=../hooks \ CONFIG_POOL=/etc/ \ NGCPCFG=./fixtures/ngcpcfg.cfg \ SCRIPTS=../scripts/ \ FUNCTIONS=../functions/ \ NGCP_BASE_TT2=/tmp/pytest-of-root/pytest-XX/test_YYY/ \ OUTPUT_DIRECTORY=/tmp/ \ TEMPLATE_POOL_BASE=/tmp/pytest-of-root/pytest-XX/test_YYY \ ../sbin/ngcpcfg [...] Test runs ---------- It's recommended to run the tests inside a docker container (see Dockerfile for usage instructions). Running all available tests from inside the ``t`` directory then is as simple as: [source,bash] py.test-3 -v To run only the tests matching 'test_patch_action' execute: [source,bash] py.test-3 -v -k test_patch_action