Commit Graph

19 Commits

Author SHA1 Message Date
Oleg Grenrus
26523832f8 Allow base-compat-0.10 and temporary-1.3
Use base-compat-batteries
2018-04-12 09:29:23 +03:00
Oleg Grenrus
d46b7183ad Support for servant-0.13 2018-02-09 20:26:02 +02:00
Oleg Grenrus
3571f543fd Support for servant-0.12 2017-11-08 10:49:31 +02:00
Alfredo Di Napoli
b0febe7c58
Tentatively support Servant 0.11 2017-10-18 14:36:45 +02:00
Julian Arni
66ce50993f Unbias generation of requests. (#19)
* Unbias generation of requests:

     ...so that each endpoint is picked with the same frequency.

     Also, include a test for unbiased generation that measures mean and variance of results.
2017-10-14 07:53:04 -07:00
Nick B
d33214d376 Fix Path delimiting:
* Add test API with multiple Path elements
  * Add basic test using this API, generating an endpoint to validate that query path delimiting is happening correctly (that fails on `master`)
  * Fix (re)creation of path to prepend `/` to each new path section, but only if it's non-empty (this fixes the trailing slashes, but still allows users to use a `:> "foo/" :>...` if their API demands trailing slashes)
  * Update / fix the existing test that now fails slightly differently (i.e. the trailing slash in `failplz/` is gone)

Fixes #22.
2017-03-11 11:19:57 +00:00
Nick B
2109326ad7 QueryFlags don't use =
* Also, fix import for old `Servant` versions - _every_ version now needs `Data.Bytestring` (i.e. Servant version < 0.8, as per old lts in `stack.yaml`)
2017-03-10 08:31:56 +00:00
Nick B
77fa490b93 Fix QueryFlags too (#23)
* Same logic / testing as for `QueryParam`
 * There's probably some de-duplication that could be done here one day...
2017-03-07 22:52:38 +00:00
Nick B
6be6697165 QueryParams: fix ampersand, improve test
* Simplify test API to use `()` - no awkward values at all.
 * The test asserts on _entire_ of resulting path now...
 * ...and fix the ampersand placement, but preserving the order of params left to right. The code also reads a bit better this way...
2017-03-07 21:25:11 +00:00
Nick B
a5224276d5 Fix multiple QueryParams
* Add test API taking multiple `QueryParam`s
 * Add basic test using this API, generating an endpoint to ensure correct HTTP `one=foo&two=bar` query string generation is happening (that fails on `master`)
 * Fix (re)creation of query string to append `&` before the new parameter if there is already a built query string.

Fixes #23.
2017-03-06 13:32:55 +00:00
Julian K. Arni
feff40b2e4 Add notLongerThan predicate. 2016-10-05 15:29:39 +01:00
Julian K. Arni
8eb5c334c1 Looser bounds.
Support recent versions of QuickCheck, aeson, http-client, servant,
        servant-client, and servant-server.
2016-10-03 16:30:46 +02:00
Julian K. Arni
0337996c6c Support new CaptureAll combinator. 2016-09-14 10:26:13 -03:00
Julian K. Arni
0682e353d6 Cleanup 2016-08-28 19:22:43 -03:00
Julian K. Arni
b7df33fbe8 Get an error message in. 2016-08-28 13:32:48 -03:00
Julian K. Arni
eb51069cb5 prelude-compat 2016-05-09 17:49:29 +02:00
Julian K. Arni
9307ea2158 Add new predicates.
* notAllowedContainsAllowHeader
    * getsHaveCacheControlHeader
    * headsHaveCacheControlHeader
2016-04-25 12:32:02 +02:00
Julian K. Arni
3189902c4b Comprehensive instances for HasGenRequest. 2016-04-23 21:43:03 +02:00
Julian K. Arni
2050487058 Rewrite.
Being lazy without a new full intepretation isn't paying off.
2016-04-23 01:21:36 +02:00