mirror of
https://github.com/andreicscs/HoneyWire
synced 2026-06-26 12:39:53 +00:00
fixed copmpose service error
This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user