|
|
@@ -54,7 +54,7 @@ func TestDown(t *testing.T) {
|
|
|
testContainer("service_orphan", "321", true),
|
|
|
}, nil)
|
|
|
api.EXPECT().VolumeList(gomock.Any(), filters.NewArgs(projectFilter(strings.ToLower(testProject)))).
|
|
|
- Return(volume.VolumeListOKBody{}, nil)
|
|
|
+ Return(volume.ListResponse{}, nil)
|
|
|
|
|
|
// network names are not guaranteed to be unique, ensure Compose handles
|
|
|
// cleanup properly if duplicates are inadvertently created
|
|
|
@@ -104,7 +104,7 @@ func TestDownRemoveOrphans(t *testing.T) {
|
|
|
testContainer("service_orphan", "321", true),
|
|
|
}, nil)
|
|
|
api.EXPECT().VolumeList(gomock.Any(), filters.NewArgs(projectFilter(strings.ToLower(testProject)))).
|
|
|
- Return(volume.VolumeListOKBody{}, nil)
|
|
|
+ Return(volume.ListResponse{}, nil)
|
|
|
api.EXPECT().NetworkList(gomock.Any(), moby.NetworkListOptions{Filters: filters.NewArgs(projectFilter(strings.ToLower(testProject)))}).
|
|
|
Return([]moby.NetworkResource{{Name: "myProject_default"}}, nil)
|
|
|
|
|
|
@@ -140,8 +140,8 @@ func TestDownRemoveVolumes(t *testing.T) {
|
|
|
api.EXPECT().ContainerList(gomock.Any(), projectFilterListOpt(false)).Return(
|
|
|
[]moby.Container{testContainer("service1", "123", false)}, nil)
|
|
|
api.EXPECT().VolumeList(gomock.Any(), filters.NewArgs(projectFilter(strings.ToLower(testProject)))).
|
|
|
- Return(volume.VolumeListOKBody{
|
|
|
- Volumes: []*moby.Volume{{Name: "myProject_volume"}},
|
|
|
+ Return(volume.ListResponse{
|
|
|
+ Volumes: []*volume.Volume{{Name: "myProject_volume"}},
|
|
|
}, nil)
|
|
|
api.EXPECT().NetworkList(gomock.Any(), moby.NetworkListOptions{Filters: filters.NewArgs(projectFilter(strings.ToLower(testProject)))}).
|
|
|
Return(nil, nil)
|
|
|
@@ -277,8 +277,8 @@ func TestDownRemoveImages_NoLabel(t *testing.T) {
|
|
|
[]moby.Container{container}, nil)
|
|
|
|
|
|
api.EXPECT().VolumeList(gomock.Any(), filters.NewArgs(projectFilter(strings.ToLower(testProject)))).
|
|
|
- Return(volume.VolumeListOKBody{
|
|
|
- Volumes: []*moby.Volume{{Name: "myProject_volume"}},
|
|
|
+ Return(volume.ListResponse{
|
|
|
+ Volumes: []*volume.Volume{{Name: "myProject_volume"}},
|
|
|
}, nil)
|
|
|
api.EXPECT().NetworkList(gomock.Any(), moby.NetworkListOptions{Filters: filters.NewArgs(projectFilter(strings.ToLower(testProject)))}).
|
|
|
Return(nil, nil)
|