Commit Graph
41 Commits
Author SHA1 Message Date
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
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 e7344bf16f extract test type, add useful functionality. 2014-09-04 01:00:48 -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 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 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