> Thu Aug 11 11:12:14 CEST 2022 - Setting config debug off
> ./set_config.sh: line 128: ./bin/config_debug.pl: No such file or directory
Change-Id: Ie53102256ef331318ef05b2bf3c78220b84208df
* 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
After https://gerrit.mgm.sipwise.com/c/templates/+/43662
we are getting:
> proxy[21449]: ERROR: <null> cfgt [cfgt_int.c:413]: cfgt_save_node(): failed to make directory: Permission denied
Change-Id: I88781316d416595cdcac06e363ffa93703f79684
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
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
* 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
* 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
* bin/provide_scenario.sh: point of entry of provisioning
* bin/get_domains.pl: script helper to get domains defined at
scenario.yml
Change-Id: Ib1440f074b6f588c8a9dfac5dcf29d6b7459fb42
* single point of entry to get valid scenarios depending on PROFILE
GROUP and obeying SCENARIOS environment variable
Change-Id: I3dabf2b14c0c68f802287e1355f208ccb14224f6
* check for dirs with a scenario.yml file
* remove some shellcheck warnings:
SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Change-Id: I88b48fcc9668c3be26755472d6001f630a341fca
* this will filter common headers
* fix Content-Length substitution
* run_tests.sh: PROFILE environment as default
Change-Id: Ib0f42f3be6a378e8bfd5e32d7982687fc9869e4e
system-tester checks that logs have '0640' permissions and 'adm' group.
So we must preserve attributes during logs backup/restore procedure.
Change-Id: I02ec4cc10daa50ee85256259088507caa82741b3
The command
rtpengine-ctl -ip "${rtpengine_ctl_ip}" list interfaces
is used to check the number of rtp ports still open on the system
Change-Id: Id0e48aaf1f354cecf153db8102a5b5635e073287
The option is triggered by run_tests.sh because it is already
taking care of the json file movement at the end of the scenarios
execution.
Change-Id: Ie609237b46c54734dc25f093351c89138a70d8f9
* This allows to run the same scenario without having to restart
kamailio-proxy every time
* set JSON_KAM as default
Change-Id: I0948095e318fa0220c16adfc52e124a9e6c35c67
If retransmission skip is enabled (-r option) an additional check
with the previous json file (previous SIP message) is done in case
of tap issues. This is useful when wrong packet ordering or
timing issues occur.
Additionally:
* improved logs lines in oreder to be more readable.
* fixed inconsistencies in the coding style.
Change-Id: I20a026fab33e2a56f23bdccef8ee3aa3e27de732
* Added 5 seconds of sleep time at the end of execution in order to allow
tcpdump to capture all the packages and kamailio to write all json files
* All json files are collected at the end of all the scenarios
* Only one big tcpdump trace is takes to collect all the scenarios
Change-Id: Id91835a959785080ecbbaf29a3e4c97bf752934e
* 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
Added option "-r" to run_tests and get_results script to activate
retransmission checks. If option is activated:
* at the end of the each test, json files will be checked and,
if a retransmission is found, the files will be renamed and
renumbered. This will help to detect most of the retransmission cases.
* In case a retransmission is not detected in the previous step,
if a scenario fails, it will be compared with the next json file.
This is an additional help to detect retransmissions.
* In case the transmission is detected and properly healed, no error
code is returned. Otherwise the script will exit 1 as before.
Change-Id: I5eaa7bdb920be869099440c295e0bfd75c2bf107
The script move the kamailio json files from /tmp/cfgtest folder
to the log folder as stated in the README file. This is executed
at the end of each single test.
To be sure that the /tmp/cfgtest is in place, it creates the folder
before start the test and it deletes the folder afterwards.
Change-Id: I54426b4415898165c1c2ba8154d0761a869c85d4