Traffic split - canary deployment

This commit is contained in:
Vidya Reddy
2022-07-20 12:34:31 +05:30
parent 634370ab70
commit 534896c172
7 changed files with 43 additions and 22 deletions
+2 -5
View File
@@ -289,15 +289,12 @@ describe('Kubectl class', () => {
it('gets resource', async () => {
const resourceType = 'type'
const name = 'name'
const annotations: {[key: string]: string} = {}
expect(
await kubectl.getResource(resourceType, name, annotations)
).toBe(execReturn)
expect(await kubectl.getResource(resourceType, name)).toBe(execReturn)
expect(exec.getExecOutput).toBeCalledWith(
kubectlPath,
[
'get',
`${resourceType}/${name}/${annotations}`,
`${resourceType}/${name}`,
'-o',
'json',
'--namespace',