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

Function storageContentResponse

internal/cli/cli_integration_test.go:27–32  ·  view source on GitHub ↗

storageContentResponse returns a minimal /nodes/{node}/storage/{storage}/content JSON response.

()

Source from the content-addressed store, hash-verified

25
26// storageContentResponse returns a minimal /nodes/{node}/storage/{storage}/content JSON response.
27func storageContentResponse() string {
28 return `{"data":[
29 {"volid":"local:iso/debian-12.iso","content":"iso","format":"iso","size":658505728,"ctime":1700000000},
30 {"volid":"local:iso/ubuntu-22.04.iso","content":"iso","format":"iso","size":1234567890,"ctime":1700001000}
31 ]}`
32}
33
34func newStorageTestServer(t *testing.T) *httptest.Server {
35 t.Helper()

Callers 1

newStorageTestServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected