mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
initial checkin
This commit is contained in:
16
test/data/bad/bad-enum.json
Normal file
16
test/data/bad/bad-enum.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"dial": {
|
||||
"action": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "foo",
|
||||
"number": "sip:1617333456@sip.trunk1.com",
|
||||
"auth": {
|
||||
"user": "foo",
|
||||
"password": "bar"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
4
test/data/bad/bad-payload.json
Normal file
4
test/data/bad/bad-payload.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"key1": "value",
|
||||
"key2": "value"
|
||||
}
|
||||
1
test/data/bad/bad-payload2.json
Normal file
1
test/data/bad/bad-payload2.json
Normal file
@@ -0,0 +1 @@
|
||||
[1, 2]
|
||||
5
test/data/bad/invalid-type.json
Normal file
5
test/data/bad/invalid-type.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sip:decline": {
|
||||
"status": "hello"
|
||||
}
|
||||
}
|
||||
15
test/data/bad/missing-required-property.json
Normal file
15
test/data/bad/missing-required-property.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"dial": {
|
||||
"action": "http://example.com",
|
||||
"callerId": "+1312888899",
|
||||
"target": [
|
||||
{
|
||||
"type": "sip",
|
||||
"number": "sip:1617333456@sip.trunk1.com",
|
||||
"auth": {
|
||||
"password": "bar"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
3
test/data/bad/unknown-instruction.json
Normal file
3
test/data/bad/unknown-instruction.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo": "bar"
|
||||
}
|
||||
6
test/data/bad/unknown-property.json
Normal file
6
test/data/bad/unknown-property.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sip:decline": {
|
||||
"status": 480,
|
||||
"foo": "bar"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user