Sign inSign up

kellybrazil/microtest

By kellybrazil

Updated about 7 years ago

Simple microservice simulator for load balancer and WAF testing.

Image
1

411

kellybrazil/microtest repository overview

Source available at https://github.com/kellyjonbrazil/microtest

This is a very simple web server running on port 8080 that simulates a microservice. It replies with the server's hostname, server's IP address, the remote IP address, local server time, and the URI path from the client:

hostname: 04909ed3d467   ip: 172.17.0.3   remote: 172.17.0.1   time: Fri Aug  9 16:17:39 2019   path: /request_number_65

If the client request uses the POST method instead of GET, the output will be Content-Type: application/json and serialized in JSON:

{"hostname": "04909ed3d467", "ip": "172.17.0.3", "remote": "172.17.0.1", "time": "Fri Aug  9 16:19:13 2019", "path": "/request_number_100"}

This allows you to simply test load balancer and WAF configurations in microservices environments.

Usage:

docker run -d --rm -p 8080:8080 kellybrazil/microtest

Client requests:

curl 1.2.3.4:8080/request_number_1

or

curl -X POST 1.2.3.4:8080/request_number_2

Tag summary

Content type

Image

Digest

Size

32.3 MB

Last updated

about 7 years ago

docker pull kellybrazil/microtest