tests for disabled output-env-credentials

This commit is contained in:
Michael Lehmann authored and kellertk committed 2026-01-27 15:43:50 -08:00
1 parent 3991c2aa73
commit 3b040fe7c1
5 files changed
+50 -2

No files matched your search

+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);
})
});