Pedestal testing utilities to simplify working with pedestal apps.
Pedestal testing utilities to simplify working with pedestal apps.
(raw-response-for interceptor-service-fn verb url & options)
Return a ring response map for an HTTP request of type verb
against url url
, when applied to interceptor-service-fn. Useful
for integration testing pedestal applications and getting all
relevant middlewares invoked, including ones which integrate with
the servlet infrastructure. The response body will be returned as
a ByteArrayOutputStream.
Options:
:body : An optional string that is the request body. :headers : An optional map that are the headers
Return a ring response map for an HTTP request of type `verb` against url `url`, when applied to interceptor-service-fn. Useful for integration testing pedestal applications and getting all relevant middlewares invoked, including ones which integrate with the servlet infrastructure. The response body will be returned as a ByteArrayOutputStream. Options: :body : An optional string that is the request body. :headers : An optional map that are the headers
(response-for interceptor-service-fn verb url & options)
Return a ring response map for an HTTP request of type verb
against url url
, when applied to interceptor-service-fn. Useful
for integration testing pedestal applications and getting all
relevant middlewares invoked, including ones which integrate with
the servlet infrastructure. The response body will be converted
to a UTF-8 string.
Options:
:body : An optional string that is the request body. :headers : An optional map that are the headers
Return a ring response map for an HTTP request of type `verb` against url `url`, when applied to interceptor-service-fn. Useful for integration testing pedestal applications and getting all relevant middlewares invoked, including ones which integrate with the servlet infrastructure. The response body will be converted to a UTF-8 string. Options: :body : An optional string that is the request body. :headers : An optional map that are the headers
(servlet-response-for interceptor-service-fn verb url & args)
Return a ring response map for an HTTP request of type verb
against url url
, when applied to interceptor-service-fn. Useful
for integration testing pedestal applications and getting all
relevant middlewares invoked, including ones which integrate with
the servlet infrastructure.
Return a ring response map for an HTTP request of type `verb` against url `url`, when applied to interceptor-service-fn. Useful for integration testing pedestal applications and getting all relevant middlewares invoked, including ones which integrate with the servlet infrastructure.
(test-servlet-response)
Returns a mock servlet response with a ServletOutputStream over a ByteArrayOutputStream. Captures the ByteArrayOutputStream in metadata. All headers set will swap a headers map held in an atom, also held in metadata.
Returns a mock servlet response with a ServletOutputStream over a ByteArrayOutputStream. Captures the ByteArrayOutputStream in metadata. All headers set will swap a headers map held in an atom, also held in metadata.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close