From bb23eb49b1fe954e552bcdfa20883fe53a917c56 Mon Sep 17 00:00:00 2001 From: AndReicscs Date: Tue, 16 Jun 2026 09:40:27 +0000 Subject: [PATCH] fixed copmpose service error --- Hub/internal/services/compose/service.go | 1 + Hub/internal/services/compose/service_test.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Hub/internal/services/compose/service.go b/Hub/internal/services/compose/service.go index 6443b07..b85681d 100644 --- a/Hub/internal/services/compose/service.go +++ b/Hub/internal/services/compose/service.go @@ -23,6 +23,7 @@ type Store interface { GetConfigValue(key string) (string, error) SetNodeDesiredRevision(nodeID, rev string) error SetNodeSensorDeployedVersion(nodeID, sensorID, version string) error + ApplyNodeRevision(nodeID, revision string) error } type Service struct { diff --git a/Hub/internal/services/compose/service_test.go b/Hub/internal/services/compose/service_test.go index 7a40d76..b033e54 100644 --- a/Hub/internal/services/compose/service_test.go +++ b/Hub/internal/services/compose/service_test.go @@ -47,6 +47,10 @@ func (m *MockStore) SetNodeSensorDeployedVersion(nodeID, sensorID, version strin return nil } +func (m *MockStore) ApplyNodeRevision(nodeID, revision string) error { + return nil +} + func TestComposeSmartVersionSelection(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.URL.Path == "/index.json" {