mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-05-06 10:04:45 +00:00
chore: update tests to use got correctly
This commit is contained in:
parent
333e4389dc
commit
3d4cea598b
4 changed files with 14 additions and 24 deletions
|
|
@ -14,12 +14,11 @@ const got = require('got');
|
|||
headers: {
|
||||
'X-Vault-Token': 'testtoken',
|
||||
},
|
||||
body: {
|
||||
json: {
|
||||
data: {
|
||||
secret: 'SUPERSECRET',
|
||||
},
|
||||
},
|
||||
json: true,
|
||||
});
|
||||
|
||||
await got(`http://${process.env.VAULT_HOST}:${process.env.VAULT_PORT}/v1/secret/data/nested/test`, {
|
||||
|
|
@ -27,12 +26,11 @@ const got = require('got');
|
|||
headers: {
|
||||
'X-Vault-Token': 'testtoken',
|
||||
},
|
||||
body: {
|
||||
json: {
|
||||
data: {
|
||||
otherSecret: 'OTHERSUPERSECRET',
|
||||
},
|
||||
},
|
||||
json: true,
|
||||
});
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue