HUB
Sign inSign up

pythonicshahdev/boomi-loadtest-graphql-target

By pythonicshahdev

โ€ขUpdated 20 days ago

Image
0

328

pythonicshahdev/boomi-loadtest-graphql-target repository overview

โ ๐Ÿงช boomi-loadtest-graphql-target

A small GraphQL API to practise load testing on. It serves fixed, fake customer and product data, so you can hammer it without hurting anything and without any credentials. Part of the Boomi Load Testing Toolkitโ .

๐Ÿ›‘ This is a demo target, not a production service. Don't expose it to the internet.

โ โœจ What it serves

EndpointWhat it does
๐Ÿ“ฎ POST /graphqlGraphQL (Strawberry on FastAPI)
๐Ÿ’“ GET /pingreturns {"status": "ok"}, handy for health checks

Queries you can try:

QueryReturns
customers(limit)a list of customers
customer(customerId)one customer
products(limit)a list of products
product(materialNumber)one product

It listens on port 8001.

โ ๐Ÿ Try it in 10 seconds

docker run --rm -p 8011:8001 pythonicshahdev/boomi-loadtest-graphql-target:latest

In another terminal:

curl -s localhost:8011/graphql -H 'content-type: application/json' \
  -d '{"query":"{ customers(limit: 2) { customerId } }"}'

You should get back {"data":{"customers":[{"customerId":"CUST-000001"},{"customerId":"CUST-000002"}]}}. โœ…

โ ๐Ÿš€ Load test it

The toolkit includes ready-made GraphQL test plans and a dashboard:

git clone https://github.com/pythonicsshahdev/boomi-load-testing-toolkit
cd boomi-load-testing-toolkit
./setup.sh

โ ๐Ÿท๏ธ Tags and platforms

TagMeaning
latestthe newest release
YYYY-MM-DDa pinned release

๐Ÿ–ฅ๏ธ Multi-arch: linux/amd64 and linux/arm64.

โ ๐Ÿ“„ Source and license

https://github.com/pythonicsshahdev/boomi-load-testing-toolkitโ , released under the MIT license.

Tag summary

Content type

Image

Digest

sha256:95934cd65โ€ฆ

Size

63 MB

Last updated

20 days ago

docker pull pythonicshahdev/boomi-loadtest-graphql-target