openvibers/openvibe.billing Commits

Console test: robots.txt allows the public /policy and nothing else

OP OpenVibers committed 26 Sept 2026 · 8ca3039455 · 1 file, +1 −1


Changes

ddiff --git a/test/console.test.js b/test/console.test.js
iindex 93a4865..f24cdd1 100644
---- a/test/console.test.js
++++ b/test/console.test.js
@@@ -151,7 +151,7 @@ const DAY = 86_400_000;
assert.strictEqual(anon.status, 401);
assert.ok(anon.text.includes('/auth/login?next=%2Fcashouts'));
assert.strictEqual((await get('/', null)).status, 200, 'the root shows the sign-in page');
-- assert.strictEqual((await get('/robots.txt')).text, 'User-agent: *\nDisallow: /\n');
++ assert.strictEqual((await get('/robots.txt')).text, 'User-agent: *\nAllow: /policy\nDisallow: /\n', 'the console stays out of search; only the public policy is allowed');
});
await check('the staff session is not an API credential: /api/v1 still needs a service token', async () => {