From 8a5cdba7df462283234295769dce3ffb6f9e35db Mon Sep 17 00:00:00 2001 From: abiandev Date: Mon, 1 Jun 2026 17:09:27 +0200 Subject: [PATCH] Update Agheera push URL in client and tests to use production endpoint --- src/services/agheeraPushClient.js | 2 +- test/location.agheera.integration.test.js | 2 +- test/trips.status.integration.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/agheeraPushClient.js b/src/services/agheeraPushClient.js index a06c6dc..133c250 100644 --- a/src/services/agheeraPushClient.js +++ b/src/services/agheeraPushClient.js @@ -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; diff --git a/test/location.agheera.integration.test.js b/test/location.agheera.integration.test.js index 02c905d..4a84d03 100644 --- a/test/location.agheera.integration.test.js +++ b/test/location.agheera.integration.test.js @@ -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); diff --git a/test/trips.status.integration.test.js b/test/trips.status.integration.test.js index 227ab27..7320bce 100644 --- a/test/trips.status.integration.test.js +++ b/test/trips.status.integration.test.js @@ -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');