Joe Nelson and GitHub
af75988dd4
No count by default ( #700 )
...
* WIP: disable counting total table size by default
* Remove commented tests since PUT is no longer supported
* Fix tests for invalid range which require count
* Do not report count in PATCH response if not asked
* Return count of deleted items only if asked
* Return count for bulk insert when requested
* Changelog entry
2016-09-04 10:31:24 -07:00
Ruslan Talpa
7c83edc402
Limit embeded items
2016-05-26 09:56:28 +03:00
Diogo Biazus
9d0f3573c6
Implements query counting in proc call and adds Content-Rage to response
...
headers in /rpc calls.
2016-02-26 14:51:35 -05:00
Joe Nelson
d7fe59f0b0
WIP: share server code between tests and program
...
- Share server code in Main
- Switch to hasql-pool
- Use pool in tests
- DRY up test runner
2016-02-21 12:22:18 -08:00
Joe Nelson
b9fd083c77
It all compiles but all requests give a postgres error
2016-01-24 18:09:19 -08:00
Joe Nelson
fec316b087
WIP: fixing compiler errors in specs
2016-01-24 18:09:19 -08:00
Joe Nelson
b3144aee15
Cache schema structure between tests for speed
...
Causes one test to fail
2015-12-10 13:36:28 -08:00
Diogo Biazus
0961524e70
Refactors tests to use new fixtures and remove some haskell functions that wont be necessary anymore
2015-12-08 00:44:49 -05:00
Joe Nelson
f4c73c7666
Test for --max-rows behavior
2015-12-05 19:31:53 -08:00
Diogo Biazus
f0ec46fd11
Fix count=none when we have filters
2015-09-30 16:50:52 -04:00
Diogo Biazus
e28b2dd00e
Implements Prefer count=none header
...
Uses Maybe for total parameter in contentRangeH
2015-09-25 10:52:44 -04:00
Diogo Biazus
1fbf276474
Adds spec for Prefer header set to count=none
2015-09-24 18:31:36 -04:00
Adam C. Baker
c9b960f955
only create schema once
2014-12-29 17:57:31 -08:00
Adam C. Baker
3756309b22
create items in test, not in the schema.
2014-12-29 17:57:31 -08:00
Adam C. Baker
2ae99daa12
resetDb once for each set of tests.
2014-12-29 17:57:31 -08:00
Joe Nelson
7d58097449
Be sure to reset db before ALL tests
2014-12-06 17:42:42 -08:00
Joe Nelson
f6b7b42d75
Feature specs compile
2014-12-06 17:42:20 -08:00
Adam C. Baker
74855db87b
declare required extensions
...
and remove default extension pragmas (OverloadedStrings)
2014-11-05 00:32:10 -08:00
Joe Nelson
21e4e583ec
Return [] rather than nothing on no results
...
Fixes #70
2014-10-14 11:23:26 -07:00
Adam C. Baker
cf5510c425
upgrade hspec-wai, get tests passing.
2014-09-24 19:08:05 -07:00
Joe Nelson
d166cbc371
Test range truncation and single-item requests
2014-09-07 12:54:30 -07:00
Joe Nelson
fcdc37d20b
Reject ranges that start beyond last item
2014-09-07 12:47:07 -07:00
Joe Nelson
db7ccda74d
Test for no results case
2014-09-07 11:02:43 -07:00
Joe Nelson
63e3d69f4d
Be stricter about partial content response
2014-09-07 10:47:57 -07:00
Joe Nelson
7802fa5b7e
Respond with 200 or 206 in ranged responses
2014-09-07 09:38:30 -07:00
Joe Nelson
d06674a1e8
Test insertion of various json types
2014-08-27 12:48:41 -07:00
Joe Nelson
eef7860922
Test failed post, and clean up specs
2014-08-25 17:27:21 -07:00
Joe Nelson
f34f8d8c35
Separate tests into groups
...
Also test content of insert redirect
2014-08-25 16:53:44 -07:00
Joe Nelson
731260e9ee
Remove superfluous do statements
2014-08-25 13:37:10 -07:00
Joe Nelson
780c9d7c0f
Include location header in post response
2014-08-25 11:31:27 -07:00
Joe Nelson
094c145228
Test JSON payload for post
2014-08-23 21:49:16 -07:00
Joe Nelson
036ffa107b
Feature tests pass, unit test does not
2014-08-23 18:08:20 -07:00
Joe Nelson
a3a6108d49
Create test fixtures
2014-08-23 15:38:40 -07:00
Joe Nelson
9df8a7b99b
Add global before/after hspec hook in test/Main.hs
2014-08-17 21:21:47 -07:00
Joe Nelson
f42f7769e1
Test OPTIONS request for /table
2014-08-17 18:32:16 -07:00
Joe Nelson
0fbfa2395b
Ensure db fixtures loaded in feature specs
2014-08-17 16:18:09 -07:00
Joe Nelson
011c7acec9
First feature specs
2014-08-16 22:33:37 -07:00