mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 11:24:00 +00:00
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.
This commit is contained in:
1 parent
60644c5f5d
commit
b0483dc546
1 file changed
+2
@@ -197,6 +197,8 @@ async function main() {
|
|||||||
req.respond({
|
req.respond({
|
||||||
status: 200,
|
status: 200,
|
||||||
contentType: 'application/json',
|
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' }),
|
body: JSON.stringify({ rows: [], status: 'error', error: 'invalid key' }),
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user