implement some ad-hoc mocks for responses

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-10-25 01:36:38 +02:00
parent 056e314645
commit 4afbd6146b
7 changed files with 48 additions and 21 deletions

View File

@ -3,7 +3,7 @@ package plugin
import (
"context"
"io"
"strings"
"net/http"
"github.com/moby/moby/api/types/system"
"github.com/moby/moby/client"
@ -79,5 +79,5 @@ func (c *fakeClient) PluginUpgrade(_ context.Context, name string, options clien
return c.pluginUpgradeFunc(name, options)
}
// FIXME(thaJeztah): how to mock this?
return io.NopCloser(strings.NewReader("")), nil
return http.NoBody, nil
}