109 lines
3.9 KiB
JSON
109 lines
3.9 KiB
JSON
{
|
|
"v": 2,
|
|
"name": "coll-v2",
|
|
"folders": [
|
|
{
|
|
"v": 2,
|
|
"name": "coll-v2-child",
|
|
"folders": [],
|
|
"requests": [
|
|
{
|
|
"v": "2",
|
|
"endpoint": "https://echo.hoppscotch.io",
|
|
"headers": [
|
|
{
|
|
"key": "Inactive-Header",
|
|
"value": "Inactive Header",
|
|
"active": false
|
|
},
|
|
{
|
|
"key": "Authorization",
|
|
"value": "Bearer token123",
|
|
"active": true
|
|
}
|
|
],
|
|
"params": [
|
|
{
|
|
"key": "key",
|
|
"value": "value",
|
|
"active": true
|
|
},
|
|
{
|
|
"key": "inactive-key",
|
|
"value": "inactive-param",
|
|
"active": false
|
|
}
|
|
],
|
|
"name": "req-v2-II",
|
|
"method": "GET",
|
|
"preRequestScript": "",
|
|
"testScript": "pw.test(\"Asserts request params\", () => {\n pw.expect(pw.response.body.args.key).toBe(\"value\")\n pw.expect(pw.response.body.args[\"inactive-key\"]).toBe(undefined)\n})\n\npw.test(\"Asserts request headers\", () => {\n pw.expect(pw.response.body.headers[\"authorization\"]).toBe(\"Bearer token123\")\n pw.expect(pw.response.body.headers[\"inactive-header\"]).toBe(undefined)\n})",
|
|
"body": {
|
|
"contentType": null,
|
|
"body": null
|
|
},
|
|
"auth": {
|
|
"authType": "bearer",
|
|
"authActive": true,
|
|
"token": "token123"
|
|
},
|
|
"requestVariables": []
|
|
}
|
|
],
|
|
"auth": {
|
|
"authType": "inherit",
|
|
"authActive": true
|
|
},
|
|
"headers": []
|
|
}
|
|
],
|
|
"requests": [
|
|
{
|
|
"v": "2",
|
|
"endpoint": "https://echo.hoppscotch.io",
|
|
"headers": [
|
|
{
|
|
"key": "Inactive-Header",
|
|
"value": "Inactive Header",
|
|
"active": false
|
|
},
|
|
{
|
|
"key": "Authorization",
|
|
"value": "Bearer token123",
|
|
"active": true
|
|
}
|
|
],
|
|
"params": [
|
|
{
|
|
"key": "key",
|
|
"value": "value",
|
|
"active": true
|
|
},
|
|
{
|
|
"key": "inactive-key",
|
|
"value": "inactive-param",
|
|
"active": false
|
|
}
|
|
],
|
|
"name": "req-v2",
|
|
"method": "GET",
|
|
"preRequestScript": "",
|
|
"testScript": "pw.test(\"Asserts request params\", () => {\n pw.expect(pw.response.body.args.key).toBe(\"value\")\n pw.expect(pw.response.body.args[\"inactive-key\"]).toBe(undefined)\n})\n\npw.test(\"Asserts request headers\", () => {\n pw.expect(pw.response.body.headers[\"authorization\"]).toBe(\"Bearer token123\")\n pw.expect(pw.response.body.headers[\"inactive-header\"]).toBe(undefined)\n})",
|
|
"body": {
|
|
"contentType": null,
|
|
"body": null
|
|
},
|
|
"auth": {
|
|
"authType": "bearer",
|
|
"authActive": true,
|
|
"token": "token123"
|
|
},
|
|
"requestVariables": []
|
|
}
|
|
],
|
|
"auth": {
|
|
"authType": "inherit",
|
|
"authActive": true
|
|
},
|
|
"headers": []
|
|
} |