fixed copmpose service error

This commit is contained in:
AndReicscs
2026-06-16 09:40:27 +00:00
parent 54c297b501
commit bb23eb49b1
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -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 {
@@ -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" {