user_id in connection info
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-07-10 15:39:14 +02:00
parent 8f131a932f
commit 507c0ceba3
6 changed files with 23 additions and 8 deletions

View File

@ -30,14 +30,14 @@ test ('login', async (t) => {
const resp = await fetch ('http://localhost:3000', { headers: { session } });
t.is (resp.status, consts.http.status_ok);
t.is (await resp.text (), 'foo');
t.is (await resp.text (), 'foo:69');
});
test ('allow access to excluded paths', async (t) => {
const resp = await fetch ('http://localhost:3000/noauthreg');
t.is (resp.status, consts.http.status_ok);
t.is (await resp.text (), 'foo');
t.is (await resp.text (), 'foo:undefined');
});
test ('allow access to excluded paths with correct method', async (t) => {
@ -47,7 +47,7 @@ test ('allow access to excluded paths with correct method', async (t) => {
);
t.is (resp.status, consts.http.status_ok);
t.is (await resp.text (), 'foo');
t.is (await resp.text (), 'foo:undefined');
});
test ('reject access to excluded paths with wrong method', async (t) => {