Skip to content

Commit e9bd147

Browse files
committed
Add Delete endpoint for plugin in test
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent cc38e3a commit e9bd147

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libnetwork/libnetwork_test.go

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

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

0 commit comments

Comments
 (0)