MCPcopy Create free account
hub / github.com/docker/docker-agent / TestServer_EmptyList

Function TestServer_EmptyList

pkg/server/server_test.go:51–59  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

49}
50
51func TestServer_EmptyList(t *testing.T) {
52 t.Parallel()
53
54 ctx := t.Context()
55 lnPath := startServer(t, ctx, prepareAgentsDir(t))
56
57 buf := httpGET(t, ctx, lnPath, "/api/agents")
58 assert.Equal(t, "[]\n", string(buf)) // We don't want null, but an empty array
59}
60
61func TestServer_ListSessions(t *testing.T) {
62 t.Parallel()

Callers

nothing calls this directly

Calls 4

startServerFunction · 0.85
prepareAgentsDirFunction · 0.85
httpGETFunction · 0.85
ContextMethod · 0.80

Tested by

no test coverage detected