TT#116100 scenarios/register_ignore_allowip

* domain per scenario
* dynamic IP/port and numbers

Change-Id: I5edfc2baade59874301c5accec79ab7f21385bd9
mr9.5.1
Victor Seva 5 years ago committed by Víctor Seva
parent 096e115bcb
commit 6a49370ca8

@ -3,11 +3,11 @@ flow:
- start|ROUTE_ENTRY:
- return|ROUTE_ENTRY:
- start|ROUTE_NET_INFO:
$x_hdr(From): sip:testuser1003@
$x_hdr(From): sip:[% scenarios.0.username %]@
- return|ROUTE_NET_INFO:
- start|ROUTE_CHECK_TEL_URI:
- return|ROUTE_CHECK_TEL_URI:
$x_hdr(From): sip:testuser1003@
$x_hdr(From): sip:[% scenarios.0.username %]@
- start|ROUTE_REG_REQUEST:
- start|ROUTE_REG_HANDLE:
- start|ROUTE_AUTH:
@ -17,7 +17,7 @@ flow:
- exit|ROUTE_EXIT:
sip_in:
- '^REGISTER'
- 'Contact: sip:testuser1003@'
- 'Contact: sip:[% scenarios.0.username %]@'
- 'Content-Length: 0'
- 'Expires: 600'
sip_out:

@ -3,7 +3,7 @@ flow:
- start|ROUTE_ENTRY:
- return|ROUTE_ENTRY:
- start|ROUTE_NET_INFO:
$x_hdr(From): sip:testuser1003@
$x_hdr(From): sip:[% scenarios.0.username %]@
- return|ROUTE_NET_INFO:
- start|ROUTE_CHECK_TEL_URI:
- return|ROUTE_CHECK_TEL_URI:
@ -34,20 +34,20 @@ flow:
$xavp(caller_dom_prefs[0]=>dummy[*]):
- caller
$xavp(caller_peer_prefs): None
$xavp(caller_real_prefs[0]=>ac[*]): [1]
$xavp(caller_real_prefs[0]=>ac[*]): [[% register_ignore_allowip_scenarios_test.testuser1003.ac %]]
$xavp(caller_real_prefs[0]=>account_id): '\d+'
$xavp(caller_real_prefs[0]=>allowed_ips_grp): '\d+'
$xavp(caller_real_prefs[0]=>ignore_allowed_ips[*]): [1]
$xavp(caller_real_prefs[0]=>cc[*]): [43]
$xavp(caller_real_prefs[0]=>cli[*]): [4311003]
$xavp(caller_real_prefs[0]=>cc[*]): [[% register_ignore_allowip_scenarios_test.testuser1003.cc %]]
$xavp(caller_real_prefs[0]=>cli[*]): [[% register_ignore_allowip_scenarios_test.testuser1003.phone_number %]]
$xavp(caller_real_prefs[0]=>dummy[*]):
- caller
$xavp(caller_usr_prefs[0]=>ac[*]): [1]
$xavp(caller_usr_prefs[0]=>ac[*]): [[% register_ignore_allowip_scenarios_test.testuser1003.ac %]]
$xavp(caller_usr_prefs[0]=>account_id): '\d+'
$xavp(caller_usr_prefs[0]=>allowed_ips_grp): '\d+'
$xavp(caller_usr_prefs[0]=>ignore_allowed_ips[*]): [1]
$xavp(caller_usr_prefs[0]=>cc[*]): [43]
$xavp(caller_usr_prefs[0]=>cli[*]): [4311003]
$xavp(caller_usr_prefs[0]=>cc[*]): [[% register_ignore_allowip_scenarios_test.testuser1003.cc %]]
$xavp(caller_usr_prefs[0]=>cli[*]): [[% register_ignore_allowip_scenarios_test.testuser1003.phone_number %]]
$xavp(caller_usr_prefs[0]=>dummy[*]):
- caller
- start|ROUTE_EXIT:
@ -56,10 +56,10 @@ flow:
- exit|ROUTE_EXIT:
sip_in:
- '^REGISTER'
- 'Contact: sip:testuser1003@'
- 'Contact: sip:[% scenarios.0.username %]@'
- 'Content-Length: 0'
- 'Expires: 600'
- 'Authorization: Digest username="testuser1003"'
- 'Authorization: Digest username="[% scenarios.0.username %]"'
sip_out:
- [
'^SIP/2.0 100 Trying',
@ -68,6 +68,6 @@ sip_out:
- [
'^SIP/2.0 200 OK',
'Content-Length: 0',
'P-NGCP-Authorization: testuser1003@',
'P-NGCP-Authorization: [% scenarios.0.username %]@',
'P-NGCP-Authorized: 1'
]

@ -1,5 +1,5 @@
{
"testuser1003@spce.test": {
"testuser1003@register-ignore-allowip.scenarios.test": {
"allowed_ips": [
"1.2.3.4"
],

@ -1,6 +1,7 @@
---
test_uuid: register_ignore_allowip
domains:
'spce.test':
register-ignore-allowip.scenarios.test:
reseller_id: 1
customers:
'customer.test':
@ -13,7 +14,7 @@ customers:
billing_profile_id: 1
reseller_id: 1
subscribers:
spce.test:
register-ignore-allowip.scenarios.test:
testuser1003:
customer: 'customer.test'
password: testuser
@ -22,11 +23,11 @@ subscribers:
sn: 1003
scenarios:
- ip: 127.126.0.1
domain: spce.test
domain: register-ignore-allowip.scenarios.test
username: testuser1003
responders:
- ip: 127.1.0.1
domain: spce.test
register: no
domain: register-ignore-allowip.scenarios.test
register: 'no'
username: testuser1003
active: no
active: 'no'

Loading…
Cancel
Save