Skip to content

Commit bf1b79d

Browse files
committed
Add Delete endpoint for plugin in test
Signed-off-by: Sebastiaan van Stijn <[email protected]> (cherry picked from commit 1cf5b18) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 641826a commit bf1b79d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libnetwork_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,10 @@ func TestValidRemoteDriver(t *testing.T) {
13821382
w.Header().Set("Content-Type", "application/vnd.docker.plugins.v1+json")
13831383
fmt.Fprintf(w, "null")
13841384
})
1385+
mux.HandleFunc(fmt.Sprintf("/%s.DeleteNetwork", driverapi.NetworkPluginEndpointType), func(w http.ResponseWriter, r *http.Request) {
1386+
w.Header().Set("Content-Type", "application/vnd.docker.plugins.v1+json")
1387+
fmt.Fprintf(w, "null")
1388+
})
13851389

13861390
if err := os.MkdirAll("/etc/docker/plugins", 0755); err != nil {
13871391
t.Fatal(err)

0 commit comments

Comments
 (0)