Unit tests for #2726

This commit is contained in:
Maxime Besson 2022-03-11 17:56:24 +01:00
parent 9da6310037
commit 4a0ba0fea9
2 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,7 @@ SKIP: {
u2fSelfRegistration => 1,
u2fActivation => 1,
u2fAuthnLevel => 5,
restSessionServer =>1,
skipUpgradeConfirmation => 1,
sfManagerRule => '$uid eq "dwho"',
portalMainLogo => 'common/logos/logo_llng_old.png',
@ -151,6 +152,7 @@ SKIP: {
'Post code'
);
$id = expectCookie($res);
expectSessionAttributes($client, $id, _2f => "totp");
# Get 2F register form
ok(
@ -440,6 +442,7 @@ JjTJecOOS+88fK8qL1TrYv5rapIdqUI7aQ==
'Push U2F signature'
);
$id = expectCookie($res);
expectSessionAttributes($client, $id, _2f => "u");
ok(
$res = $client->_get(
'/2fregisters',

View File

@ -84,6 +84,7 @@ ok(
);
count(1);
my $id = expectCookie($res);
expectSessionAttributes($client, $id, _2f => "work");
$client->logout($id);
clean_sessions();
@ -167,6 +168,7 @@ ok(
);
count(1);
$id = expectCookie($res);
expectSessionAttributes($client, $id, _2f => "home");
# Verify Authn Level
ok( $res = $client->_get("/sessions/global/$id"), 'Get session' );