chore: add e2e compose test with volumes

This commit is contained in:
Pavel Sviderski
2025-04-23 10:41:24 +10:00
parent 16c876d83f
commit b605a64fbe
3 changed files with 209 additions and 2 deletions
+3 -1
View File
@@ -9,6 +9,8 @@ import (
"github.com/docker/docker/api/types/mount"
"github.com/docker/docker/api/types/volume"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
)
const (
@@ -110,7 +112,7 @@ func (v *VolumeSpec) Equals(other VolumeSpec) bool {
vol := v.SetDefaults()
other = other.SetDefaults()
return reflect.DeepEqual(vol, other)
return cmp.Equal(vol, other, cmpopts.EquateEmpty())
}
// MatchesDockerVolume checks if this VolumeSpec is compatible with the given named Docker volume.