Commit Graph
4319 Commits
Author SHA1 Message Date
Joe Nelson 93e38dd20d Show more details in travis output 2014-08-25 16:55:57 -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 a48474b21a respond 201 on successful post 2014-08-23 21:49:43 -07:00
Joe Nelson 094c145228 Test JSON payload for post 2014-08-23 21:49:16 -07:00
Joe Nelson 83a70343af Remove unit test for now 2014-08-23 18:08:54 -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 d6004ee41f Disable auto-transactions 2014-08-23 15:34:09 -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 3a646a4eb4 Install alex and happy on ci 2014-08-17 09:40:34 -07:00
Joe Nelson 011c7acec9 First feature specs 2014-08-16 22:33:37 -07:00
Joe Nelson 23da54de07 Create dbapi_test postgres database in travis 2014-08-14 13:33:23 -07:00
Joe Nelson e9c232976e Use version number for schema in tests like anticipated use case 2014-08-14 13:23:41 -07:00
Joe Nelson 2da4451110 Travis badge 2014-08-14 12:12:42 -07:00
Joe Nelson d25da99f10 Use integers for schemas in insert 2014-08-14 10:03:07 -07:00
Joe Nelson 09da9e7e94 What a travis-ty 2014-08-14 09:59:40 -07:00
Joe Nelson 66839c012f Commit after insert, but not in test 2014-08-12 21:17:43 -07:00
Joe Nelson 78d82e7fda Blithely suppress orphan warnings 2014-08-12 21:09:06 -07:00
Joe Nelson 276cea4a02 Tests a single insertion 2014-08-10 19:45:48 -07:00
Joe Nelson c9e92ffc67 WIP: load fixture before all tests 2014-08-10 19:15:43 -07:00
Joe Nelson 82d7953554 Basic hspec + postgres fixtures setup 2014-08-10 17:18:52 -07:00
Joe Nelson 6391c73184 Move sources into src 2014-08-10 13:13:32 -07:00
Adam C. Baker d90bc93698 POST to insert row. 2014-08-07 12:43:33 -07:00
Adam C. Baker 5befd3dd8b add types and instances for converting json <-> sql 2014-08-07 02:05:09 -07:00
Joe Nelson e58fad9002 Proper range header for empty result
Fixes #22
2014-08-06 12:30:03 -07:00
Joe Nelson cb2e421333 Prevent possible irrefutable pattern 2014-08-05 12:34:37 -07:00
Joe Nelson 5d5c2393b6 Adjust total for active filter
Including total = 0
2014-08-05 12:28:40 -07:00
Joe Nelson 81929dd513 Accurate range response headers 2014-08-04 22:30:38 -07:00
Joe Nelson 351b44ed52 Efficiently include count and limit range responses 2014-08-04 21:25:40 -07:00
Joe Nelson eb126ab49f Fix where clause, add count in headers 2014-08-03 11:26:02 -07:00
Joe Nelson c278a78edf Create grammar to manipulate query monoids 2014-08-02 21:04:58 -07:00
Adam C. Baker 60e1f920ab handle empty body on get request. 2014-08-02 16:52:13 -07:00
Joe Nelson 50cd701624 Using pattern matching for routing 2014-08-02 16:34:08 -07:00
Joe Nelson ce361643fa Accept range headers
TODO: response headers and proper codes
2014-08-02 15:27:45 -07:00
Joe Nelson 6fa5cc2683 Create README.md 2014-08-02 11:10:08 -07:00
Joe Nelson a7451f0e96 Idomatic range creation 2014-07-28 17:36:00 -07:00
Joe Nelson f6a4a98e74 Parse range queries 2014-07-28 17:23:24 -07:00
Joe Nelson 5760ec3620 Show (possibly composite) pkey in OPTIONS response 2014-07-20 23:32:26 -07:00
Joe Nelson 57af2bf511 Use versioned schemas in all requests
Fixes #7
2014-07-18 21:13:14 -07:00
Joe Nelson dd1547adea Use accept header version to set schema 2014-07-18 00:22:39 -07:00
Joe Nelson c4550f97b0 Report sql errors to client 2014-07-13 11:09:44 -07:00
Joe Nelson a28553dd45 Simplify app with a do block 2014-07-13 10:31:47 -07:00
Joe Nelson 919d827b24 Make response logic more dry and lazy 2014-07-13 10:18:58 -07:00
Joe Nelson d7a3685002 Split into another module 2014-07-12 16:18:03 -07:00
Joe Nelson 7f29e5f448 Allow filtering in table view 2014-07-12 13:41:43 -07:00
Joe Nelson c64dcc409f WIP Improperly quoted where predicates 2014-07-11 00:04:55 -07:00