Update Agheera push URL in client and tests to use production endpoint

This commit is contained in:
abiandev 2026-06-01 17:09:27 +02:00
parent 5212bbad71
commit 8a5cdba7df
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
const fs = require('fs'); const fs = require('fs');
const path = require('path'); 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'; const DEFAULT_AGHEERA_PUSH_LOG_PATH = '/var/log/agheera_push.log';
let httpClientOverride = null; let httpClientOverride = null;

View File

@ -165,7 +165,7 @@ test('POST /api/locations envia posicion a Agheera para cliente 532', async () =
assert.equal(agheeraCalls.length, 1); assert.equal(agheeraCalls.length, 1);
const call = agheeraCalls[0]; 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'); assert.equal(call.options.headers.apiKey, 'test-api-key');
const payload = JSON.parse(call.options.body); const payload = JSON.parse(call.options.body);

View File

@ -1204,7 +1204,7 @@ test('POST /api/trips/:id/status cliente 532 envia posicion a Agheera en estado
assert.equal(agheeraCalls.length, 1); assert.equal(agheeraCalls.length, 1);
const call = agheeraCalls[0]; 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.method, 'POST');
assert.equal(call.options.headers.apiKey, 'test-api-key'); assert.equal(call.options.headers.apiKey, 'test-api-key');
assert.equal(call.options.headers['Content-Type'], 'application/json'); assert.equal(call.options.headers['Content-Type'], 'application/json');