chore: I really should PR changes
This commit is contained in:
@@ -198,19 +198,15 @@ describe('exportSecrets', () => {
|
||||
function mockVaultData(data, version='2') {
|
||||
switch(version) {
|
||||
case '1':
|
||||
got.mockResolvedValue({
|
||||
body: JSON.stringify({
|
||||
data
|
||||
})
|
||||
got.extend.mockReturnValue({
|
||||
get: async () => ({ body: JSON.stringify({ data }) })
|
||||
});
|
||||
break;
|
||||
case '2':
|
||||
got.mockResolvedValue({
|
||||
body: JSON.stringify({
|
||||
data: {
|
||||
got.extend.mockReturnValue({
|
||||
get: async () => ({ body: JSON.stringify({ data: {
|
||||
data
|
||||
}
|
||||
})
|
||||
} }) })
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ describe('authenticate with approle', () => {
|
||||
.mockReturnValueOnce('ns2');
|
||||
});
|
||||
|
||||
it.only('authenticate with approle', async() => {
|
||||
it('authenticate with approle', async() => {
|
||||
mockInput('test secret');
|
||||
|
||||
await exportSecrets();
|
||||
|
||||
Reference in New Issue
Block a user