mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-09 15:30:20 +08:00
BumpUp @actions/core, fixed failing test case
This commit is contained in:
parent
21d3af2857
commit
72bc167726
@ -376,7 +376,7 @@ test("deployment - deploy() - Annotate resources failed", async () => {
|
|||||||
const consoleOutputSpy = jest.spyOn(process.stdout, "write").mockImplementation();
|
const consoleOutputSpy = jest.spyOn(process.stdout, "write").mockImplementation();
|
||||||
//Invoke and assert
|
//Invoke and assert
|
||||||
await expect(deployment.deploy(kubeCtl, ['manifests/deployment.yaml'], undefined)).resolves.not.toThrowError();
|
await expect(deployment.deploy(kubeCtl, ['manifests/deployment.yaml'], undefined)).resolves.not.toThrowError();
|
||||||
expect(consoleOutputSpy).toHaveBeenNthCalledWith(1, '##[warning]kubectl annotate failed' + os.EOL)
|
expect(consoleOutputSpy).toHaveBeenNthCalledWith(1, '::warning::kubectl annotate failed' + os.EOL)
|
||||||
});
|
});
|
||||||
|
|
||||||
test("utility - getWorkflowFilePath() - Get workflow file path under API failure", async () => {
|
test("utility - getWorkflowFilePath() - Get workflow file path under API failure", async () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user