Skip to content

Small container image to test http requests and responses.

License

Notifications You must be signed in to change notification settings

testainers/httpbucket

Repository files navigation

Testainers httpbucket

Build With Love Version Licence Build Coverage Report

httpucket is a powerful microservice designed specifically for testing HTTP requests with a wide range of request URLs. It serves as a valuable tool for developers, quality assurance teams, and anyone involved in API development. By providing a flexible and user-friendly interface, HTTPBucket simplifies the process of testing and validating various types of HTTP requests.

Funding

Your contribution will help drive the development of quality tools for the Flutter and Dart developer community. Any amount will be appreciated. Thank you for your continued support!

BuyMeACoffee

PIX

Sua contribuição ajudará a impulsionar o desenvolvimento de ferramentas de qualidade para a comunidade de desenvolvedores Flutter e Dart. Qualquer quantia será apreciada. Obrigado pelo seu apoio contínuo!

PIX

Environment variables

Variable Description Default
HTTPBUCKET_SSL_CERT TODO cert.pem
HTTPBUCKET_SSL_KEY TODO key.pem

How to use

docker run -d --rm --name httpbucket -p 8080:8080 -p 8443:8443 testainers/httpbucket:latest

How to test

curl http://localhost:8080/methods
curl -k https://localhost:8443/methods

Build

docker build . -f src/main/docker/Dockerfile.native-micro --no-cache -t httpbucket

Run

docker run --rm --name httpbucket -p 8080:8080 -p 8443:8443 -d httpbucket

Self-signed certificate

openssl req \
    -newkey rsa:2048 \
    -new \
    -nodes \
    -x509 \
    -days 3650 \
    -keyout key.pem \
    -out cert.pem \
    -subj "/C=US/ST=SC/L=Hometown/O=IT/emailAddress=root@localhost/CN=localhost"

Extra endpoints

  • /openapi
  • /swagger-ui
  • /health
  • /metrics
  • /info