This loadtests the jwt decoding logic. For this it adds an optional `-k`(kind) parameter to `postgrest-loadtest` and `postgrest-loadtest-against`. Old kind (default): ``` postgrest-loadtest -k mixed postgrest-loadtest-against -k mixed ``` New kind: ``` postgrest-loadtest -k jwt postgrest-loadtest-against -k jwt ``` Internally it uses a dynamically generated targets file using python which looks like: ``` GET http://postgrest/authors_only Authorization: Bearer <jwt> GET http://postgrest/authors_only Authorization: Bearer <another-jwt> ... ``` Then this is used to run vegeta with the `-lazy` option.
28 lines
255 B
Plaintext
28 lines
255 B
Plaintext
.DS_Store
|
|
db
|
|
dist
|
|
.cabal-sandbox
|
|
cabal.sandbox.config
|
|
hscope.out
|
|
codex.tags
|
|
.anvil
|
|
.stack-work*
|
|
tags
|
|
site
|
|
*~
|
|
*#*
|
|
.#*
|
|
*.swp
|
|
result*
|
|
dist-*
|
|
postgrest.hp
|
|
postgrest.prof
|
|
__pycache__
|
|
*.tix
|
|
coverage
|
|
.hpc
|
|
loadtest
|
|
.history
|
|
.docs-build
|
|
test/load/gen_targets.http
|