TT#116100 scenarios/register_allowip

* domain per scenario
* dynamic IP/port and numbers

Change-Id: I019bfb474a54ca15a3c46e5c5879838b91335b79
mr9.5.1
Victor Seva 5 years ago committed by Víctor Seva
parent 80913701c2
commit 4181ee86fb

@ -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:
@ -16,7 +16,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:
@ -29,27 +29,27 @@ 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_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]=>cc[*]): [43]
$xavp(caller_real_prefs[0]=>cli[*]): [4311003]
$xavp(caller_real_prefs[0]=>cc[*]): [[% register_allowip_scenarios_test.testuser1003.cc %]]
$xavp(caller_real_prefs[0]=>cli[*]): [[% register_allowip_scenarios_test.testuser1003.phone_number %]]
$xavp(caller_real_prefs[0]=>dummy[*]):
- caller
$xavp(caller_real_prefs[0]=>man_allowed_ips_grp[*]): [0]
$xavp(caller_usr_prefs[0]=>ac[*]): [1]
$xavp(caller_usr_prefs[0]=>ac[*]): [[% register_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]=>cc[*]): [43]
$xavp(caller_usr_prefs[0]=>cli[*]): [4311003]
$xavp(caller_usr_prefs[0]=>cc[*]): [[% register_allowip_scenarios_test.testuser1003.cc %]]
$xavp(caller_usr_prefs[0]=>cli[*]): [[% register_allowip_scenarios_test.testuser1003.phone_number %]]
$xavp(caller_usr_prefs[0]=>dummy[*]):
- caller
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',
@ -58,6 +58,6 @@ sip_out:
- [
'^SIP/2.0 403 Unauthorized IP detected',
'Content-Length: 0',
'P-NGCP-Authorization: testuser1003@',
'P-NGCP-Authorization: [% scenarios.0.username %]@',
'P-NGCP-Authorized: 1'
]

@ -1,7 +0,0 @@
{
"testuser1003@spce.test": {
"allowed_ips": [
"1.2.3.4"
]
}
}

@ -0,0 +1,7 @@
{
"[% scenarios.0.username %]@register-allowip.scenarios.test": {
"allowed_ips": [
"1.2.3.4"
]
}
}

@ -1,6 +1,7 @@
---
test_uuid: register_allowip
domains:
'spce.test':
register-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-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-allowip.scenarios.test
username: testuser1003
responders:
- ip: 127.1.0.1
domain: spce.test
register: no
domain: register-allowip.scenarios.test
register: 'no'
username: testuser1003
active: no
active: 'no'

Loading…
Cancel
Save