Allow to pass metadata with process config, non-cluster only

This commit is contained in:
Ingo Oppermann
2023-06-01 21:24:33 +02:00
parent d652fd213b
commit f59a63320c
7 changed files with 228 additions and 38 deletions

View File

@@ -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)