tests for disabled output-env-credentials

This commit is contained in:
Michael Lehmann
2025-06-05 13:55:47 -07:00
committed by kellertk
parent 3991c2aa73
commit 3b040fe7c1
5 changed files with 50 additions and 2 deletions
+5
View File
@@ -45,4 +45,9 @@ describe('Configure AWS Credentials cleanup', {}, () => {
cleanup();
expect(core.setFailed).toHaveBeenCalled();
});
it(`doesn't export credentials as empty env variables if asked not to`, {}, () => {
vi.spyOn(core, 'getInput').mockImplementation(mocks.getInput(mocks.NO_ENV_CREDS_INPUTS));
cleanup();
expect(core.exportVariable).toHaveBeenCalledTimes(0);
})
});