From 05993b577cf01246e7deca729c97f583dea43122 Mon Sep 17 00:00:00 2001 From: cpanato Date: Tue, 14 Nov 2023 15:10:33 +0100 Subject: [PATCH] update test Signed-off-by: cpanato --- pkg/internal/testing/daemon.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/internal/testing/daemon.go b/pkg/internal/testing/daemon.go index 74c8f03fd1..620884b603 100644 --- a/pkg/internal/testing/daemon.go +++ b/pkg/internal/testing/daemon.go @@ -26,6 +26,10 @@ import ( type MockDaemon struct { daemon.Client Tags []string + + inspectErr error + inspectResp types.ImageInspect + inspectBody []byte } func (m *MockDaemon) NegotiateAPIVersion(context.Context) {} @@ -42,3 +46,7 @@ func (m *MockDaemon) ImageTag(_ context.Context, _ string, tag string) error { m.Tags = append(m.Tags, tag) return nil } + +func (m *MockDaemon) ImageInspectWithRaw(_ context.Context, _ string) (types.ImageInspect, []byte, error) { + return m.inspectResp, m.inspectBody, m.inspectErr +}