Fixed invocation of registry. Basic run works hardcoded

Console logs are left in place and should be deleted
This commit is contained in:
Nikola Jokic
2022-09-21 13:54:25 +02:00
parent 5f0dc3f3b6
commit f400db92cc
3 changed files with 72 additions and 34 deletions

View File

@@ -0,0 +1,14 @@
import { buildContainer } from '../src/k8s'
import { TestHelper } from './test-setup'
jest.useRealTimers()
describe('container build', () => {
beforeAll(async () => {
process.env['ACTIONS_RUNNER_KUBERNETES_NAMESPACE'] = 'default'
})
it('should finish without throwing an exception', async () => {
await expect(buildContainer()).resolves.not.toThrow()
})
})