mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-26 14:49:26 +08:00
Traffic split - canary deployment
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user