Skip to content

Commit b338e3a

Browse files
Merge pull request #2868 from nmburgan/issue/main/pe-38293_fix_test_for_new_bouncycastle
(PE-38293) Fix test for modified error message with new Bouncy Castle
2 parents 1a05996 + 2e5af50 commit b338e3a

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)