This commit is contained in:
2017-07-16 12:04:35 +02:00
parent 91d7f583e2
commit dd35e5d7d2
8 changed files with 521 additions and 1620 deletions

View File

@ -8,29 +8,27 @@ let testDockersock: Dockersock;
tap.test("should create a new Dockersock instance", async () => {
testDockersock = new Dockersock();
return expect(testDockersock).to.be.instanceof(Dockersock);
}).catch(tap.threw);
})
tap.test("should list containers", async () => {
await testDockersock.listContainers()
.then(async (dataArg) => {
console.log(dataArg);
});
}).catch(tap.threw);
let data = await testDockersock.listContainers()
console.log(data)
})
tap.test("should list detailed containers", async () => {
await testDockersock.listContainersDetailed()
.then(async (dataArg) => {
console.log(dataArg);
});
}).catch(tap.threw);
let data = await testDockersock.listContainersDetailed()
console.log(data)
})
tap.test("should pull an image from imagetag", async () => {
await testDockersock.pullImage("hosttoday/ht-docker-node:npmci")
}).catch(tap.threw);
})
/*tap.test("should return a change Objservable", async () => {
tap.test("should return a change Objservable", async () => {
let myObservable = testDockersock.getChangeObservable();
testDockersock.endRequests();
let testPromise = observableToPromise(myObservable)
return await expect(testPromise).to.eventually.be.fulfilled
}).catch(tap.threw);*/
})
tap.start()