Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nais/testapp
utility testapp used for testing and debugging
https://github.com/nais/testapp
connectivity debugging-tool golang network
Last synced: about 1 month ago
JSON representation
utility testapp used for testing and debugging
- Host: GitHub
- URL: https://github.com/nais/testapp
- Owner: nais
- Created: 2018-10-08T07:37:21.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T07:16:36.000Z (9 months ago)
- Last Synced: 2024-04-08T08:31:52.354Z (9 months ago)
- Topics: connectivity, debugging-tool, golang, network
- Language: Go
- Homepage:
- Size: 236 KB
- Stars: 3
- Watchers: 8
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# testapp
## services
simple go binary that exposes the following services
* `/env` (prints all environment variables)
* `/ping(?delay=)` (returns "pong\n" and HTTP 200. Valid durations include 10s, 6m, 9h etc, and will delay the response accordingly)
* `/hostname` (prints hostname)
* `/connect` (performs a HTTP GET to the URL configured in `$CONNECT_URL` and prints the result. Ignores certs)
* `/loginfo` (logs "info log entry from testapp" with level `info`)
* `/logerror` (logs "error log entry from testapp" with level `error`)
* `/logdebug` (logs "debug log entry from testapp" with level `debug`)## binaries
the docker container has the following binaries`nc`, `curl`, `dig`, `nmap`, `socat`, [hey](https://github.com/rakyll/hey), `vim`, `tcpdump`, `traceroute`, `strace`, `iperf`, `telnet`
## options
```
--bind-address string ip:port where http requests are served (default ":8080")
--connect-url string URL to connect to with /connect (default "https://google.com")
--ping-response string what to respond when pinged (default "pong\n")
```