1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/authorization
Roman Mazur f2c432636b
pkg/authorization: Fix test failures on macOS
On macOS, unit tests were failing with

root@c4101a75c792:/go/src/github.com/docker/docker/pkg/authorization# go test .
--- FAIL: TestAuthZRequestPluginError (0.00s)
    authz_unix_test.go:295: listen unix authz-test-plugin.sock: bind: file name too long
--- FAIL: TestAuthZRequestPlugin (0.00s)
    authz_unix_test.go:295: listen unix authz-test-plugin.sock: bind: file name too long
--- FAIL: TestAuthZResponsePlugin (0.00s)
    authz_unix_test.go:295: listen unix authz-test-plugin.sock: bind: file name too long
time="2020-04-07T10:07:04Z" level=warning msg="Request body is larger than: '1048576' skipping body"
--- FAIL: TestMiddlewareWrapHandler (0.00s)
    authz_unix_test.go:295: listen unix authz-test-plugin.sock: bind: file name too long
FAIL
FAIL	github.com/docker/docker/pkg/authorization	0.120s

This change moves the socket creation from a working test directory to a tmp directory,
so the path is shorter.

Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2020-04-08 13:06:50 +03:00
..
api.go Add canonical import comment 2018-02-05 16:51:57 -05:00
api_test.go fix goimports 2020-02-11 22:16:54 +09:00
authz.go If Content-Type is application/json;charset=UTF-8, RequestBody is empty. 2018-04-05 04:03:45 -04:00
authz_unix_test.go pkg/authorization: Fix test failures on macOS 2020-04-08 13:06:50 +03:00
middleware.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
middleware_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
middleware_unix_test.go pkg/authorization: Fix test failures on macOS 2020-04-08 13:06:50 +03:00
plugin.go Add canonical import comment 2018-02-05 16:51:57 -05:00
response.go Removed deprecated CloseNotifier logic 2019-09-18 16:14:30 -05:00