fix(test): Enhance test helpers with dynamic Hetzner token retrieval.
This commit is contained in:
@ -25,6 +25,13 @@ export const createCloudly = async () => {
|
||||
mongoDescriptor: await smartmongo.getMongoDescriptor(),
|
||||
s3Descriptor: await smarts3.getS3Descriptor(),
|
||||
sslMode: 'none',
|
||||
...(() => {
|
||||
if (process.env.NPMCI_SECRET01) {
|
||||
return {
|
||||
hetznerToken: process.env.NPMCI_SECRET01
|
||||
}
|
||||
}
|
||||
})()
|
||||
};
|
||||
const cloudlyInstance = new cloudly.Cloudly(cloudlyConfig);
|
||||
return cloudlyInstance;
|
||||
|
Reference in New Issue
Block a user