no longer support of parsing of the kamailio log to produce flow info
* remove ulog_parser.pl, no longer used
* graph_flow.pl: remove -j option
* check.py: remove --yaml/--json options
* check.sh: remove SKIP_PARSE and JSON_KAM options
Change-Id: I0df00ffff3e7d8c2129cbbce12652ddff9730821
Lowered the rtpengine cancel delay from 2 to 1 second
Lowered the sleep time of the script check.sh from 5 to 2 seconds
Removed sleep time before check CDRs
This should speed up the test of basic scenarios of 4/5 minutes
Change-Id: I4f5fb539f7ab704f1aca6ddd2abf64db54b27ef1
* 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
> root@09127d41b4c6:/code# ./bin/check_sip.py
> Traceback (most recent call last):
> File "/code/./bin/check_sip.py", line 259, in <module>
> args = parser.parse_args()
> File "/usr/lib/python3.9/argparse.py", line 1830, in parse_args
> args, argv = self.parse_known_args(args, namespace)
> File "/usr/lib/python3.9/argparse.py", line 1863, in parse_known_args
> namespace, args = self._parse_known_args(args, namespace)
> File "/usr/lib/python3.9/argparse.py", line 2100, in _parse_known_args
> self.error(_('the following arguments are required: %s') %
> File "/usr/lib/python3.9/argparse.py", line 2585, in error
> self.print_usage(_sys.stderr)
> File "/usr/lib/python3.9/argparse.py", line 2555, in print_usage
> self._print_message(self.format_usage(), file)
> File "/usr/lib/python3.9/argparse.py", line 2521, in format_usage
> return formatter.format_help()
> File "/usr/lib/python3.9/argparse.py", line 295, in format_help
> help = self._root_section.format_help()
> File "/usr/lib/python3.9/argparse.py", line 226, in format_help
> item_help = join([func(*args) for func, args in self.items])
> File "/usr/lib/python3.9/argparse.py", line 226, in <listcomp>
> item_help = join([func(*args) for func, args in self.items])
> File "/usr/lib/python3.9/argparse.py", line 333, in _format_usage
> action_usage = format(optionals + positionals, groups)
> File "/usr/lib/python3.9/argparse.py", line 408, in _format_actions_usage
> start = actions.index(group._group_actions[0])
> IndexError: list index out of range
Change-Id: I8cc8d73a785fb164ff7b9568076eab10bd53f77d
* sipp_scenario00.xml => sipp_scenario00.msg
sipp_scenario_responder00.xml => sipp_scenario_responder00.msg
so sipp_scenario00_test.yml.tt2 and sipp_scenario_reponder00_test.yml.tt2
makes more sense
Change-Id: Iab9db5122774dbc32101195e639ab6fef9b23236
We are adding a new approach/tool used to check out SIP messages
received, and unlike the existing way of doing that (using what has come/gone in front of the Proxy),
the usage of sipp logs will be introduced.
The idea is that we are looking for received SIP messages at both
the originator(s) and recipient(s) side, and then using what we've gotten,
run checks based on _test.yml.tt2 templates prepared in advance for each scenario, example:
* sip_messages00_test.yml.tt2
* sip_messages_responder00_test.yml.tt2
- add missing options to help command
- bin/check.sh: use T option to select what to do with checks
- get_results.sh: remove deprecated -P -T options
Change-Id: I2d0084fa59694ffd009736205a092a35f6864669
It will be called by jenkins to figure out what are the failed scenarios
so next run will run just those
Change-Id: I7e7dcbe0e52a13606e1a03a4d28e35a9c404e931
* 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
This will allow to skip the whole provisioning if necessary
* use set_config.sh
* bin/check.sh: don't remove domain if SKIP is set
Change-Id: I0b2d165aced0ce7e57cfddef4c6308e8d7d27da6
* bin/sipp.sh: add option to set SIP SERVER_IP
* bin/check.sh: add option to set SIP SERVER_IP
* bin/scenario.pl: add server_ip info to scenario_ids.yml file
* bin/get_config.pl: add server_ip info to output
* bin/run_tests.sh: get server_ip from config and use it
Change-Id: If7a2284827df344eaecfdb5671146a9a79e81ea8
* panel.log can not be presence use panel-fcgi.log as fallback
* define a list of files, easy to maintain
* use sems-b2b.log instead of sems-pbx.log
Change-Id: I6ee8c52224675f8aacd9ea99016868cfb02bc26b
* bin/provide_next_phone.pl was returning the last phone used
* added more info related to PHONE to the output
Change-Id: Ibb83879df5e0c945d2d9c0610633c17d5ce42dca
Previously there was no indication of what match was falling
* migrate to argparse
* format with black
* resolve some lint issues
* remove unused code
Change-Id: Iac06c29ef832250e322d64473837181d3d4effcb
* just obey what is defined at scenario.yml
* bin/create_registrations.pl: add transport to contact
Change-Id: Ia851594064f348b778f1be0979b345090a303d20
* bin/config_debug.pl: use values from config.yml
* bin/network_config.pl: use values from config.yml
* bin/generate_test.pl: provide config.yml at "config" key
* bin/provide_scenario.sh: pass "config" option to generate_test.pl
Change-Id: I4ba62267b372b638f85dde62ecced6bd7d15c142