storageContentResponse returns a minimal /nodes/{node}/storage/{storage}/content JSON response.
()
| 25 | |
| 26 | // storageContentResponse returns a minimal /nodes/{node}/storage/{storage}/content JSON response. |
| 27 | func 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 | |
| 34 | func newStorageTestServer(t *testing.T) *httptest.Server { |
| 35 | t.Helper() |
no outgoing calls
no test coverage detected