taskStatusResponse returns a /nodes/{node}/tasks/{upid}/status JSON body.
(exitStatus string)
| 193 | |
| 194 | // taskStatusResponse returns a /nodes/{node}/tasks/{upid}/status JSON body. |
| 195 | func taskStatusResponse(exitStatus string) string { |
| 196 | return `{"data":{"status":"stopped","exitstatus":"` + exitStatus + `","upid":"UPID:pve:test","node":"pve","starttime":1700000000,"endtime":1700000060}}` |
| 197 | } |
| 198 | |
| 199 | func TestWaitForTaskSuccess(t *testing.T) { |
| 200 | const upid = "UPID:pve:00001234:00000000:test:qmcreate:100:user@pam:" |
no outgoing calls
no test coverage detected