MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / taskStatusResponse

Function taskStatusResponse

internal/cli/cli_helpers_test.go:195–197  ·  view source on GitHub ↗

taskStatusResponse returns a /nodes/{node}/tasks/{upid}/status JSON body.

(exitStatus string)

Source from the content-addressed store, hash-verified

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

Callers 2

TestWaitForTaskSuccessFunction · 0.85
TestWaitForTaskFailureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected