Commit Graph
4667 Commits
Author SHA1 Message Date
Joe Nelson 598d70579e WIP: change db roles based on HTTP basic auth headers 2014-09-29 22:52:02 -07:00
Joe Nelson b29e07538c Manage passwords with bcrypt 2014-09-29 17:45:36 -07:00
Adam C. BakerandJoe Nelson 14fa20f0e6 addUser function. 2014-09-29 15:52:01 -07:00
Joe Nelson e5c4567166 Gzip compression 2014-09-29 14:06:42 -07:00
Joe Nelson 2f584be0d6 HTTPS only 2014-09-29 14:06:20 -07:00
Joe Nelson 631f651f44 List table columns as array, not hash 2014-09-29 11:40:20 -07:00
Joe Nelson 29d278f6bd One string conversion to rule them all 2014-09-28 10:41:37 -07:00
Adam C. Baker 37f2aef212 don't add bogus user. 2014-09-26 17:50:51 -07:00
Adam C. Baker 34b53dd6b4 don't bother with access to public in schema fixture. 2014-09-26 17:36:26 -07:00
Adam C. Baker f203982527 have test fixtures load roles too. 2014-09-26 16:58:55 -07:00
Adam C. Baker 29b70ca035 selective exports hides implementation details. 2014-09-26 13:25:32 -07:00
Adam C. Baker a93065a887 specify schema as a string everywhere in the app.
This will make it easier to support semantic API versioning,
and makes code reuse easier right now.
2014-09-26 12:51:36 -07:00
Adam C. Baker 88f9d67e92 kill library entry. Add bcrypt. 2014-09-25 15:18:58 -07:00
Adam C. Baker cf5510c425 upgrade hspec-wai, get tests passing. 2014-09-24 19:08:05 -07:00
Joe Nelson 7f9e97b16d Better test output 2014-09-23 22:04:04 -07:00
Joe Nelson 7be1cc37dc Merge pull request #32 from ryancharette/master
readme:
2014-09-23 22:03:08 -07:00
Ryan Charette 8a277fbd81 readme:
Updates README.md to add postgres role to superuser.
2014-09-23 21:41:02 -07:00
Joe Nelson d7df538feb Test user db ownership 2014-09-23 16:45:52 -07:00
Joe Nelson a66504e873 Installation and test instructions 2014-09-23 16:40:09 -07:00
Joe Nelson 909661f899 Remove random comments 2014-09-11 20:22:52 -07:00
Joe Nelson 016490bea7 Fix hlint 2014-09-10 21:32:30 -07:00
Joe Nelson d3ae4aca2b All tests passing except hlint warning about duplicated code blocks 2014-09-10 21:20:56 -07:00
Joe Nelson dd9d9cb283 Disallow non-idempotent PUTs 2014-09-10 20:44:17 -07:00
Joe Nelson 9f2a01ae46 WIP: do crazy postgres upsert 2014-09-09 22:46:42 -07:00
Joe Nelson a49fb69e58 Appease cabal warning 2014-09-09 22:46:23 -07:00
Joe Nelson 22114532e6 WIP: put requests 2014-09-07 22:03:45 -07:00
Joe Nelson a4227b94d8 Add Content-Location header to GET responses
Fixes #26
2014-09-07 17:01:35 -07:00
Joe Nelson 4d81959a2a Fix Location link in post to db lacking a primary key
Fixes #29
2014-09-07 14:12:51 -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
Adam C. Baker 7c93c788fa fucking redundant import warnings breaking my build. 2014-09-04 13:09:27 -07:00
Adam C. Baker 16256562f1 nail down optparse-applicative version 2014-09-04 12:45:58 -07:00
Adam C. Baker 9cae4f1354 test insert errors. 2014-09-04 01:01:27 -07:00
Adam C. Baker e7344bf16f extract test type, add useful functionality. 2014-09-04 01:00:48 -07:00
Adam C. Baker e3bf277bca Rescue unit test 2014-09-03 16:36:17 -07:00
Joe Nelson a1fc4e8f78 A script to recreate the fixture from the current test schema 2014-09-01 21:16:18 -07:00
Joe Nelson d77e00d93b Ensure location header contains _a_ number, not a particular number 2014-09-01 21:13:46 -07:00
Joe Nelson 74e16abaa1 Alphabetize table names in "/" to make test pass reproducibly 2014-09-01 21:06:45 -07:00
Joe Nelson cf42d80fc4 Be less restrictive about ghc versions 2014-08-27 21:52:00 -07:00
Joe Nelson 910f865303 Get strict on warnings for CI and for life 2014-08-27 20:05:08 -07:00
Joe Nelson e454fc4526 Include no_pk table for future tests 2014-08-27 19:53:18 -07:00
Joe Nelson d06674a1e8 Test insertion of various json types 2014-08-27 12:48:41 -07:00
Joe Nelson 134ca1f2a8 Parse JSON -> SqlValue as Int as well as Double when possible 2014-08-26 22:38:09 -07:00
Joe Nelson c007dbb2b2 WIP: Testing compound key insert reveals weird type conversion 2014-08-25 19:43:23 -07:00
Joe Nelson eef7860922 Test failed post, and clean up specs 2014-08-25 17:27:21 -07:00
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