fix(core): update

This commit is contained in:
2019-09-13 16:57:21 +02:00
parent 87ff0f01bb
commit 55f45b1c3a
4 changed files with 19 additions and 12 deletions

View File

@ -1,6 +1,5 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as docker from '../ts/index';
import { DockerService } from '../ts/index';
let testDockerHost: docker.DockerHost;
@ -94,8 +93,11 @@ tap.test('should create a service', async () => {
labels: {},
contentArg: '{"hi": "wow"}'
});
const testService = await DockerService.createService(testDockerHost, {
image: 'nginx:latest',
const testImage = await docker.DockerImage.createFromRegistry(testDockerHost, {
imageUrl: 'nginx:latest'
});
const testService = await docker.DockerService.createService(testDockerHost, {
image: testImage,
labels: {
'testlabel': 'hi'
},