Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <[email protected]>
  • Loading branch information
cpanato committed Nov 14, 2023
1 parent 2435be2 commit 05993b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/internal/testing/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand All @@ -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
}

0 comments on commit 05993b5

Please sign in to comment.