@@ -209,16 +209,17 @@ instance ToJSON Authentication
209
209
210
210
-- | A single curl test case, the basic foundation of a curl-runnings test.
211
211
data CurlCase = CurlCase
212
- { name :: T. Text -- ^ The name of the test case
213
- , url :: T. Text -- ^ The target url to test
214
- , requestMethod :: HttpMethod -- ^ Verb to use for the request
215
- , requestData :: Maybe Payload -- ^ Payload to send with the request, if any
216
- , queryParameters :: Maybe KeyValuePairs -- ^ Query parameters to set in the request, if any
217
- , headers :: Maybe Headers -- ^ Headers to send with the request, if any
218
- , auth :: Maybe Authentication -- ^ Authentication to add to the request, if any
219
- , expectData :: Maybe JsonMatcher -- ^ The assertions to make on the response payload, if any
220
- , expectStatus :: StatusCodeMatcher -- ^ Assertion about the status code returned by the target
221
- , expectHeaders :: Maybe HeaderMatcher -- ^ Assertions to make about the response headers, if any
212
+ { name :: T. Text -- ^ The name of the test case
213
+ , url :: T. Text -- ^ The target url to test
214
+ , requestMethod :: HttpMethod -- ^ Verb to use for the request
215
+ , requestData :: Maybe Payload -- ^ Payload to send with the request, if any
216
+ , queryParameters :: Maybe KeyValuePairs -- ^ Query parameters to set in the request, if any
217
+ , headers :: Maybe Headers -- ^ Headers to send with the request, if any
218
+ , auth :: Maybe Authentication -- ^ Authentication to add to the request, if any
219
+ , expectData :: Maybe JsonMatcher -- ^ The assertions to make on the response payload, if any
220
+ , expectStatus :: StatusCodeMatcher -- ^ Assertion about the status code returned by the target
221
+ , expectHeaders :: Maybe HeaderMatcher -- ^ Assertions to make about the response headers, if any
222
+ , allowedRedirects :: Maybe Int -- ^ Number of redirects to follow. Defaults to 10
222
223
} deriving (Show , Generic )
223
224
224
225
instance FromJSON CurlCase
0 commit comments