Skip to content

Commit 2e5af50

Browse files
author
Nick Burgan-Illig
committed
(PE-38293) Fix test for modified error message with new Bouncy Castle
1 parent 0f02a37 commit 2e5af50

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/unit/puppetlabs/services/request_handler/request_handler_core_test.clj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,11 @@
272272
(:msg %)))
273273
(jruby-request-with-client-cert-header "%1Q%2"))))
274274
(testing "Bad certificate content"
275-
(is (thrown+? [:kind :bad-request
276-
:msg (str "Unable to parse x-client-cert into "
277-
"certificate: -----END CERTIFICATE not found")]
275+
(is (thrown+? #(and
276+
(= (:kind %) :bad-request)
277+
(re-matches
278+
#"Unable to parse x-client-cert into certificate: -----END CERTIFICATE(-----)? not found"
279+
(:msg %)))
278280
(jruby-request-with-client-cert-header
279281
"-----BEGIN%20CERTIFICATE-----%0AM"))))
280282
(testing "No certificate in content"

0 commit comments

Comments
 (0)