Closed gnuoy closed 1 month ago
Running testing script (such as ntp, memtester, stress-ng etc) is not supported directly. It can be done via the deprecated API client with something like:
values := make(url.Values) values.Add("testing_scripts", strings.Join(testScripts, ",")) machine := new(entity.Machine) machineAPI := APIClient.GetSubObject("machines").GetSubObject(machineData.SystemID) err := machineAPI.Post("test", values, func(data []byte) error { return json.Unmarshal(data, machine) })
This issue is stale because it has been open for 30 days with no activity.
Hi @gnuoy . Thank you for opening the issue. I am marking it as duplicate of #96, which includes the op-test implementation
op-test
Running testing script (such as ntp, memtester, stress-ng etc) is not supported directly. It can be done via the deprecated API client with something like: