Add support for HTTP request body as file (#987)
authorDaniel Teunis <daniel@teunis.cc>
Wed, 29 Mar 2023 16:50:09 +0000 (18:50 +0200)
committerGitHub <noreply@github.com>
Wed, 29 Mar 2023 16:50:09 +0000 (22:20 +0530)
commit46020dddc2a82c63fadce0bb861269e902d1d39b
treee2a4ffd49f733bd87d717fdc62eb5bb4a018ea3b
parent32b5f404e134c280c4fc00ffa952977f66431f73
Add support for HTTP request body as file (#987)

* Add HTTP request body test

This commit adds a test for specifying a request body for HTTP probes.

Signed-off-by: Daniel Teunis <daniel@teunis.cc>
* Add support for HTTP request body as file

Resolves #391

Signed-off-by: Daniel Teunis <daniel@teunis.cc>
* Use io instead of io/ioutil

Signed-off-by: Marcelo Magallon <marcelo.magallon@gmail.com>
---------

Signed-off-by: Daniel Teunis <daniel@teunis.cc>
Signed-off-by: Marcelo Magallon <marcelo.magallon@gmail.com>
Co-authored-by: Marcelo Magallon <marcelo.magallon@gmail.com>
CONFIGURATION.md
config/config.go
config/config_test.go
config/testdata/invalid-http-body-config.yml [new file with mode: 0644]
example.yml
prober/http.go
prober/http_test.go