TT#116100 scenarios/register_tcp

* domain per scenario
* dynamic IP/port and numbers

Change-Id: Idb535061d1b6b057b74847e8e832dbe52cb0c700
mr9.5.1
Victor Seva 5 years ago committed by Víctor Seva
parent 6a49370ca8
commit 79e32b52a6

@ -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:
@ -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:
@ -12,12 +12,12 @@ flow:
- start|ROUTE_REG_HANDLE:
- start|ROUTE_AUTH:
- start|ROUTE_AUTH_HELPER:
$x_hdr(From): spce.test
$var(realm_user): testuser1003
$var(realm_domain): spce.test
$x_hdr(From): register-tcp.scenarios.test
$var(realm_user): [% scenarios.0.username %]
$var(realm_domain): register-tcp.scenarios.test
- return|ROUTE_AUTH_HELPER:
$avp(orig_acc_caller_user): ['testuser1003']
$avp(orig_acc_caller_domain): ['spce.test']
$avp(orig_acc_caller_user): ['[% scenarios.0.username %]']
$avp(orig_acc_caller_domain): ['register-tcp.scenarios.test']
- start|ROUTE_ADD_CALLINFO_REPLY:
- return|ROUTE_ADD_CALLINFO_REPLY:
- return|ROUTE_AUTH:
@ -30,23 +30,23 @@ flow:
$xavp(caller_dom_prefs[0]=>cc[*]): None
$xavp(caller_dom_prefs[0]=>cli[*]): None
$xavp(caller_real_prefs[0]=>dummy[*]): ['caller']
$xavp(caller_real_prefs[0]=>ac[*]): [1]
$xavp(caller_real_prefs[0]=>cc[*]): [43]
$xavp(caller_real_prefs[0]=>cli[*]): [4311003]
$xavp(caller_real_prefs[0]=>ac[*]): [[% register_tcp_scenarios_test.testuser1003.ac %]]
$xavp(caller_real_prefs[0]=>cc[*]): [[% register_tcp_scenarios_test.testuser1003.cc %]]
$xavp(caller_real_prefs[0]=>cli[*]): [[% register_tcp_scenarios_test.testuser1003.phone_number %]]
$xavp(caller_usr_prefs[0]=>dummy[*]): ['caller']
$xavp(caller_usr_prefs[0]=>ac[*]): [1]
$xavp(caller_usr_prefs[0]=>cc[*]): [43]
$xavp(caller_usr_prefs[0]=>cli[*]): [4311003]
$xavp(caller_usr_prefs[0]=>ac[*]): [[% register_tcp_scenarios_test.testuser1003.ac %]]
$xavp(caller_usr_prefs[0]=>cc[*]): [[% register_tcp_scenarios_test.testuser1003.cc %]]
$xavp(caller_usr_prefs[0]=>cli[*]): [[% register_tcp_scenarios_test.testuser1003.phone_number %]]
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- 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',
@ -55,6 +55,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,6 +1,7 @@
---
test_uuid: register_tcp
domains:
'spce.test':
register-tcp.scenarios.test:
reseller_id: 1
customers:
'customer.test':
@ -13,7 +14,7 @@ customers:
billing_profile_id: 1
reseller_id: 1
subscribers:
spce.test:
register-tcp.scenarios.test:
testuser1003:
customer: 'customer.test'
password: testuser
@ -22,12 +23,12 @@ subscribers:
sn: 1003
scenarios:
- ip: 127.126.0.1
domain: spce.test
domain: register-tcp.scenarios.test
username: testuser1003
proto: tcp
responders:
- ip: 127.1.0.1
domain: spce.test
register: no
domain: register-tcp.scenarios.test
register: 'no'
username: testuser1003
active: no
active: 'no'

Loading…
Cancel
Save