* provide_scenario.sh: continue even if the domain is not there
when deleting
It seems that API behavior has changed
Change-Id: I6373eba6903491b39623329e29128de059f0b569
* FLOW_VARS or FLOW error, so possible
changes in kamailio.cfg are detected
* produce the _test.diff and .sip files
using the proper json
Change-Id: I39a003b3542283b4080f1c8e5004e826ae98f16e
> 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
> root@sp1:/usr/local/devel/kamailio-config-tests# ./bin/check.py -h
> Traceback (most recent call last):
> File "/usr/local/devel/kamailio-config-tests/./bin/check.py", line 364, 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 2072, in _parse_known_args
> start_index = consume_optional(start_index)
> File "/usr/lib/python3.9/argparse.py", line 2012, in consume_optional
> take_action(action, args, option_string)
> File "/usr/lib/python3.9/argparse.py", line 1940, in take_action
> action(self, namespace, argument_values, option_string)
> File "/usr/lib/python3.9/argparse.py", line 1104, in __call__
> parser.print_help()
> File "/usr/lib/python3.9/argparse.py", line 2560, in print_help
> self._print_message(self.format_help(), file)
> File "/usr/lib/python3.9/argparse.py", line 2544, in format_help
> 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: I6303ab109074589e3483256eae33f43dc7c75c19
* 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
Now KCT can read from the registration section of the scenario.yml file the value 'ua'.
If this is set (and registration is set to yes), KCT will add in the registration xml files
meant for SIPP the header 'User Agent' with the value specified.
To demonstrate how it works the scenario invite_callforward has also been extended and
now it sends registrations with User-Agent: KCT SIPP, additionally it enables feature ua_reject_missing
to check if this header is present and also tests if in the sems loop the ua_reject_missing
is ignored (whitelisting sems).
Change-Id: I709a0e0c3532b8e5246834dc3566b26e95b5f3be
The rtpengine project used to be called rtpengine-ng, and before that
mediaproxy-ng, which was an implementation using the same protocol as
the rtpproxy project. It's about time we rename the config.yml section
so that this is less confusing.
Change-Id: Ibb26b5537f0e0b739b148a2a30fbd3f998732b49
Due to a deprecation of the 'sems' config.yml block of settings,
we have to update the 'config_debug.pl' and let it handle configurations
using the remaining 'b2b' section.
Change-Id: Id7d114b85906ce4aae22e11a57a3a281d35c63ea
* check.sh: remove none as the way to disable check results
added -t to indicate that
* run_tests.sh: add -T to enable cfgt
don't call anything related to cfgt if not enabled
* bench.sh: enable cfgt if check type is all or cfgt
Change-Id: I4c13297b55503f99241cf5553c5deceba0f5bbf6
Implemented usage() function inside reorder_tests_tt2.sh to describe how to use it.
Additionally, 2 new options have been implemented:
- -m git|mv : if set the renaming is performed with "mv" command rather than "git mv", useful if you are not on a git directory
- -t : just outputs the renaming to stdout without really renaming (dry run)
Change-Id: I0be8a2d6468b66d365ec138a09e5ac5873bf694f
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