feat: simplify input parameters and docs

This commit is contained in:
Richard Simpson 2019-09-20 17:56:08 -05:00
parent 9c32e02d93
commit 19c0b21a1d
No known key found for this signature in database
GPG key ID: 0CECAF50D013D1E2
6 changed files with 80 additions and 80 deletions

View file

@ -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 () => {