bruno/packages/bruno-lang/v2/tests/fixtures/collection.json
Sanjai Kumar 4d820af4e0
Improved Feat/wsse auth (#3172)
* adding wsse auth logic

* adding wsse auth logic to electron

* adding wsse auth formatting

* Refactoring WSSE 'secret' to 'password'

* Incorporating PR feedback

* Removed unused packages from package.json

* Fixed issue caused when resolving merge conflicts and added new route to test wsse

* Removed deprecated package usages from bruno-cli

* Fixed tests

---------

Co-authored-by: dwolter-emarsys <dylan.wolter@emarsys.com>
2024-09-23 17:46:31 +05:30

70 lines
1.3 KiB
JSON

{
"meta": {
"type": "collection"
},
"headers": [
{
"name": "content-type",
"value": "application/json",
"enabled": true
},
{
"name": "Authorization",
"value": "Bearer 123",
"enabled": true
},
{
"name": "transaction-id",
"value": "{{transactionId}}",
"enabled": false
}
],
"auth": {
"mode": "none",
"basic": {
"username": "john",
"password": "secret"
},
"bearer": {
"token": "123"
},
"digest": {
"username": "john",
"password": "secret"
},
"wsse": {
"username": "john",
"password": "secret"
}
},
"vars": {
"req": [
{
"name": "departingDate",
"value": "2020-01-01",
"enabled": true,
"local": false
},
{
"name": "returningDate",
"value": "2020-01-02",
"enabled": false,
"local": false
}
],
"res": [
{
"name": "transactionId",
"value": "$res.body.transactionId",
"enabled": false,
"local": false
}
]
},
"script": {
"req": "console.log(\"In Collection pre Request Script\");",
"res": "console.log(\"In Collection post Request Script\");"
},
"docs": "This request needs auth token to be set in the headers."
}