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.
2 parents 1a05996 + 2e5af50 commit b338e3aCopy full SHA for b338e3a
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