common/test/client: Do not verify TLS certs for testing

We will commonly use self-signed certs.
This commit is contained in:
Robert Swain 2017-06-08 12:11:37 +02:00
parent 536e7402aa
commit 8b9205062b

View file

@ -15,6 +15,7 @@
package test
import (
"crypto/tls"
"fmt"
"io"
"io/ioutil"
@ -71,6 +72,11 @@ func CanonicalJSONInput(jsonData []string) []string {
func (r *Request) Do() error {
client := &http.Client{
Timeout: 5 * time.Second,
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
},
}
res, err := client.Do(r.Req)
if err != nil {