mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
update vendor/ dir to latest w/o heroku, moby
had to lock a lot of things in place
This commit is contained in:
7
vendor/github.com/fsouza/go-dockerclient/volume_test.go
generated
vendored
7
vendor/github.com/fsouza/go-dockerclient/volume_test.go
generated
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user