From b0483dc5460af824f877b9894be41dfa5b80fdf9 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Sat, 3 Oct 2026 23:20:42 -0700 Subject: [PATCH] test: name the vessel provider in the feed-failure QA fixture The fixture answers /api/vessels without X-Feed-Source, so the source fell back to the feed's name and the attribution check failed. Send AISStream as the bundled server does. --- scripts/qa-failstate-b10.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/qa-failstate-b10.mjs b/scripts/qa-failstate-b10.mjs index 983562fa7..95dc2ba4f 100644 --- a/scripts/qa-failstate-b10.mjs +++ b/scripts/qa-failstate-b10.mjs @@ -197,6 +197,8 @@ async function main() { req.respond({ status: 200, contentType: 'application/json', + // The bundled server names its vessel provider; attribution reads it. + headers: { 'X-Feed-Source': 'AISStream' }, body: JSON.stringify({ rows: [], status: 'error', error: 'invalid key' }), }); return;