Skip to content

Fix TestValidRemoteDriver GetCapabilities errors - #2364

Merged
euanh merged 2 commits into
moby:masterfrom
thaJeztah:fix_TestValidRemoteDriver
Jun 14, 2019
Merged

Fix TestValidRemoteDriver GetCapabilities errors#2364
euanh merged 2 commits into
moby:masterfrom
thaJeztah:fix_TestValidRemoteDriver

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Splitting this change from #2118

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

@thaJeztah

Copy link
Copy Markdown
MemberAuthor

ping @euanh@selansen@mavenugo PTAL

@thaJeztah

Copy link
Copy Markdown
MemberAuthor

Fixed a second warning as well by adding the Delete endpoint; no warnings/errors anymore;

=== RUN TestValidRemoteDriver
--- PASS: TestValidRemoteDriver (0.03s)

@thaJeztah

Copy link
Copy Markdown
MemberAuthor

ping @euanh@arkodg@mavenugo PTAL

Comment threadlibnetwork_test.go Outdated
})
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, "{}")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
MemberAuthor

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

@thaJeztah
thaJeztahforce-pushed the fix_TestValidRemoteDriver branch from 670774a to 4f25d4eCompareMay 23, 2019 12:54
@thaJeztah

Copy link
Copy Markdown
MemberAuthor

@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 <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
thaJeztahforce-pushed the fix_TestValidRemoteDriver branch from 4f25d4e to 1cf5b18CompareMay 23, 2019 12:55

@arkodgarkodg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@euanh
euanh self-requested a review June 14, 2019 16:10
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@thaJeztah@euanh@arkodg