From 05523dc7a1e3656049586ce8bd84bf74a0bc5ff8 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Thu, 4 Jul 2024 18:39:27 +0200 Subject: [PATCH] fix(test): Update endpoint configuration in tests to use environment variable --- changelog.md | 56 ++++++++++++++++++++++++++++++++++++++++ qenv.yml | 3 ++- test/test.trash.ts | 2 +- test/test.ts | 2 +- ts/00_commitinfo_data.ts | 4 +-- 5 files changed, 62 insertions(+), 5 deletions(-) create mode 100644 changelog.md diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..cab755a --- /dev/null +++ b/changelog.md @@ -0,0 +1,56 @@ +# Changelog + +## 2024-07-04 - 3.0.21 - fix(test) +Update endpoint configuration in tests to use environment variable + +- Modified `qenv.yml` to include `S3_ENDPOINT` as a required environment variable. +- Updated test files to fetch `S3_ENDPOINT` from environment instead of hardcoding. + +## 2024-06-19 - 3.0.20 - Fix and Stability Updates +Improved overall stability and consistency. + +## 2024-06-18 - 3.0.18 - Delete Functions Consistency +Ensured more consistency between delete methods and trash behavior. + +## 2024-06-17 - 3.0.17 to 3.0.16 - Fix and Update +Routine updates and fixes performed. + +## 2024-06-11 - 3.0.15 to 3.0.14 - Fix and Update +Routine updates and fixes performed. + +## 2024-06-10 - 3.0.13 - Trash Feature Completion +Finished work on trash feature. + +## 2024-06-09 - 3.0.12 - Fix and Update +Routine updates and fixes performed. + +## 2024-06-08 - 3.0.11 to 3.0.10 - Fix and Update +Routine updates and fixes performed. + +## 2024-06-03 - 3.0.10 - Fix and Update +Routine updates and fixes performed. + +## 2024-05-29 - 3.0.9 - Update Description +Updated project description. + +## 2024-05-27 - 3.0.8 to 3.0.6 - Pathing and Core Updates +Routine updates and fixes performed. + - S3 paths' pathing differences now correctly handled with a reducePath method. + +## 2024-05-21 - 3.0.5 to 3.0.4 - Fix and Update +Routine updates and fixes performed. + +## 2024-05-17 - 3.0.3 to 3.0.2 - Fix and Update +Routine updates and fixes performed. + +## 2024-05-17 - 3.0.0 - Major Release +Introduced breaking changes in core and significant improvements. + +## 2024-05-05 - 2.0.5 - Breaking Changes +Introduced breaking changes in core functionality. + +## 2024-04-14 - 2.0.4 - TSConfig Update +Updated TypeScript configuration. + +## 2024-01-01 - 2.0.2 - Organization Scheme Update +Switched to the new organizational scheme. diff --git a/qenv.yml b/qenv.yml index 843591d..1c39a4f 100644 --- a/qenv.yml +++ b/qenv.yml @@ -1,3 +1,4 @@ required: - S3_KEY - - S3_SECRET \ No newline at end of file + - S3_SECRET + - S3_ENDPOINT \ No newline at end of file diff --git a/test/test.trash.ts b/test/test.trash.ts index 01573f9..7817702 100644 --- a/test/test.trash.ts +++ b/test/test.trash.ts @@ -13,7 +13,7 @@ tap.test('should create a valid smartbucket', async () => { testSmartbucket = new smartbucket.SmartBucket({ accessKey: await testQenv.getEnvVarOnDemand('S3_KEY'), accessSecret: await testQenv.getEnvVarOnDemand('S3_SECRET'), - endpoint: 's3.eu-central-1.wasabisys.com', + endpoint: await testQenv.getEnvVarOnDemand('S3_ENDPOINT'), }); expect(testSmartbucket).toBeInstanceOf(smartbucket.SmartBucket); myBucket = await testSmartbucket.getBucketByName('testzone'); diff --git a/test/test.ts b/test/test.ts index f9c9c4a..f43abd2 100644 --- a/test/test.ts +++ b/test/test.ts @@ -13,7 +13,7 @@ tap.test('should create a valid smartbucket', async () => { testSmartbucket = new smartbucket.SmartBucket({ accessKey: await testQenv.getEnvVarOnDemand('S3_KEY'), accessSecret: await testQenv.getEnvVarOnDemand('S3_SECRET'), - endpoint: 's3.eu-central-1.wasabisys.com', + endpoint: await testQenv.getEnvVarOnDemand('S3_ENDPOINT'), }); expect(testSmartbucket).toBeInstanceOf(smartbucket.SmartBucket); myBucket = await testSmartbucket.getBucketByName('testzone'); diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 4a739af..10f91f0 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -1,8 +1,8 @@ /** - * autocreated commitinfo by @pushrocks/commitinfo + * autocreated commitinfo by @push.rocks/commitinfo */ export const commitinfo = { name: '@push.rocks/smartbucket', - version: '3.0.20', + version: '3.0.21', description: 'A TypeScript library offering simple and cloud-agnostic object storage with advanced features like bucket creation, file and directory management, and data streaming.' }