Victor Seva
a255bedde2
TT#5105 bin/check.sh: restore previous behavior for responders
...
* don't reuse ports for responders
Change-Id: Ie32dfa3cc9a60849bec84fbb8cb804bb53df4db2
10 years ago
Victor Seva
08e18b604e
TT#5105 bin/check.sh: restore previous behavior with static ports for sender
...
Change-Id: Ibe45f3ff8b2ca2eaaa092bf966b728a35cbad57b
10 years ago
Victor Seva
550a9d3a9a
TT#5105 bin/check.sh: check media port+2, sipp uses media port +2
...
* fix sipp transport arguments
* change port range of media from 6003 to 46003 for responders
* change port range of media from 7002 to 45003 for senders
* change port from 50602 to 51602 for senders
Change-Id: Ia76daeb9098e05d67c6fb95ebe945cdb59c8a493
10 years ago
Victor Seva
193c3fd793
TT#4938 bin/restart_log.sh touch expected logs after remove them
...
Change-Id: I4ef394570704f56990d4561883e1a7aab705a604
10 years ago
Victor Seva
8e0a598282
TT#4877 add ncoslnpcarrier support
...
ncos.yml:
---
ncos_black:
data:
mode: blacklist
local_ac: 0
description: test ncos level
reseller_id: 1
patterns:
- pattern: "^439991"
description: block LNP call
ncos_white:
data:
mode: whitelist
local_ac: 0
description: test ncos level
reseller_id: 1
patterns:
- pattern: "^439991"
description: allow LNP call
lnp.yml
---
lnp_test_00:
data:
name: lnp_test_00
prefix: AA
numbers:
- number: '439992'
routing_number: '4318881001'
ncos:
- level: ncos_black
reseller_id: 1
- level: ncos_white
reseller_id: 1
Change-Id: I7c95df88b93feb902943e05d90165204982dfc86
10 years ago
Victor Seva
a0af0be1fc
TT#4760 scenario_ids.yml
...
* support dynamic checks with defined ids
* create_subscribers.pl generates scenario/scenario_ids.yml
* create_peers.pl will add peers info to it
* generate_test.pl will produce the final test_0XXX.tt2 with the
proper values
* we put the scenario_ids.yml in log if debug is needed
Example of scenarios_ids.yml:
---
customer_test:
id: 7
peer_00_host0:
id: 95
spce_test:
testuser1003:
uuid: 15dd6b9a-1b83-4d74-b630-be05d3fada77
Example of checks:
- return|ROUTE_SET_CALLEE_DIALOG:
$avp(lua_dlg_profile): [
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"total", "account:[% customer_test.id %]",
"user:[% spce_test.testuser1003.uuid %]"
]
Change-Id: I3d81bcae0865d9861b4f721618f2bc21f2db14b8
10 years ago
Victor Seva
28ac3bd131
TT#4110 add sems-pbx logs
...
Change-Id: I561293c4ec95aec64d66e0e92b38101b23220757
10 years ago
Victor Seva
1cf249f560
TT#4556 bin/create_lnp.pl: fix removal logic
...
panel API doesn't allow to remove lnpcarrier with lnpnumbers assigned
Change-Id: I4b67a1f06c3e156089db52b77d0b406d02f28401
10 years ago
Victor Seva
e3934987d1
TT#4475 pid_watcher.py: catch SIGTERM and log that the process was aborted
...
Change-Id: Ic97859a8b6d83665125e376ce80573bfcd4a65d1
10 years ago
Victor Seva
86e0e44faf
TT#4110 bin/create_subscribers.pl: add pbx_group support
...
* use sort for deterministic output for loops with keys
Example
> subscribers:
> spce.test:
> group00:
> customer: 'customerpbx.test'
> password: testuser
> cc: 43
> ac: 1
> sn: 1000
> is_pbx_pilot: 1
> is_pbx_group: 1
> pbx_extension: 1000
> group01:
> customer: 'customerpbx.test'
> password: testuser
> cc: 43
> ac: 1
> sn: 1001
> is_pbx_pilot: 0
> is_pbx_group: 1
> pbx_extension: 1001
> testuser1003:
> customer: 'customerpbx.test'
> password: testuser
> cc: 43
> ac: 1
> sn: 1003
> is_pbx_pilot: 0
> pbx_groups:
> - 'group00'
> pbx_extension: 1003
> testuser1002:
> customer: 'customerpbx.test'
> password: testuser
> cc: 43
> ac: 1
> sn: 1002
> is_pbx_pilot: 0
> pbx_groups:
> - 'group00'
> - 'group01'
> pbx_extension: 1002
> alias_numbers:
> - cc: 43
> ac: 96
> sn: 5751941
Change-Id: I3eabb55b30bff3dec4b03f53d1d00a7398e23881
10 years ago
Victor Seva
407517a48a
TT#4110 Initial support for PBX scenarios
...
* 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
10 years ago
Victor Seva
874667ff39
TT#4110 add support for pbx
...
scenario.yml:
- is_pbx_pilot
- pbx_extension
Change-Id: I57d57d936162c56dbf3649656a0654b0d0c654ca
10 years ago
Andreas Granig
85f345ded5
TT#2766 Add inbound peering rules to tests
...
Change-Id: I1e8882e7f366c90ca775db7aea092251a66c386e
10 years ago
Alexander Lutay
d5b9c7211f
MT#19571 Remove {kamailio}{lb}{children} option from config_debug.pl as it doesn't exist
...
Having it here affects further ngcp-ngcpcfg-check Jenkins test which reports:
> 2016-05-06 02:23:46: Error: Invalid schema detected for /etc/ngcp-config/config.yml
> /etc/ngcp-config/config.yml#0: INVALID
> - [/kamailio/lb/children] Unexpected key 'children'
It happen only in case if kamailio-config-tests Jenkins job failed
and it didn't cleanup/restore original config.
Change-Id: I48eef343c3a1813af6e18b0d0b426d539dc2950b
10 years ago
Victor Seva
7267cba42a
MT#19053 bin/update_peer_host.pl: fix error message
...
> Use of uninitialized value in concatenation (.) or string at ./bin/update_peer_host.pl line 76.
Change-Id: I121658d110d1deaa19e0e6407d5a45aa586b13ea
10 years ago
Victor Seva
81fc94a4ec
MT#19053 fix new flow with ROUTE_PSTN_SELECT_PEER
...
* add reload workaround when deleting peers too
Change-Id: I8f517a04c4ecd5f9eff728f16a8366b1469f409c
10 years ago
Victor Seva
1d9026e0f9
MT#17333 add lnp scenarios group
...
* add suport for lnp.yml
* update README
Change-Id: I6460a9a52f8d4645fb9411d0570fd3383b8e6918
10 years ago
Victor Seva
a06a24b703
MT#19053 fix bin/config_debug group option
...
* we need to define the option as string
Change-Id: Id5a93477d110179a97f2785603183fd1aee07f71
10 years ago
Victor Seva
d6bd38fd16
MT#19053 support groups of scenarios
...
* bin/config_debug.pl:
- use YAML instead of YAML::Tiny
- support config.yml per group
Change-Id: I226cb1ef776fa147e0b4d85a5e4f9987427a51e2
10 years ago
Victor Seva
036064d8ad
MT#13337 lock_ported scenario
...
* bin/create_subscribers.pl: remove lock from here is a preference!!
Change-Id: I47aedefa6aa7c459d68600e776c94b2f384f4ecb
10 years ago
Victor Seva
f998b1645d
MT#7571 disable invite_speeddial scenario
...
* bin/set_preferences.pl
- use rewrite_rule_set with rewrite rule set name not id
Change-Id: Ia87f835b78abab3cfb04f535cccb9cd65d38ed9c
10 years ago
Victor Seva
8fcba2e079
MT#7571 provisioning via REST API step two
...
* API: fix get_*_preferences URL
* bin/set_preferences.pl:
- don't use Hash::Merge and implement our merge()
- fix rewriteruleset preference fieldname
* migrate provisioning:
- ncos
- speeddial
- callforward
- peering
* enable peer scenarios
- MT#17185 support rfc3325
* add 'lock' property support for subscriber
Change-Id: I15e9afb744f6f4700dd863bfe226944ea4c3ecf7
10 years ago
Victor Seva
9a7814994b
MT#7571 bin/create_rewrite_rules.pl: use REST API
...
Change-Id: Icbefc9291c8c5719485b34c68fb5256517795de2
10 years ago
Alexander Lutay
1c77b3df68
MT#7571 config_debug.pl: Fix of the fix 78ba96f: s/ngcp-panel/ngcp_panel/
...
Change-Id: I7a7496fc9a97869aa08d6364b28970333558a9ac
10 years ago
Victor Seva
78ba96fe23
MT#7571 config_debug.pl: disable sslverify for restapi. fix 7d3ec378bd
...
Change-Id: Ia7fb8f37a9070344a1408de61c25b458924fb35d
10 years ago
Victor Seva
7d3ec378bd
MT#7571 config_debug.pl: disable sslverify for restapi
...
Change-Id: I7705a3ebd72b27fba4c8eafccd0897ea94ed3e31
10 years ago
Victor Seva
129397e6fc
MT#7571 use NGCP REST API instead of SOAP lib
...
- prefs.yml -> prefs.json
solving true/1 problem
- disable non working scenarios:
* incoming_foreign_dom
* incoming_peer
* invite_concurrent_max_out
* invite_concurrent_max_out_per_account
* invite_ignore_allowip
* invite_peerout
* invite_peerout_rewrite
* invite_peerout_rewrite_pv_regex
* register_allowip
* register_ignore_allowip
missing API parts:
- peers settings
- add/modify/delete peers
* bin/create_peers.pl
* bin/update_peer_host.pl
TODO:
- bin/create_ncos.pl
- bin/create_rewrite_rules.pl
- bin/create_subscribers_rewrite_rules.pl
- bin/create_subscribers_speeddial_rules.pl
Change-Id: I6d47e24669f9da22b5b3ac4fb410c50d2c9dbf53
10 years ago
Victor Seva
fc685d65b0
MT#16225 [jessie] update collectd pid filename
...
Change-Id: Id938d170d4900e42d273d21f9ecd85965efee0e8
10 years ago
Victor Seva
df0a6e1843
MT#16237 bin/scenario.pl: fix warning
...
> Mon Dec 14 09:59:29 CET 2015 - Generating csv/reg.xml files
> Possible precedence issue with control flow operator at ./bin/scenario.pl line 72.
Change-Id: I73968a15ea81de15cbb38c48678fefce98c28da9
10 years ago
Victor Seva
c421e3fa7a
MT#7571 bin/check.sh: fix cosmetic output removing domain
...
Change-Id: I9247a9824a115512512886a79a68fc4eb9c096d1
11 years ago
Victor Seva
20bb49e4e3
MT#7571 bin/check.sh: fix creation of KAM_DIR cfgtest dir
...
Change-Id: Id2bb681bcc98fc5284d752a0a1cf99b292982e37
11 years ago
Victor Seva
cafe088569
MT#7571 bin/check.sh: skip delete domain when skiping run tests
...
Change-Id: If4d13b6451e5f1b969423572920fc7820df58fa4
11 years ago
Victor Seva
8e20d27907
MT#14967 fix check.py TAP output
...
script was returning error but the TAP was not showing any error
Change-Id: I13e44e09cc63c54ed9e67bfb550cad717d10815d
11 years ago
Victor Seva
587d056de9
MT#14229 fix shellcheck warnings
...
Fixing the test -z -n mess I notice
that ./run_test.sh needed a missing -J
for creating the initial KAM_DIR (cfgtest)
Change-Id: Ic0832c977657248852f5795cd35851f881299cf9
11 years ago
Victor Seva
f67b5bd9c6
MT#6565 enable invite_peerout_rewrite_pv_regex. Fix typo check.py
...
Change-Id: Ied814cce246492da171d6966fdcd6aa0c13816fc
11 years ago
Victor Seva
8df70164ea
MT#6565 CE/PRO differences due to sems version
...
- fix tap-test
- fix bin/generate_test.sh: define CE too
- scenarios:
* invite_callforward
* invite_voicebox
Change-Id: I8ebad6ea580003e8e072204ad48bc4533eba0fe9
11 years ago
Victor Seva
e1a76fb1f4
MT#6565 kamailio saving json using uuid for tests
...
- fix check.py comparation when int -> string
- disable tcpdump by default ( new option -K to enable it)
- fix graph_flow for json ( new option --json )
Change-Id: I25f49ef6303b4e2e28c34fefd7860c744e6c3250
11 years ago
Alexander Lutay
78fc7f0dd8
MT#13297 pid_watcher.py will trigger check_all on event 'modified'
...
Change-Id: I77dad7f6757ecf5b471341732b9cd003efb1dece
11 years ago
Victor Seva
ef49f263aa
MT#11921 fix tap-test errors. fix commit 2383cafe85
...
Change-Id: I050f117618df6364b6059a1cc69f0316f0654ab6
11 years ago
Victor Seva
2383cafe85
MT#11921 fix tap-test errors and move unit-tests to tests dir
...
Change-Id: I5a76db17a3d9178dca42440f50b5c9af1837d80c
11 years ago
Victor Seva
1bce64b713
MT#6499 pid_watcher.py: create logging file here not by run_tests.sh
...
This fixes strange problem having empty log/pid_watcher.log file
12 years ago
Victor Seva
c4e7d63886
Revert "MT#7533 stop rate-o-mat service"
...
changes on heartbeat config makes it to restart on apply.
This reverts commit 6a327ad7f1 .
12 years ago
Victor Seva
6a327ad7f1
MT#7533 stop rate-o-mat service
...
pid_wached.py: add services that should to stop too
12 years ago
Victor Seva
e972c3c70a
MT#8753 protection of run "bin/config_debug.pl on" twice in a row
...
Avoid overwrite config.yml.orig if already exists
and don't modify /etc/hosts if is already changed.
12 years ago
Victor Seva
637eb0521f
MT#8721 run sipp on background to get the proper pid on responder scenario
12 years ago
Alexander Lutay
9518075d29
MT#7531 Add ERROR label for failed TAP cases
12 years ago
Victor Seva
3fdb96faf8
MT#7349 pid_watcher.py: update sems dir too.
12 years ago
Victor Seva
7942d5e8ce
MT#7349 pid_watcher.py: update sems pid filename
12 years ago
Victor Seva
73fd5c7797
MT#7109 create private memory per_pid file
12 years ago
Victor Seva
42491e6e5e
MT#7109 add prefix to headers
12 years ago
Victor Seva
fa9ce94dbe
MT#7109 Add first SUM row to private mem stat file
12 years ago
Victor Seva
ea6c1b4949
MT#7109 Add mem stats
...
Initial and final stats are created on mem dir.
12 years ago
Victor Seva
f5b9fda5c4
MT#6817 add pid_watcher.py
...
Use inotify in order to monitor the pid change for some services
12 years ago
Victor Seva
601f7c5ea4
MT#6543 generate tap file even if no sip message yaml exists
12 years ago
Victor Seva
62c95620e8
MT#6499 bin/config_debug.pl: more flexible localhost match
12 years ago
Victor Seva
9934dcf59d
MT#6165 ulog_parser.pl: add more info on error Call-ID
12 years ago
Victor Seva
9e8a299c2a
MT#6133 use sipwise user when connecting to mysql
12 years ago
Victor Seva
cf4ce574a4
MT#6055 clean kamailio location table
12 years ago
Victor Seva
89d4e27bbe
MT#5947 Add a way to use a wrong password for auth on the caller
12 years ago
Victor Seva
053b69b092
MT#5947 remove possible banned user
12 years ago
Victor Seva
82d954384c
MT#5789 fix cfb23bb974
12 years ago
Victor Seva
58b0eb8532
MT#5887 fix a17d3c9ef4
12 years ago
Victor Seva
a17d3c9ef4
MT#5887 copy the original config.yml file and restore it after the tests.
12 years ago
Victor Seva
cfb23bb974
MT#5789 foreign domain support
...
- bin/config_debug.pl: we need to deactivate dns_cache on lb
- bin/scenario.pl: generates scenario hosts file + adds info on scenario.csv
- bin/check.sh: uses the info from scenario.csv and hosts files
12 years ago
Victor Seva
8a7e878060
MT#5633 bin/ulog_parser.pl: fix 7facd87c61
...
Now we are sending HTTP querys. Fix the detection of the proper first line
with the right pid.
12 years ago
Victor Seva
3b62b419c8
MT#5633 add presence support on scenario.
...
Add XCap client script.
12 years ago
Victor Seva
babfc1485b
MT#5633 bin/config_debug.pl: activate presence
12 years ago
Victor Seva
608c604a33
MT#5757 bin/check.sh: add -g option to generate graph only if test fails
12 years ago
Victor Seva
4ff4f70cd0
MT#5733 use transport option on sipp
12 years ago
Victor Seva
c20e75bd64
MT#5733 add transport to scenario.csv file
12 years ago
Victor Seva
9db218c0a1
MT#5733 bin/create_peers.pl: fix warning
12 years ago
Victor Seva
7facd87c61
bin/ulog_parser.pl: filter lines by kamailio pid.
...
We don't want to parse any line not for DEBUG and comming from another pid.
We have only one child to process messages.
12 years ago
Victor Seva
4c0a6cf6ff
bin/check.sh: Add check for deactivated files not in scenario.csv
12 years ago
Victor Seva
560e36a662
MT#4009 Add GPL licence to all scripts
13 years ago
Victor Seva
4db93a79e3
MT#4817 add tests for not match rules
13 years ago
Victor Seva
77e1e2f71c
MT#4817 Add not match rule.
...
Use '_:NOT:_' as prefix for negative rules to match
13 years ago
Victor Seva
5f62e52b8e
Add tests for sip_in and sip_out
13 years ago
Victor Seva
3b7e2d4938
bin/show_flow.pl: add missing option to help output
13 years ago
Victor Seva
300bb0f286
bin/check.sh: do not force skip test on skip parse
13 years ago
Victor Seva
e091e7d0b7
bin/check.sh: fix skip creation option
13 years ago
Michael Prokop
7471d7d324
Switch from /usr/local/src to /usr/share
...
Addressing:
| 00:53:47 3m51.5s ERROR: FAIL: After purging files have disappeared:
| 00:53:47 /usr/local/src/ owned by: kamailio-config-tests
-- https://jenkins.mgm.sipwise.com/view/piuparts/job/kamailio-config-tests-piuparts/68/console
Acked-by: Victor Seva
13 years ago
Victor Seva
e308ca7054
bin/restart_log.sh: Use the new kamailio RPC command to reset the msgid
13 years ago
Victor Seva
8110096f4a
bin/set_subscribers_callforward.pl: Added voicebox preferences
13 years ago
Victor Seva
aaef97d2fd
bin/restart_log.sh: force kill kamailio and check if it starts
13 years ago
Victor Seva
fadc242117
bin/check.sh: wait between sip_scenarios.
13 years ago
Victor Seva
96ff528242
bin/create_ncos.pl: Added helper script to add ncos levels on ncos.yml
...
bin/check.sh: Call create_ncos.pl when needed.
13 years ago
Victor Seva
ea3045d4ac
fix
13 years ago
Victor Seva
5b540a96c4
bin/check.sh: use renamed script. Must be exec before create_peers.pl
...
bin/set_preferences.pl: Create prefs for domain, peer or subscriber
domain: "@domain.whatever"
peer: "peer_host" as on peer.yml
subscriber: "user@domain.whatever"
13 years ago
Victor Seva
1221c600cd
bin/check.sh: Add create_rewrite_rules script
13 years ago
Victor Seva
79a8195738
bin/create_rewrite_rules.pl: helper script to create/delete rewrite_rules described at scenario.yml files
13 years ago
Victor Seva
a4fbfec180
bin/check.sh: try to get the kamailio.log on restart_log.sh error
13 years ago
Victor Seva
5ec884ae36
bin/check.sh: fix last commit. Show no error
13 years ago
Victor Seva
659dadf422
bin/check.sh: force error if there is any errors.log from sipp
13 years ago
Victor Seva
98fef050e3
bin/sipp.sh: Disable retransmission in UDP mode.
13 years ago
Victor Seva
99d3de17e6
Peer responders
...
bin/upgrade_peer.pl: Added script to upgrade ip:host peer info.
- This is neeeded because we don't know for sure the port used on a responder
bin/check.sh: call upgrade_peerl script if needed
bin/scenario.pl: new peer_host option
13 years ago
Victor Seva
bf6a35ab01
Create subscribers from scenarios.yml file.
...
- Now subscribers can have aliases.
- No duplicate info in scenarios.
13 years ago
Victor Seva
babfec8eec
bin/check.sh: Clean generated tests before generate again them.
13 years ago
Victor Seva
0d2e020948
bin/check.sh: clean generated csv/reg.xml files before run again.
13 years ago
Victor Seva
073dbc1309
bin/scenario.pl: remove warning if no username or password.
13 years ago
Victor Seva
ed0734236e
bin/scenario.pl: fix res_id
13 years ago