Chore: Start harmonizing linting with plugin SDK (#25854)

* Chore: Harmonize linting with plugin SDK

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Chore: Fix linting issues

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-06-29 14:08:32 +02:00
committed by GitHub
parent 942a14b4ce
commit 5070f7a75b
44 changed files with 244 additions and 171 deletions
+3 -6
View File
@@ -224,13 +224,10 @@ func TestDataSourceProxyCache(t *testing.T) {
// 3. Send test request which should have the Authorization header set
req := httptest.NewRequest("GET", backend.URL+"/test-headers", nil)
res, err := transport.RoundTrip(req)
if err != nil {
log.Fatal(err.Error())
}
So(err, ShouldBeNil)
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
log.Fatal(err.Error())
}
So(err, ShouldBeNil)
bodyStr := string(body)
So(bodyStr, ShouldEqual, "Ok")
})