fix secrets stored in JSON format, revert #473 (#478)

This commit is contained in:
John-Michael Faircloth
2023-07-13 14:00:44 -05:00
committed by GitHub
parent 65d7a12a80
commit 0010502df7
3 changed files with 2 additions and 19 deletions

View File

@@ -223,10 +223,7 @@ describe('exportSecrets', () => {
it('JSON data secret retrieval', async () => {
const jsonData = {"x":1,"y":2};
// for secrets stored in Vault as pure JSON, we call stringify twice
// and remove the surrounding quotes
let result = JSON.stringify(JSON.stringify(jsonData));
result = result.substring(1, result.length - 1);
let result = JSON.stringify(jsonData);
mockInput('test key');
mockVaultData({