feat: refactor to ymsctl & yms-daemon
This commit is contained in:
@@ -98,7 +98,7 @@ func TestServerAcceptsContainerImageThroughUnixSocket(t *testing.T) {
|
||||
waitForSocket(t, socketPath, serveResult)
|
||||
|
||||
imageReference := "harbor.ymswell.asia/ymswell/glory-ymswell:20260813-184902-a37bf50d-v1.1.8.1"
|
||||
response, err := daemonclient.UpdateContainerImage(context.Background(), socketPath, "backend", imageReference, nil)
|
||||
response, err := daemonclient.UpdateContainerImage(context.Background(), socketPath, "backend", imageReference, true, nil)
|
||||
if err != nil {
|
||||
t.Fatalf("submit container backend image: %v", err)
|
||||
}
|
||||
@@ -217,7 +217,7 @@ func (u *fakeUpdater) UpdateNativeJAR(_ context.Context, file string, report bac
|
||||
return u.record, u.err
|
||||
}
|
||||
|
||||
func (u *fakeUpdater) UpdateContainerImage(_ context.Context, imageReference string, report backendupdate.ProgressReporter) (transaction.Transaction, error) {
|
||||
func (u *fakeUpdater) UpdateContainerImage(_ context.Context, imageReference string, _ bool, report backendupdate.ProgressReporter) (transaction.Transaction, error) {
|
||||
u.file = imageReference
|
||||
u.inputType = daemonapi.InputTypeContainerImage
|
||||
u.operation = daemonapi.OperationUpdate
|
||||
|
||||
Reference in New Issue
Block a user