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
|
f689ce684a
|
Provide proper JSON details for errors
Refines HTTP codes for server vs client problems
Fixes #92
Fixes #40
|
2014-12-21 19:34:21 -08:00 |
|
Joe Nelson
|
dbe1f59066
|
Update project name in strings
Fixes #105
|
2014-12-17 10:24:24 -08:00 |
|
Joe Nelson
|
9712549d64
|
Use "::unknown" type casts to overcome binary protocol restrictions
Fixes #112
|
2014-12-16 20:09:01 -08:00 |
|
Joe Nelson
|
19b62c00ee
|
Enclose entire app response in single Tx
|
2014-12-12 13:55:09 -08:00 |
|
Joe Nelson
|
beb61d8a05
|
Pend a test until complication is resolved with #107
|
2014-12-06 18:46:34 -08:00 |
|
Joe Nelson
|
605372f829
|
Set permissions correctly for structure spec
|
2014-12-06 17:42:42 -08:00 |
|
Joe Nelson
|
7d58097449
|
Be sure to reset db before ALL tests
|
2014-12-06 17:42:42 -08:00 |
|
Joe Nelson
|
a45718e992
|
Re-enable authentication
|
2014-12-06 17:42:22 -08:00 |
|
Joe Nelson
|
13bc9a4510
|
Lock hasql version for now
|
2014-12-06 17:42:22 -08:00 |
|
Joe Nelson
|
5900475460
|
Reset db between tests rather than using transactions to accomodate Hasql limitation
|
2014-12-06 17:42:21 -08:00 |
|
Joe Nelson
|
4eb4d8da1e
|
Removed test for RFC compliance
Who would send Content-Range anyway, that is weird in this context
|
2014-12-06 17:42:21 -08:00 |
|
Joe Nelson
|
f1ecbec543
|
Do not quote params in Location header
Also treat the enum field in OPTIONS as an array uniformly
|
2014-12-06 17:42:21 -08:00 |
|
Joe Nelson
|
f6b7b42d75
|
Feature specs compile
|
2014-12-06 17:42:20 -08:00 |
|
Joe Nelson
|
58adb5e828
|
Allow patch requests
Fixes #87
|
2014-11-06 23:49:29 -08:00 |
|
Joe Nelson
|
76ea92bfce
|
Derp, actually put the data on a put request
|
2014-11-06 18:31:13 -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
|
572c235b79
|
Add /dbapi/users route for creating new user
|
2014-10-21 15:01:04 -07:00 |
|
Joe Nelson
|
c163e2156c
|
Indicate input json parse error with better message
Fixes #42
|
2014-10-14 19:23:56 -07:00 |
|
Joe Nelson
|
be2f1f8e9e
|
Merge pull request #83 from begriffs/404
Issue 404 for nonexistent tables
|
2014-10-14 19:02:06 -07:00 |
|
Joe Nelson
|
93c573ab4f
|
Issue 404 for nonexistent tables
Fixes #44
|
2014-10-14 18:58:55 -07:00 |
|
Joe Nelson
|
37c0a2d831
|
All tests passing, none pending
Standardize the order of enum value lists
|
2014-10-14 15:03:07 -07:00 |
|
Joe Nelson
|
f1feaecf27
|
Fix Content-Location header when there are no params
Fixes #68
|
2014-10-14 11:49:36 -07:00 |
|
Joe Nelson
|
21e4e583ec
|
Return [] rather than nothing on no results
Fixes #70
|
2014-10-14 11:23:26 -07:00 |
|
Joe Nelson
|
80c55789b5
|
Remove getHeader, fixes #77
|
2014-10-14 10:30:23 -07:00 |
|
Joe Nelson
|
fbb13f4ab3
|
Accept order query param
Fixes #66
|
2014-10-13 22:29:28 -07:00 |
|
Joe Nelson
|
9c84cf9c3d
|
Fix lint warnings
|
2014-10-13 18:16:41 -07:00 |
|
Adam C. Baker
|
fd237b33b1
|
fix/unpend tests.
|
2014-10-13 16:54:21 -07:00 |
|
Adam C. Baker
|
57f4d478fc
|
pending failing options test.
|
2014-10-10 17:01:20 -07:00 |
|
Joe Nelson
|
a34051b177
|
Successful PUT requests actually return 200
|
2014-10-09 18:00:37 -07:00 |
|
Adam C. Baker
|
e5db9bc58e
|
remove top level binding in test script
|
2014-10-09 14:14:53 -07:00 |
|
Adam C. Baker
|
5dd3f9c79a
|
Merge branch 'fk'
Conflicts:
src/PgStructure.hs
test/Feature/StructureSpec.hs
test/fixtures/schema.sql
|
2014-10-09 12:30:39 -07:00 |
|
Joe Nelson
|
ecff987f31
|
Include "enum" field in column details
|
2014-10-08 16:51:42 -07:00 |
|
Adam C. Baker
|
ee02a98cf2
|
emit references for columns with foreign keys
|
2014-10-08 16:38:12 -07:00 |
|
Joe Nelson
|
b52af7ac66
|
Make tests pending and revisit after Friday deadline
|
2014-10-08 14:58:38 -07:00 |
|
Joe Nelson
|
527d51670c
|
WIP: Trap postgres errors in middleware
Fixes #39
|
2014-10-08 14:58:38 -07:00 |
|
Joe Nelson
|
68d0a38806
|
WIP: feature specs for auth
|
2014-10-08 14:48:31 -07:00 |
|
Joe Nelson
|
8fbe3839a6
|
Allow browsers to load table OPTIONS after preflight
Fixes #51
|
2014-10-07 14:55:11 -07:00 |
|
Joe Nelson
|
496e8421a9
|
Provide column default values in OPTIONS
Fixes #43
|
2014-10-07 11:56:54 -07:00 |
|
Joe Nelson
|
2f37b6caeb
|
Rudimentary cors feature spec
|
2014-10-03 16:00:06 -07:00 |
|
Joe Nelson
|
631f651f44
|
List table columns as array, not hash
|
2014-09-29 11:40:20 -07:00 |
|
Adam C. Baker
|
cf5510c425
|
upgrade hspec-wai, get tests passing.
|
2014-09-24 19:08:05 -07:00 |
|
Joe Nelson
|
9f2a01ae46
|
WIP: do crazy postgres upsert
|
2014-09-09 22:46:42 -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 |
|