Skip to content

Commit 60be267

Browse files
committed
test(signing-handler): assert 422 revoked maps to do-nothing
Cover handler behavior for certificate revocation errors returned as code 422. Ensure these errors do not trigger signature password creation actions. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 3d1be5d commit 60be267

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/php/Unit/Handler/SigningErrorHandlerTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ public static function libresignExceptionProvider(): array {
4646
'message' => 'Password required',
4747
'expectedAction' => JSActions::ACTION_CREATE_SIGNATURE_PASSWORD,
4848
],
49+
'code 422 revoked certificate triggers do nothing action' => [
50+
'code' => 422,
51+
'message' => 'Certificate has been revoked',
52+
'expectedAction' => JSActions::ACTION_DO_NOTHING,
53+
],
4954
'code 401 triggers do nothing action' => [
5055
'code' => 401,
5156
'message' => 'Unauthorized',

0 commit comments

Comments
 (0)