diff options
author | Vivien Kraus <vivien@planete-kraus.eu> | 2020-01-01 00:00:00 +0100 |
---|---|---|
committer | Vivien Kraus <vivien@planete-kraus.eu> | 2021-06-18 15:43:46 +0200 |
commit | 5f94745a1eb4e836199caff8fa372d0a023b8339 (patch) | |
tree | 4c4d7da8a85699a3bb747b7f28c8fbaf51a331f2 /tests/jwk-kty-rsa-incorrect.scm | |
parent | 7f1ff0572aa8f7f9c7c65332f695d7d7c07f31e0 (diff) |
Add a strip function
Diffstat (limited to 'tests/jwk-kty-rsa-incorrect.scm')
-rw-r--r-- | tests/jwk-kty-rsa-incorrect.scm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/jwk-kty-rsa-incorrect.scm b/tests/jwk-kty-rsa-incorrect.scm new file mode 100644 index 0000000..11ab368 --- /dev/null +++ b/tests/jwk-kty-rsa-incorrect.scm @@ -0,0 +1,18 @@ +(use-modules (webid-oidc stubs) + (webid-oidc testing) + (webid-oidc errors)) + +(with-test-environment + "jwk-kty-ec-incorrect" + (lambda () + (let* ((key (json-string->scm "{\"kty\":\"RSA\",\"e\":\"AQAB\",\"kid\":\"db7cdbbf-0ca3-48da-abf6-8f34002a4651\",\"n\":\"--\"}")) + (kty + (with-exception-handler + (lambda (exn) + #f) + (lambda () + (kty key)) + #:unwind? #t + #:unwind-for-type ¬-a-jwk))) + (when kty + (exit 1))))) |