{ "meta": { "name": "Download Book KEPUB (On-the-fly Conversion)", "type": "http", "event": [ { "listen": "test", "script": { "exec": [ "// Test format-specific hash header", "const kepubHash = resp.headers.get('X-Bookhoard-KEPUB-SHA256');", "if (kepubHash) {", " tests['KEPUB hash present'] = true;", " tests['Hash is 64 chars'] = kepubHash.length === 64;", "} else {", " tests['KEPUB hash present'] = false;", "}", "", "// Verify Bookhoard UUID header", "const bookhoardUUID = resp.headers.get('X-Bookhoard-UUID');", "tests['Bookhoard UUID present'] = bookhoardUUID !== null;", "", "// Verify content type", "const contentType = resp.headers.get('Content-Type');", "tests['Content-Type is KEPUB'] = contentType && contentType.includes('kepub');" ] } } ] }, "req": { "url": "{{baseUrl}}/opds/devices/{{deviceId}}/download/{{mediaItemId}}?format=kepub", "method": "GET" } }