Solve #717 Validating config should try to compile regexes (#729)
authorSuzuki Shota <8736380+sshota0809@users.noreply.github.com>
Wed, 6 Jan 2021 13:52:00 +0000 (22:52 +0900)
committerGitHub <noreply@github.com>
Wed, 6 Jan 2021 13:52:00 +0000 (13:52 +0000)
commitffd84c62dcce30136f92b6c38b2be9779c7ef695
treeb4566d785a0ea6be4c520b449aefb715d9355c55
parent847b668e93267b1b57a76db5876f123bff074315
Solve #717 Validating config should try to compile regexes (#729)

* Solve issue: #717:Validating config includes trying to compile regexes

Signed-off-by: sshota0809 <8736380+sshota0809@users.noreply.github.com>
config/config.go
config/config_test.go
config/testdata/invalid-http-body-match-regexp.yml [new file with mode: 0644]
config/testdata/invalid-http-body-not-match-regexp.yml [new file with mode: 0644]
config/testdata/invalid-http-header-match-regexp.yml [new file with mode: 0644]
config/testdata/invalid-tcp-query-response-regexp.yml [new file with mode: 0644]
prober/http.go
prober/http_test.go
prober/tcp.go
prober/tcp_test.go