inbound/outbound no longer represent the "full" direction and belong
only to A leg, so they are renamed to a_inbound/a_outbound accordingly.
Change-Id: I09af00baee3dbf32b514130adfe7cf106b27bc86
> bin/check.py:113
> /code/bin/check.py:113: PytestCollectionWarning: cannot collect test class 'Test' because it has a __init__ constructor (from: tests/test_check.py)
> class Test:
>
>-- Docs: https://docs.pytest.org/en/stable/warnings.html
Change-Id: I6917ba773203abb02d3989fa411a8c8ee4363c93
* bin/create_subscribers.pl: add customers field
so we can list them
- spaces in Content-Length
- remove XML content
- sip-if-match value is dynamic
- detect ids in more internal headers
- customers id can now be detected
Change-Id: Ib75c48a8954d848add95dd50d77cc6ffc94df210
We split the tests but we didn't added the new files in Makefile
* Add missing fixture file, scenarios_ids.yml are in .gitignore
so we need to use "git add -f" to force the inclusion
Change-Id: Ib4ee5e887f9bbefe9c100b2164aa161c35700fd6
* cseq: use \d+ since sems can use random and CE/PRO are different
* support alias_numbers
* numbers on display names
Change-Id: I7f94718cd9363a20124baae51347763dbd3fb234
* Makefile: add missing test_generate_test rule
* remove yaml.dump and build directly the simple YAML
output ourselfs. It was generating strange indentation
even with indent=None with using [% %] for some cases
Change-Id: Iacf927cf21b5d127c625168a049d6a1bd9606fc3
> 15:09:50 /code/./tests/test_yaml_format.py:66: YAMLLoadWarning: calling
> yaml.load() without Loader=... is deprecated, as the default Loader is
> unsafe. Please read https://msg.pyyaml.org/load for full details.
Change-Id: I56c6b11bee0ed2c42b61d4a20ac97327e0fb725d
* helper to set or detect IP to use in the tests
* uses IP of the first interface with sip_ext type detected
* bin/network_config.pl: set dummy1 too
* config.yml:
subscribers will use dummy1: 10.20.29.2/30
peers will use dummy0: 172.30.1.2/30
* pyproject.toml: black settings
Change-Id: Ibe59cde090b22e7631b87ffdecc706f3de391078
* bin/check.py: return different values depending on what section
check fails
reformat using black tool
Change-Id: Ie393766ba5df0951fb9f51c1c780cc5be8673fc7
* Original option '-c' in run_tests.sh has been modified
in '-C'
* Add new option '-c' in run_tests.sh to execute a query on MySQL
after each test to extract the generated CDRs.
* Add new option '-c' in get_results.sh to compare the extracted
CDRs with the referece provided in the scenario (cdr_test.yml.tt2).
* Modified option 'mediator.interval' from 10 to 1 during the test
execution in order to speedup the cdrs generation.
* Updated README file with the latest changes.
* Added basic cdr_test for all the scenarios.
Change-Id: Ifffd686003fa5e3a1ac4ba76c502011d7fdb21bb
Recent versions of pep8 check for this, while we are modifying
system path to load functions from check.py. Since we need at
least the os and sys modules for modifying system path and being
able to run `from check import ...` let's ignore this problem for
now.
Change-Id: Ia9f3ea2c67c3a720896f1c92031544ac7e688025
* migrate to Docker
* tests/test_check.py: use junitxml
* bin/generate_tests.sh: support DEST_DIR
will use DEST_DIR as base dir destination
* rename scenarios_disabled -> disabled
* fix \t at XXXX_test.yml.tt2 templates
Change-Id: I845588ee4692f157f370a000abab75a05e701839
* run_test.sh: add hacks for pbx
* bin/pid_watcher.py: add --pbx parameter to control
what services we need to check for.
* invite: simple call to an extenston from another PBX user
same customer. WARNING!! do not use customer.test, that
one is SIP only
* fix tap-test:
- source/tests/test_check.py:34:1: E302 expected 2 blank lines, found 1
- source/tests/test_check.py:96:54: E202 whitespace before '}'
* wrap-and-sort -sat
Change-Id: Iabb5139e70fd372088933fe9302b996148d38705
- add Makefile with test rule
- add use of virtualenv to run tests
- add requirements.txt
- use junit report
- skip it on debian/rules
Change-Id: I393431317de7dd1b445ae568a14291a370bc22b3