This new scenario checks the integrity of : - Authorization header - From header - To header - Contact header Checks must be performed at LB level using kamailio "sanity" module. Change-Id: I870d5ec15ba584357c1b0bfc26f4aa5fcb47fa05mr13.3
parent
a872835935
commit
627a9ae223
@ -0,0 +1,2 @@
|
|||||||
|
cdr: []
|
||||||
|
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"@sanity.scenarios.test": {
|
||||||
|
"nat_sipping": "no"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
---
|
||||||
|
test_uuid: sanity
|
||||||
|
description: Test 1 - register with broken auth header\
|
||||||
|
Test 2 - register with broken from header
|
||||||
|
Test 3 - register with broken to header
|
||||||
|
domains:
|
||||||
|
sanity.scenarios.test:
|
||||||
|
reseller_id: 1
|
||||||
|
customers:
|
||||||
|
'customer.test':
|
||||||
|
contacts:
|
||||||
|
- email: customer.test@spce.test
|
||||||
|
reseller_id: 1
|
||||||
|
details:
|
||||||
|
status: 'active'
|
||||||
|
type: 'sipaccount'
|
||||||
|
billing_profile_id: 1
|
||||||
|
reseller_id: 1
|
||||||
|
subscribers:
|
||||||
|
sanity.scenarios.test:
|
||||||
|
testuser1003:
|
||||||
|
customer: 'customer.test'
|
||||||
|
password: testuser
|
||||||
|
cc: 43
|
||||||
|
ac: 1
|
||||||
|
sn: 1003
|
||||||
|
testuser1002:
|
||||||
|
customer: 'customer.test'
|
||||||
|
password: testuser
|
||||||
|
cc: 43
|
||||||
|
ac: 1
|
||||||
|
sn: 1002
|
||||||
|
alias_numbers:
|
||||||
|
- cc: 34
|
||||||
|
ac: 96
|
||||||
|
sn: 5711941
|
||||||
|
scenarios:
|
||||||
|
- ip: 127.126.0.1
|
||||||
|
username: testuser1002
|
||||||
|
domain: sanity.scenarios.test
|
||||||
|
responders:
|
||||||
|
- ip: 127.3.0.5
|
||||||
|
username: testuser1003
|
||||||
|
domain: sanity.scenarios.test
|
||||||
|
register: no
|
||||||
|
active: no
|
||||||
@ -0,0 +1,86 @@
|
|||||||
|
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||||
|
|
||||||
|
<scenario name="Sipwise NGCP Benchmark UAC Caller">
|
||||||
|
<send>
|
||||||
|
<![CDATA[
|
||||||
|
|
||||||
|
REGISTER sip:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0] SIP/2.0
|
||||||
|
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
|
||||||
|
From: <sip:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>;tag=[pid]SIPpTag00[call_number]
|
||||||
|
To: <sip:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>
|
||||||
|
Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id]
|
||||||
|
CSeq: 1 REGISTER
|
||||||
|
Contact: <sip:[field0 file="callee.csv" line=0]@[local_ip]:[local_port]>
|
||||||
|
Expires: 600
|
||||||
|
Max-Forwards: 70
|
||||||
|
Content-Length: 0
|
||||||
|
Authorization: Digest username="594^R
|
||||||
|
|
||||||
|
]]>
|
||||||
|
</send>
|
||||||
|
|
||||||
|
<recv response="400"/>
|
||||||
|
|
||||||
|
<send>
|
||||||
|
<![CDATA[
|
||||||
|
|
||||||
|
REGISTER sip:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0] SIP/2.0
|
||||||
|
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
|
||||||
|
From: 500
|
||||||
|
To: <sip:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>
|
||||||
|
Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id]
|
||||||
|
CSeq: 2 REGISTER
|
||||||
|
Contact: <sip:[field0 file="callee.csv" line=0]@[local_ip]:[local_port]>
|
||||||
|
Expires: 600
|
||||||
|
Max-Forwards: 70
|
||||||
|
Content-Length: 0
|
||||||
|
|
||||||
|
]]>
|
||||||
|
</send>
|
||||||
|
|
||||||
|
<recv response="400"/>
|
||||||
|
|
||||||
|
<send>
|
||||||
|
<![CDATA[
|
||||||
|
|
||||||
|
REGISTER sip:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0] SIP/2.0
|
||||||
|
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
|
||||||
|
From: <sip:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>;tag=[pid]SIPpTag00[call_number]
|
||||||
|
To: 500
|
||||||
|
Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id]
|
||||||
|
CSeq: 3 REGISTER
|
||||||
|
Contact: <sip:[field0 file="callee.csv" line=0]@[local_ip]:[local_port]>
|
||||||
|
Expires: 600
|
||||||
|
Max-Forwards: 70
|
||||||
|
Content-Length: 0
|
||||||
|
|
||||||
|
]]>
|
||||||
|
</send>
|
||||||
|
|
||||||
|
<recv response="400"/>
|
||||||
|
|
||||||
|
<send>
|
||||||
|
<![CDATA[
|
||||||
|
|
||||||
|
REGISTER sip:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0] SIP/2.0
|
||||||
|
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
|
||||||
|
From: <sip:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>;tag=[pid]SIPpTag00[call_number]
|
||||||
|
To: <sip:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>
|
||||||
|
Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id]
|
||||||
|
CSeq: 4 REGISTER
|
||||||
|
Contact: hello
|
||||||
|
Expires: 600
|
||||||
|
Max-Forwards: 70
|
||||||
|
Content-Length: 0
|
||||||
|
|
||||||
|
]]>
|
||||||
|
</send>
|
||||||
|
|
||||||
|
<recv response="400"/>
|
||||||
|
|
||||||
|
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200, 500, 1000"/>
|
||||||
|
|
||||||
|
<!-- <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/> -->
|
||||||
|
|
||||||
|
</scenario>
|
||||||
|
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
messages:
|
||||||
|
- - 'SIP/2.0 400 Bad Auth Header'
|
||||||
|
- 'From: <sip:[% scenarios.0.responders.0.username %]@sanity.scenarios.test>;tag=[\w-]+'
|
||||||
|
- 'To: <sip:[% scenarios.0.responders.0.username %]@sanity.scenarios.test>;tag=[\w-]+'
|
||||||
|
- 'CSeq: \d+ REGISTER'
|
||||||
|
- 'Server: Sipwise NGCP LB'
|
||||||
|
- 'Content-Length:\s+0'
|
||||||
|
- - 'SIP/2.0 400 Invalid From Header'
|
||||||
|
- 'From: 500'
|
||||||
|
- 'To: <sip:[% scenarios.0.responders.0.username %]@sanity.scenarios.test>;tag=[\w-]+'
|
||||||
|
- 'CSeq: \d+ REGISTER'
|
||||||
|
- 'Server: Sipwise NGCP LB'
|
||||||
|
- 'Content-Length:\s+0'
|
||||||
|
- - 'SIP/2.0 400 Invalid To Header'
|
||||||
|
- 'From: <sip:[% scenarios.0.responders.0.username %]@sanity.scenarios.test>;tag=[\w-]+'
|
||||||
|
- 'To: 500;tag=[\w-]+'
|
||||||
|
- 'CSeq: \d+ REGISTER'
|
||||||
|
- 'Server: Sipwise NGCP LB'
|
||||||
|
- 'Content-Length:\s+0'
|
||||||
|
- - 'SIP/2.0 400 Bad Contact Header'
|
||||||
|
- 'From: <sip:[% scenarios.0.responders.0.username %]@sanity.scenarios.test>;tag=[\w-]+'
|
||||||
|
- 'To: <sip:[% scenarios.0.responders.0.username %]@sanity.scenarios.test>;tag=[\w-]+'
|
||||||
|
- 'CSeq: \d+ REGISTER'
|
||||||
|
- 'Server: Sipwise NGCP LB'
|
||||||
|
- 'Content-Length:\s+0'
|
||||||
Loading…
Reference in new issue