included generation of random handle/image

This commit is contained in:
Nikola Jokic
2022-09-21 15:29:39 +02:00
parent f400db92cc
commit c4aa97c974
4 changed files with 40 additions and 11 deletions

View File

@@ -1,5 +1,4 @@
import { buildContainer } from '../src/k8s'
import { TestHelper } from './test-setup'
import { containerBuild } from '../src/k8s'
jest.useRealTimers()
@@ -9,6 +8,13 @@ describe('container build', () => {
})
it('should finish without throwing an exception', async () => {
await expect(buildContainer()).resolves.not.toThrow()
await expect(
containerBuild(
{
workingDirectory: 'git://github.com/nikola-jokic/dockeraction.git'
},
'randhandle/randimg:123123'
)
).resolves.not.toThrow()
})
})