Skip to content

Commit

Permalink
Merge pull request #2868 from nmburgan/issue/main/pe-38293_fix_test_f…
Browse files Browse the repository at this point in the history
…or_new_bouncycastle

(PE-38293) Fix test for modified error message with new Bouncy Castle
  • Loading branch information
justinstoller authored Jul 16, 2024
2 parents 1a05996 + 2e5af50 commit b338e3a
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,11 @@
(:msg %)))
(jruby-request-with-client-cert-header "%1Q%2"))))
(testing "Bad certificate content"
(is (thrown+? [:kind :bad-request
:msg (str "Unable to parse x-client-cert into "
"certificate: -----END CERTIFICATE not found")]
(is (thrown+? #(and
(= (:kind %) :bad-request)
(re-matches
#"Unable to parse x-client-cert into certificate: -----END CERTIFICATE(-----)? not found"
(:msg %)))
(jruby-request-with-client-cert-header
"-----BEGIN%20CERTIFICATE-----%0AM"))))
(testing "No certificate in content"
Expand Down

0 comments on commit b338e3a

Please sign in to comment.