Fix initialism errors (PR-2) (#17032)

* Fix initialism errors

* Fix check-mocks test

* Revert mlog and filestore packages

* Update plugin_hooks_test.go

* Update opentracinglayer.go

* Regenerate mocks and check store layers

* Revert plugin's context changes

* Update context.go

* Update plugin_requests.go

* Update plugin_hooks_test.go

* Regenerate mocks

* Regenerate mocks and store layers

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Haardik Dharma
2021-04-03 12:43:22 +05:30
committed by GitHub
parent db01f2a91b
commit 343c51830f
49 changed files with 1542 additions and 1542 deletions

View File

@@ -67,7 +67,7 @@ func TestHTTPClient(t *testing.T) {
testCases := []struct {
description string
allowHost func(string) bool
allowIp func(net.IP) bool
allowIP func(net.IP) bool
expectedAllowed bool
}{
{"allow with no checks", nil, nil, true},
@@ -84,7 +84,7 @@ func TestHTTPClient(t *testing.T) {
}
for _, testCase := range testCases {
t.Run(testCase.description, func(t *testing.T) {
c := NewHTTPClient(NewTransport(false, testCase.allowHost, testCase.allowIp))
c := NewHTTPClient(NewTransport(false, testCase.allowHost, testCase.allowIP))
if _, err := c.Get(mockHTTP.URL); testCase.expectedAllowed {
require.NoError(t, err)
} else {