mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +08:00
Allow to pass metadata with process config, non-cluster only
This commit is contained in:
@@ -50,7 +50,9 @@ func TestWidget(t *testing.T) {
|
||||
err = json.Unmarshal(data, &process)
|
||||
require.NoError(t, err)
|
||||
|
||||
err = rs.AddProcess(process.Marshal())
|
||||
config, _ := process.Marshal()
|
||||
|
||||
err = rs.AddProcess(config)
|
||||
require.NoError(t, err)
|
||||
|
||||
response := mock.Request(t, http.StatusOK, router, "GET", "/"+process.ID, nil)
|
||||
|
Reference in New Issue
Block a user