mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-07 15:16:56 +00:00
chore: I really should PR changes
This commit is contained in:
parent
ed8303ca53
commit
50ece41861
2 changed files with 7 additions and 11 deletions
|
|
@ -198,19 +198,15 @@ describe('exportSecrets', () => {
|
||||||
function mockVaultData(data, version='2') {
|
function mockVaultData(data, version='2') {
|
||||||
switch(version) {
|
switch(version) {
|
||||||
case '1':
|
case '1':
|
||||||
got.mockResolvedValue({
|
got.extend.mockReturnValue({
|
||||||
body: JSON.stringify({
|
get: async () => ({ body: JSON.stringify({ data }) })
|
||||||
data
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case '2':
|
case '2':
|
||||||
got.mockResolvedValue({
|
got.extend.mockReturnValue({
|
||||||
body: JSON.stringify({
|
get: async () => ({ body: JSON.stringify({ data: {
|
||||||
data: {
|
data
|
||||||
data
|
} }) })
|
||||||
}
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -228,7 +228,7 @@ describe('authenticate with approle', () => {
|
||||||
.mockReturnValueOnce('ns2');
|
.mockReturnValueOnce('ns2');
|
||||||
});
|
});
|
||||||
|
|
||||||
it.only('authenticate with approle', async() => {
|
it('authenticate with approle', async() => {
|
||||||
mockInput('test secret');
|
mockInput('test secret');
|
||||||
|
|
||||||
await exportSecrets();
|
await exportSecrets();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue