-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialise headers for each K6 request (#133)
* Initialise headers for each K6 request * Bump dependencies
- Loading branch information
Showing
8 changed files
with
265 additions
and
1,182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "5f0fab53-3ac7-4151-902d-b0c2855e8eb4", | ||
"name": "98 - K6 Header", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | ||
"_exporter_id": "238711" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "Widgets", | ||
"item": [ | ||
{ | ||
"name": "Get Widget", | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"exec": [], | ||
"type": "text/javascript", | ||
"packages": {} | ||
} | ||
} | ||
], | ||
"request": { | ||
"auth": { | ||
"type": "bearer", | ||
"bearer": [ | ||
{ | ||
"key": "token", | ||
"value": "access_token", | ||
"type": "string" | ||
} | ||
] | ||
}, | ||
"method": "GET", | ||
"header": [ | ||
{ | ||
"key": "X-Correlation-Id", | ||
"value": "{{$randomUUID}}", | ||
"type": "text" | ||
}, | ||
{ | ||
"key": "TimeStamp", | ||
"value": "{{timestamp}}", | ||
"type": "text" | ||
}, | ||
{ | ||
"key": "Content-Signature", | ||
"value": "{{signature_key}}", | ||
"type": "text" | ||
} | ||
], | ||
"url": { | ||
"raw": "http://localhost:4010/widget", | ||
"host": [ | ||
"http://localhost:4010" | ||
], | ||
"path": [ | ||
"widget" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
], | ||
"auth": { | ||
"type": "bearer", | ||
"bearer": [ | ||
{ | ||
"key": "token", | ||
"value": "12345678", | ||
"type": "string" | ||
} | ||
] | ||
}, | ||
"event": [ | ||
{ | ||
"listen": "prerequest", | ||
"script": { | ||
"type": "text/javascript", | ||
"packages": {}, | ||
"exec": [ | ||
"" | ||
] | ||
} | ||
}, | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"type": "text/javascript", | ||
"packages": {}, | ||
"exec": [ | ||
"" | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Widget", | ||
"item": [ | ||
{ | ||
"name": "Create Widget", | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"exec": [], | ||
"type": "text/javascript", | ||
"packages": {} | ||
} | ||
} | ||
], | ||
"request": { | ||
"auth": { | ||
"type": "noauth" | ||
}, | ||
"method": "POST", | ||
"header": [ | ||
{ | ||
"key": "X-Correlation-Id", | ||
"value": "{{$randomUUID}}", | ||
"type": "text" | ||
}, | ||
{ | ||
"key": "Content-Signature", | ||
"value": "{{signature_key}}", | ||
"type": "text" | ||
} | ||
], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"isLogin\": true,\n \"widget_id\": \"0\",\n \"callFrom\": \"my-tax\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "http://localhost:4010/widget", | ||
"host": [ | ||
"http://localhost:4010" | ||
], | ||
"path": [ | ||
"widget" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.