update vendor/ dir to latest w/o heroku, moby

had to lock a lot of things in place
This commit is contained in:
Reed Allman
2017-08-03 02:38:15 -07:00
parent 780791da1c
commit 30f3c45dbc
5637 changed files with 191713 additions and 1133103 deletions

View File

@@ -13,6 +13,7 @@ import (
)
func TestListVolumes(t *testing.T) {
t.Parallel()
volumesData := `[
{
"Name": "tardis",
@@ -41,6 +42,7 @@ func TestListVolumes(t *testing.T) {
}
func TestCreateVolume(t *testing.T) {
t.Parallel()
body := `{
"Name": "tardis",
"Driver": "local",
@@ -79,6 +81,7 @@ func TestCreateVolume(t *testing.T) {
}
func TestInspectVolume(t *testing.T) {
t.Parallel()
body := `{
"Name": "tardis",
"Driver": "local",
@@ -110,6 +113,7 @@ func TestInspectVolume(t *testing.T) {
}
func TestRemoveVolume(t *testing.T) {
t.Parallel()
name := "test"
fakeRT := &FakeRoundTripper{message: "", status: http.StatusNoContent}
client := newTestClient(fakeRT)
@@ -128,6 +132,7 @@ func TestRemoveVolume(t *testing.T) {
}
func TestRemoveVolumeNotFound(t *testing.T) {
t.Parallel()
client := newTestClient(&FakeRoundTripper{message: "no such volume", status: http.StatusNotFound})
if err := client.RemoveVolume("test:"); err != ErrNoSuchVolume {
t.Errorf("RemoveVolume: wrong error. Want %#v. Got %#v.", ErrNoSuchVolume, err)
@@ -135,6 +140,7 @@ func TestRemoveVolumeNotFound(t *testing.T) {
}
func TestRemoveVolumeInUse(t *testing.T) {
t.Parallel()
client := newTestClient(&FakeRoundTripper{message: "volume in use and cannot be removed", status: http.StatusConflict})
if err := client.RemoveVolume("test:"); err != ErrVolumeInUse {
t.Errorf("RemoveVolume: wrong error. Want %#v. Got %#v.", ErrVolumeInUse, err)
@@ -142,6 +148,7 @@ func TestRemoveVolumeInUse(t *testing.T) {
}
func TestPruneVolumes(t *testing.T) {
t.Parallel()
results := `{
"VolumesDeleted": [
"a", "b", "c"