Commit Graph

95 Commits

Author SHA1 Message Date
Julian K. Arni
bc301ad7c1 Bump to 0.0.4.0 2017-12-14 21:35:11 -08:00
Julian Arni
0f334449cb
Merge pull request #40 from Phenitei/expose-missing-predicates
Add forgotten predicates to export list.
2017-12-14 21:33:22 -08:00
Joachim Desroches
4f24452d03
Add forgotten predicates to export list.
The honoursAcceptHeader and getsHaveLastModifiedHeader predicates had
been omitted when writing the export list, making it necessary to import
Servant.QuickCheck.Internal.Predicates to have access to them.
2017-12-15 00:22:57 +01:00
Oleg Grenrus
6e6595f68c
Merge pull request #37 from phadej/servant-0.12
Support for servant-0.12
2017-11-08 13:27:13 +02:00
Oleg Grenrus
53785354d3 Add build-tool-depends 2017-11-08 13:02:46 +02:00
Oleg Grenrus
026d4b8bb4 Use new-build based .travis.yml 2017-11-08 11:39:45 +02:00
Oleg Grenrus
3571f543fd Support for servant-0.12 2017-11-08 10:49:31 +02:00
Erik
d65abc856f [READY] Fixes #7: Add HTML missing Doctype predicate with tests (#33)
* Add HTML missing Doctype predicate with tests

* Don't use 'fail' in predicates

* Add RFC reference and description for HTML doctype

* Only take enough of respBody to compare to doctype string
2017-10-21 15:20:56 -07:00
Julian K. Arni
54a05a53a9 Bump version 2017-10-19 10:12:36 -07:00
Julian Arni
4765664a3e Merge pull request #32 from adinapoli-iohk/support-servant-0.11
Tentatively support Servant 0.11
2017-10-19 10:11:40 -07:00
Alfredo Di Napoli
199f6cc51e
Code review changes 2017-10-19 09:20:49 +02:00
Julian Arni
fb14b3c7ea Merge pull request #35 from haskell-servant/issue-34/coverage
Add coverage reports
2017-10-18 11:49:19 -07:00
Julian K. Arni
cb4555d6ba Add coverage reports 2017-10-18 11:30:13 -07:00
Alfredo Di Napoli
b0febe7c58
Tentatively support Servant 0.11 2017-10-18 14:36:45 +02:00
Julian K. Arni
9ebfe9d630 Bump version 2017-10-16 09:13:22 -07:00
Julian K. Arni
fa1a03257e Documenation for jsonEquality 2017-10-16 09:11:43 -07:00
Julian K. Arni
cce3bef538 Update changelog 2017-10-16 09:04:45 -07:00
Julian Arni
40c576cf15 Merge pull request #30 from haskell-servant/jsonEquality
Add jsonEquality to compare JSON APIs
2017-10-16 08:58:53 -07:00
Erik Aker
6c163dc981 Utilize new FailedWith constructor to fix json equality tests 2017-10-15 20:31:52 -07:00
Erik Aker
3f6856103a Add sanity check test in there to prove jsonEquality really is doing something different 2017-10-15 20:24:21 -07:00
Erik Aker
482656b35e Create jsonEqaulity function and add some tests for similar JSON values but slightly different whitespace, ordering 2017-10-15 20:24:21 -07:00
Julian Arni
e7206ec875 Merge pull request #29 from haskell-servant/issue-27/supportHspec2.4
Upgrade hspec to 2.4.4 and use safeEvaluateExample for tests
2017-10-15 18:45:03 -07:00
Julian K. Arni
a0ec1777a7 Compatibility with earlier versions of hspec.
Adds CPP to the tests to allow for upstream changes to the 'Result'
    type.
2017-10-15 17:49:47 -07:00
Erik Aker
f3b4fcf7a9 Resolve merge conflicts with unbiasedGeneration merge 2017-10-14 08:16:30 -07: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
Erik Aker
0e23a2eba7 Code cleanup: remove unused imports and code 2017-07-15 15:11:18 -07:00
Erik Aker
f052dc149b Bump HSpec to 2.4.4 and make tests use safeEvaluateExample to capture failure msg 2017-07-15 15:03:06 -07:00
Julian K. Arni
e1a9db4924 Bump version 2017-03-11 09:36:16 -06:00
Julian Arni
f12034ccb6 Merge pull request #28 from declension/22-fix-path-delimiting
Fix path delimiting (#22)
2017-03-11 09:34:28 -06: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
Julian K. Arni
41b2faad45 Bump version. 2017-03-10 21:50:50 -06:00
Julian Arni
78e0b32019 Merge pull request #26 from haskell-servant/fix-ci
Fix ci
2017-03-10 21:48:14 -06:00
Julian K. Arni
b7cf4e6f80 upper bound for hspec 2017-03-10 17:29:08 -06:00
Julian K. Arni
a8dd02516f Switch CI to stack 2017-03-10 15:53:26 -06:00
Julian Arni
be5909d30f Merge pull request #24 from declension/23-fix-queryparams
Fix multiple QueryParams / QueryFlags
2017-03-10 15:31:39 -06: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
a8459223ed Use () for test QueryParam type too
...as suggested (thanks @jkarni)
2017-03-07 22:48:45 +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
47391784ce Bump version 2016-10-18 14:40:40 +02:00
Julian K. Arni
b1227d3864 Make onlyJsonObjects succeed in non-JSON endpoints. 2016-10-18 14:38:44 +02:00
Julian K. Arni
4f5e6ba25a Mention that servant servers don't comply with allow header setting 2016-10-18 13:55:28 +02:00
Julian K. Arni
ae07497397 Bump version to 0.2.0.1 2016-10-05 15:36:38 +01:00
Julian Arni
49cfb78f1d Merge pull request #17 from haskell-servant/notLongerThan
Add notLongerThan predicate.
2016-10-05 16:33:01 +02:00
Julian K. Arni
2219d2ef7e Changelog for notLongerThan. 2016-10-05 15:32:37 +01:00
Julian K. Arni
feff40b2e4 Add notLongerThan predicate. 2016-10-05 15:29:39 +01:00
Julian K. Arni
b4876468e6 Changelog 2016-10-03 16:39:36 +02:00
Julian K. Arni
0563caafae Newtype rather than data for predicates 2016-10-03 16:32:27 +02: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