MCPcopy Create free account
hub / github.com/docker/go-plugins-helpers / TestActivate

Function TestActivate

network/api_test.go:139–150  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

137}
138
139func TestActivate(t *testing.T) {
140 response, err := http.Get("http://localhost:32234/Plugin.Activate")
141 if err != nil {
142 t.Fatal(err)
143 }
144 defer response.Body.Close()
145 body, err := io.ReadAll(response.Body)
146
147 if string(body) != manifest+"\n" {
148 t.Fatalf("Expected %s, got %s\n", manifest+"\n", string(body))
149 }
150}
151
152func TestCapabilitiesExchange(t *testing.T) {
153 response, err := http.Get("http://localhost:32234/NetworkDriver.GetCapabilities")

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…