mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-04-15 08:16:53 +00:00
feat: simplify input parameters and docs
This commit is contained in:
parent
9c32e02d93
commit
19c0b21a1d
6 changed files with 80 additions and 80 deletions
|
|
@ -48,18 +48,18 @@ describe('integration', () => {
|
|||
jest.resetAllMocks();
|
||||
|
||||
when(core.getInput)
|
||||
.calledWith('vaultUrl')
|
||||
.calledWith('url')
|
||||
.mockReturnValue(`http://${process.env.VAULT_HOST}:${process.env.VAULT_PORT}`);
|
||||
|
||||
when(core.getInput)
|
||||
.calledWith('vaultToken')
|
||||
.calledWith('token')
|
||||
.mockReturnValue('testtoken');
|
||||
});
|
||||
|
||||
function mockInput(key) {
|
||||
function mockInput(secrets) {
|
||||
when(core.getInput)
|
||||
.calledWith('keys')
|
||||
.mockReturnValue(key);
|
||||
.calledWith('secrets')
|
||||
.mockReturnValue(secrets);
|
||||
}
|
||||
|
||||
it('get simple secret', async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue