18 lines
529 B
TypeScript
18 lines
529 B
TypeScript
// Disable TLS certificate validation for testing
|
|
Deno.env.set('NODE_TLS_REJECT_UNAUTHORIZED', '0');
|
|
|
|
import { CloudlyConnector } from '../ts/connector.cloudly/cloudlyconnector.ts';
|
|
|
|
Deno.test('should be able to announce a container to cloudly', async () => {
|
|
const cloudlyConnector = new CloudlyConnector(null);
|
|
await cloudlyConnector.announceDockerContainer(
|
|
{
|
|
registryUrl: 'registry.losssless.com',
|
|
tag: 'testcontainer',
|
|
version: 'x.x.x',
|
|
labels: [],
|
|
},
|
|
'cloudly.lossless.one'
|
|
);
|
|
});
|