Skip to content

An example module for https://k6.io/ to get a cognito access token using USER_SRP_AUTH flow.

License

Notifications You must be signed in to change notification settings

AjayvirS/xk6-cognito

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xk6-cognito

An example module for https://k6.io/ to get a cognito access token using USER_SRP_AUTH flow.

See:

Install

Pre-built binaries

go install go.k6.io/xk6/cmd/xk6@latest
xk6 build master --with github.com/AjayvirS/xk6-cognito

./k6 run --vus 1 --duration 2s /scripts/examples/loadTest.js

Build from source

git clone https://github.com/AjayvirS/xk6-cognito.git && cd xk6-cognito
docker run --rm -v $(pwd):/scripts -it --entrypoint sh golang:1.17-alpine

cd /scripts/
go install go.k6.io/xk6/cmd/xk6@latest
xk6 build v0.32.0  --with github.com/tmieulet/xk6-cognito="/scripts"

Example

In examples, change all values with exToChange then run mkdir -p /scripts/target && xk6 run --vus 1 --duration 2s /scripts/examples/loadTest.js

About

An example module for https://k6.io/ to get a cognito access token using USER_SRP_AUTH flow.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%