-
Notifications
You must be signed in to change notification settings - Fork 881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix TestValidRemoteDriver GetCapabilities errors #2364
Conversation
Fixed a second warning as well by adding the Delete endpoint; no warnings/errors anymore;
|
libnetwork_test.go
Outdated
mux.HandleFunc(fmt.Sprintf("/%s.CreateNetwork", driverapi.NetworkPluginEndpointType), func(w http.ResponseWriter, r *http.Request) { | ||
w.Header().Set("Content-Type", "application/vnd.docker.plugins.v1+json") | ||
fmt.Fprintf(w, "null") | ||
}) | ||
mux.HandleFunc(fmt.Sprintf("/%s.DeleteNetwork", driverapi.NetworkPluginEndpointType), func(w http.ResponseWriter, r *http.Request) { | ||
w.Header().Set("Content-Type", "application/vnd.docker.plugins.v1+json") | ||
fmt.Fprintf(w, "{}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like it should be fmt.Fprintf(w, "null")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess both work; let me update
670774a
to
4f25d4e
Compare
@arkodg updated; PTAL |
This test was producing error messages due to missing endpoints in the plugin API; ``` === RUN TestValidRemoteDriver ERRO[0039] error getting capability for valid-network-driver due to NetworkDriver.GetCapabilities: 404 page not found ``` Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
4f25d4e
to
1cf5b18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Splitting this change from #2118
This test was producing error messages due to missing endpoints
in the plugin API;