fix(core): update

This commit is contained in:
2020-01-19 11:57:41 +01:00
parent a33b218bc4
commit 7c813195bf
6 changed files with 209 additions and 68 deletions

View File

@ -1,10 +1,30 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as kubernetes from '../ts/index';
let testClient = kubernetes.KubeClient;
let testClient: kubernetes.KubeClient;
tap.test('first test', async () => {
testClient = new kubernetes.KubeClient();
});
tap.test('should init the client', async () => {
await testClient.init();
})
tap.test('should be able to set a certificate', async () => {
await testClient.setSslSecret('central.eu', {
created: 123456,
csr: '',
domainName: '*.central.eu',
id: 'hu7e6rw',
privateKey: 'wowza',
publicKey: 'hellothere'
})
})
tap.test('should get a secret', async () => {
const result = await testClient.getSslSecret('central.eu')
console.log(result);
})
tap.start();