-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving test json to json files for maintainability
- Loading branch information
1 parent
f7d2199
commit 1734147
Showing
14 changed files
with
239 additions
and
89 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
Vonage.Test.Unit/Data/MultiInputTests/TestSerializeNccoAllProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[ | ||
{ | ||
"dtmf": { | ||
"timeOut": 3, | ||
"maxDigits": 1, | ||
"submitOnHash": true | ||
}, | ||
"speech": { | ||
"uuid": [ | ||
"aaaaaaaa-bbbb-cccc-dddd-0123456789ab" | ||
], | ||
"endOnSilence": 1, | ||
"language": "en-US", | ||
"context": [ | ||
"dog", | ||
"cat" | ||
], | ||
"startTimeout": 5, | ||
"maxDuration": 30 | ||
}, | ||
"action": "input" | ||
} | ||
] |
12 changes: 12 additions & 0 deletions
12
Vonage.Test.Unit/Data/MultiInputTests/TestSerializeNccoAllPropertiesEmpty.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"dtmf": { | ||
}, | ||
"speech": { | ||
"uuid": [ | ||
"aaaaaaaa-bbbb-cccc-dddd-0123456789ab" | ||
] | ||
}, | ||
"action": "input" | ||
} | ||
] |
26 changes: 26 additions & 0 deletions
26
Vonage.Test.Unit/Data/MultiInputTests/TestWebhookSerialization.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"speech": { | ||
"timeout_reason": "end_on_silence_timeout", | ||
"results": [ | ||
{ | ||
"confidence": "0.9405097", | ||
"text": "Sales" | ||
}, | ||
{ | ||
"confidence": "0.70543784", | ||
"text": "Sails" | ||
}, | ||
{ | ||
"confidence": "0.5949854", | ||
"text": "Sale" | ||
} | ||
] | ||
}, | ||
"dtmf": { | ||
"digits": null, | ||
"timed_out": false | ||
}, | ||
"uuid": "aaaaaaaa-bbbb-cccc-dddd-0123456789ab", | ||
"conversation_uuid": "bbbbbbbb-cccc-dddd-eeee-0123456789ab", | ||
"timestamp": "2020-01-01T14:00:00.000Z" | ||
} |
12 changes: 12 additions & 0 deletions
12
Vonage.Test.Unit/Data/MultiInputTests/TestWebhookSerializationSpeechOveridden.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"speech": { | ||
"error": "Speech overridden by DTMF" | ||
}, | ||
"dtmf": { | ||
"digits": "1234", | ||
"timed_out": false | ||
}, | ||
"uuid": "aaaaaaaa-bbbb-cccc-dddd-0123456789ab", | ||
"conversation_uuid": "bbbbbbbb-cccc-dddd-eeee-0123456789ab", | ||
"timestamp": "2020-01-01T14:00:00.000Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"to": [ | ||
{ | ||
"number": "14155550100", | ||
"dtmfAnswer": "p*123#", | ||
"type": "phone" | ||
} | ||
], | ||
"from": { | ||
"number": "14155550100", | ||
"dtmfAnswer": "p*123#", | ||
"type": "phone" | ||
}, | ||
"ncco": [ | ||
{ | ||
"text": "Hello World", | ||
"action": "talk" | ||
} | ||
], | ||
"answer_url": [ | ||
"https://example.com/answer" | ||
], | ||
"answer_method": "GET", | ||
"event_url": [ | ||
"https://example.com/event" | ||
], | ||
"event_method": "POST", | ||
"machine_detection": "continue", | ||
"length_timer": 1, | ||
"ringing_timer": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"to": [ | ||
{ | ||
"number": "14155550100", | ||
"dtmfAnswer": "p*123#", | ||
"type": "phone" | ||
} | ||
], | ||
"from": { | ||
"number": "14155550100", | ||
"dtmfAnswer": "p*123#", | ||
"type": "phone" | ||
}, | ||
"ncco": [ | ||
{ | ||
"text": "Hello World", | ||
"action": "talk" | ||
} | ||
], | ||
"answer_url": [ | ||
"https://example.com/answer" | ||
], | ||
"answer_method": "GET", | ||
"event_url": [ | ||
"https://example.com/event" | ||
], | ||
"event_method": "POST", | ||
"machine_detection": "continue", | ||
"length_timer": 1, | ||
"ringing_timer": 1 | ||
} |
27 changes: 27 additions & 0 deletions
27
Vonage.Test.Unit/Data/VoiceTests/TestCreateCallWithRandomFromNumber.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"to": [ | ||
{ | ||
"number": "14155550100", | ||
"dtmfAnswer": "p*123#", | ||
"type": "phone" | ||
} | ||
], | ||
"ncco": [ | ||
{ | ||
"text": "Hello World", | ||
"action": "talk" | ||
} | ||
], | ||
"answer_url": [ | ||
"https://example.com/answer" | ||
], | ||
"answer_method": "GET", | ||
"event_url": [ | ||
"https://example.com/event" | ||
], | ||
"event_method": "POST", | ||
"machine_detection": "continue", | ||
"length_timer": 1, | ||
"ringing_timer": 1, | ||
"random_from_number": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.