We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f02a37 commit 2e5af50Copy full SHA for 2e5af50
test/unit/puppetlabs/services/request_handler/request_handler_core_test.clj
@@ -272,9 +272,11 @@
272
(:msg %)))
273
(jruby-request-with-client-cert-header "%1Q%2"))))
274
(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")]
+ (is (thrown+? #(and
+ (= (:kind %) :bad-request)
+ (re-matches
278
+ #"Unable to parse x-client-cert into certificate: -----END CERTIFICATE(-----)? not found"
279
+ (:msg %)))
280
(jruby-request-with-client-cert-header
281
"-----BEGIN%20CERTIFICATE-----%0AM"))))
282
(testing "No certificate in content"
0 commit comments