If no socket-based activation is detected, a new local unix socket will be created.
(t *testing.T)
| 14 | // If no socket-based activation is detected, a new local unix socket will be |
| 15 | // created. |
| 16 | func TestEndpoints_LocalCreateUnixSocket(t *testing.T) { |
| 17 | endpoints, config, cleanup := newEndpoints(t) |
| 18 | defer cleanup() |
| 19 | |
| 20 | require.NoError(t, endpoints.Up(config)) |
| 21 | |
| 22 | path := endpoints.LocalSocketPath() |
| 23 | assert.NoError(t, httpGetOverUnixSocket(path)) |
| 24 | |
| 25 | // The unix socket file gets removed after shutdown. |
| 26 | cleanup() |
| 27 | assert.Equal(t, false, util.PathExists(path)) |
| 28 | } |
| 29 | |
| 30 | // If socket-based activation is detected, it will be used for binding the API |
| 31 | // Endpoints' unix socket. |
nothing calls this directly
no test coverage detected
searching dependent graphs…