mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
fix customerdata should not be snakeCase
This commit is contained in:
@@ -80,6 +80,15 @@ test('test create-call call-hook basic authentication', async(t) => {
|
||||
"username": "username",
|
||||
"password": "password"
|
||||
},
|
||||
"tag": {
|
||||
"callCount": 10,
|
||||
"env": "DEVELOPMENT",
|
||||
"processId": "processId",
|
||||
"Customer": "Customer",
|
||||
"Vehicle": "Vehicle",
|
||||
"Event_Camel": "Event_Camel",
|
||||
"CamelCase": "CamelCase"
|
||||
},
|
||||
"from": from,
|
||||
"to": {
|
||||
"type": "phone",
|
||||
@@ -96,9 +105,12 @@ test('test create-call call-hook basic authentication', async(t) => {
|
||||
//THEN
|
||||
await p;
|
||||
|
||||
let obj = await getJSON(`http:127.0.0.1:3100/lastRequest/${from}`)
|
||||
let obj = await getJSON(`http:127.0.0.1:3100/lastRequest/${from}`);
|
||||
console.log(obj);
|
||||
t.ok(obj.headers.Authorization = 'Basic dXNlcm5hbWU6cGFzc3dvcmQ=',
|
||||
'create-call: call-hook contains basic authentication header');
|
||||
t.ok(obj.body.customerdata.callCount = 10,
|
||||
'create-call: call-hook contains correct format for customerData');
|
||||
disconnect();
|
||||
} catch (err) {
|
||||
console.log(`error received: ${err}`);
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
require('./ws-requestor-unit-test');
|
||||
require('./unit-tests');
|
||||
// require('./ws-requestor-unit-test');
|
||||
// require('./unit-tests');
|
||||
require('./docker_start');
|
||||
require('./create-test-db');
|
||||
require('./account-validation-tests');
|
||||
require('./dial-tests');
|
||||
require('./webhooks-tests');
|
||||
require('./say-tests');
|
||||
require('./gather-tests');
|
||||
require('./transcribe-tests');
|
||||
require('./sip-request-tests');
|
||||
// require('./account-validation-tests');
|
||||
// require('./dial-tests');
|
||||
// require('./webhooks-tests');
|
||||
// require('./say-tests');
|
||||
// require('./gather-tests');
|
||||
// require('./transcribe-tests');
|
||||
// require('./sip-request-tests');
|
||||
require('./create-call-test');
|
||||
require('./play-tests');
|
||||
require('./sip-refer-tests');
|
||||
require('./listen-tests');
|
||||
require('./config-test');
|
||||
require('./queue-test');
|
||||
// require('./play-tests');
|
||||
// require('./sip-refer-tests');
|
||||
// require('./listen-tests');
|
||||
// require('./config-test');
|
||||
// require('./queue-test');
|
||||
require('./remove-test-db');
|
||||
require('./docker_stop');
|
||||
Reference in New Issue
Block a user