Enhance Cloudly Configuration and Testing Setup
- Updated README to include architecture overview and details on components. - Changed import paths in test helpers and test files to use the new Git zone packages. - Modified S3 bucket name in test setup for consistency. - Updated CloudlyConfig class to use more descriptive environment variable names for MongoDB and S3 configuration. - Adjusted ImageManager to retrieve the S3 bucket name from the configuration instead of hardcoding it.
This commit is contained in:
		| @@ -5,13 +5,13 @@ import * as cloudly from '../../ts/index.js'; | ||||
|  | ||||
| const stopFunctions: Array<() => Promise<void>> = []; | ||||
|  | ||||
| const tapToolsNodeMod = await import('@push.rocks/tapbundle/node'); | ||||
| const tapToolsNodeMod = await import('@git.zone/tstest/tapbundle_node'); | ||||
| const smartmongo = await tapToolsNodeMod.tapNodeTools.createSmartmongo(); | ||||
| stopFunctions.push(async () => { | ||||
|   await smartmongo.stopAndDumpToDir('./.nogit/mongodump'); | ||||
| }); | ||||
| const smarts3 = await tapToolsNodeMod.tapNodeTools.createSmarts3(); | ||||
| await smarts3.createBucket('cloudly-test'); | ||||
| await smarts3.createBucket('cloudly_test_bucket'); | ||||
| stopFunctions.push(async () => { | ||||
|   await smarts3.stop(); | ||||
| }); | ||||
| @@ -23,7 +23,9 @@ export const testCloudlyConfig: cloudly.ICloudlyConfig = { | ||||
|   publicUrl: '127.0.0.1', | ||||
|   publicPort: '8080', | ||||
|   mongoDescriptor: await smartmongo.getMongoDescriptor(), | ||||
|   s3Descriptor: await smarts3.getS3Descriptor(), | ||||
|   s3Descriptor: await smarts3.getS3Descriptor({ | ||||
|     bucketName: 'cloudly_test_bucket' | ||||
|   }), | ||||
|   sslMode: 'none', | ||||
|   ...(() => { | ||||
|     if (process.env.NPMCI_SECRET01) { | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| import { tap, expect } from '@push.rocks/tapbundle'; | ||||
| import { tap, expect } from '@git.zone/tstest/tapbundle'; | ||||
| import * as helpers from './helpers/index.js'; | ||||
|  | ||||
| import * as cloudly from '../ts/index.js'; | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| import { expect, tap } from '@push.rocks/tapbundle'; | ||||
| import { expect, tap } from '@git.zone/tstest/tapbundle'; | ||||
| import * as helpers from './helpers/index.js'; | ||||
|  | ||||
| import * as cloudly from '../ts/index.js'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user