Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orlangure/gnomock-test-image
Test server code for Gnomock tests
https://github.com/orlangure/gnomock-test-image
docker gnomock go
Last synced: about 1 month ago
JSON representation
Test server code for Gnomock tests
- Host: GitHub
- URL: https://github.com/orlangure/gnomock-test-image
- Owner: orlangure
- License: mit
- Created: 2020-03-13T20:55:58.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-15T19:52:06.000Z (over 2 years ago)
- Last Synced: 2024-10-28T09:56:03.977Z (3 months ago)
- Topics: docker, gnomock, go
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gnomock-test-image
This repository includes a docker image used for
[Gnomock](https://github.com/orlangure/gnomock) tests.It is a simple HTTP server that responds with "80" to `GET /` on port 80, and
"8080" to `GET /` on port 8080.When started with environment variable `GNOMOCK_TEST_1`, it replies with its
value to `GET /env1` on port 80.When started with environment variable `GNOMOCK_TEST_2`, it replies with its
value to `GET /env2` on port 8080.When started with environment variable `GNOMOCK_REQUEST_TARGET`, it performs a
`GET` request to that URL (i.e `http://container-name`) and returns the same
status code it received from the target, every time it receives a new request
to `/request` endpoint.