Update Agheera push URL in client and tests to use production endpoint
This commit is contained in:
parent
5212bbad71
commit
8a5cdba7df
@ -1,7 +1,7 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const DEFAULT_AGHEERA_PUSH_URL = 'https://push-test.agheera.com/Telematics/Positions';
|
||||
const DEFAULT_AGHEERA_PUSH_URL = 'https://push-dhl.agheera.com/Telematics/positions';
|
||||
const DEFAULT_AGHEERA_PUSH_LOG_PATH = '/var/log/agheera_push.log';
|
||||
|
||||
let httpClientOverride = null;
|
||||
|
||||
@ -165,7 +165,7 @@ test('POST /api/locations envia posicion a Agheera para cliente 532', async () =
|
||||
assert.equal(agheeraCalls.length, 1);
|
||||
|
||||
const call = agheeraCalls[0];
|
||||
assert.equal(call.url, 'https://push-test.agheera.com/Telematics/Positions');
|
||||
assert.equal(call.url, 'https://push-dhl.agheera.com/Telematics/positions');
|
||||
assert.equal(call.options.headers.apiKey, 'test-api-key');
|
||||
|
||||
const payload = JSON.parse(call.options.body);
|
||||
|
||||
@ -1204,7 +1204,7 @@ test('POST /api/trips/:id/status cliente 532 envia posicion a Agheera en estado
|
||||
assert.equal(agheeraCalls.length, 1);
|
||||
|
||||
const call = agheeraCalls[0];
|
||||
assert.equal(call.url, 'https://push-test.agheera.com/Telematics/Positions');
|
||||
assert.equal(call.url, 'https://push-dhl.agheera.com/Telematics/positions');
|
||||
assert.equal(call.options.method, 'POST');
|
||||
assert.equal(call.options.headers.apiKey, 'test-api-key');
|
||||
assert.equal(call.options.headers['Content-Type'], 'application/json');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user