From 38d2120c3589376034bc5016997e9ed10581b6a6 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Wed, 6 Nov 2024 16:59:17 +0100 Subject: [PATCH] fix(api client): Fixed localhost URL issue in test.client.ts --- changelog.md | 5 +++++ test/test.apiclient.ts | 2 +- ts/00_commitinfo_data.ts | 2 +- ts_web/00_commitinfo_data.ts | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 9e3aeb1..012d817 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2024-11-06 - 4.3.8 - fix(api client) +Fixed localhost URL issue in test.client.ts + +- Changed the cloudlyUrl in test.client.ts from 'localhost' to '127.0.0.1' to ensure consistency in network requests. + ## 2024-11-06 - 4.3.7 - fix(tests) Refactored test setup for consistency and isolated config initialization. diff --git a/test/test.apiclient.ts b/test/test.apiclient.ts index f8a17ee..cb82268 100644 --- a/test/test.apiclient.ts +++ b/test/test.apiclient.ts @@ -33,7 +33,7 @@ tap.preTask('should create a new machine user for testing', async () => { tap.test('should create a new cloudlyApiClient', async () => { testClient = new cloudlyApiClient.CloudlyApiClient({ registerAs: 'api', - cloudlyUrl: `http://localhost:${helpers.testCloudlyConfig.publicPort}`, + cloudlyUrl: `http://127.0.0.1:${helpers.testCloudlyConfig.publicPort}`, }); await testClient.start(); expect(testClient).toBeTruthy(); diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index f95befd..9c0203b 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/cloudly', - version: '4.3.7', + version: '4.3.8', description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.' } diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index f95befd..9c0203b 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/cloudly', - version: '4.3.7', + version: '4.3.8', description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.' }