Ruslan Talpa and Joe Nelson
16fd3a57ff
Fix #746 ( #769 )
...
also fix broken text env
After the last couple of commits the tests ran correctly only on a
fresh db, in addition, the roles within the db were not created/dropped
on each request and we need that since their privileges differ and we
need to to have an absolute clean db on each execution
2016-12-18 15:46:53 -08:00
dsimunic and Joe Nelson
0d85152e42
Improve test db management ( #747 )
2016-12-01 21:06:10 -08:00
Ruslan Talpa
211e3d4141
fix relation detection bug and allow offset on lower levels
2016-10-05 11:34:07 +03:00
Joe Nelson
5a166e8e80
Fix custom pre-request handler
...
Uses Ruslan's technique
2016-09-27 23:17:08 -07:00
Joe Nelson
06363ccc77
WIP: add argument for custom pre-request handler
2016-09-27 00:19:05 -07:00
Joe Nelson
12a8c682bd
Use sql to generate jwt, rather than custom haskell
2016-09-24 21:32:47 -07:00
Joe Nelson and GitHub
f3b79bcc40
Use table alias unlikely to conflict with a column name ( #705 )
2016-09-08 08:16:47 -07:00
Joe Nelson
cf16f90fab
Merge pull request #590 from begriffs/proper-403
...
Return proper 401/403 when access denied
2016-05-17 22:56:55 -07:00
Ruslan Talpa
9e6542680b
Fix include entities from the same parent table using two different foreign keys
2016-05-16 15:36:18 +03:00
Joe Nelson
18e3c30ad8
Return proper 401/403 when access denied
...
Fixes #584
2016-05-15 00:56:47 -07:00
Joe Nelson
31738d745f
Regression test for read/write unicode table names
2016-03-25 15:14:00 -07:00
Joe Nelson
4cc08a11e7
Prevent duplicate call to stored procs
...
Reuse a CTE for results of call
2016-03-12 18:28:36 -08:00
Ruslan Talpa
62af792add
Add failing test to test correct view column detection
2016-02-29 11:37:23 +02:00
Simone Scarduzio
74d76c690f
Adding two test cases for 469
2016-01-24 14:52:14 +00:00
calebmer
3a3d4038cb
Add tests for wierd usecases
2015-12-29 15:24:27 -05:00
Ruslan Talpa
4544ce3255
Fix #399 insert records in tables with no SELECT privileges
2015-12-16 10:16:14 +02:00
Diogo Biazus
4cc0189ac9
Prefixes all roles used in test suite with postgrest_test
2015-12-08 12:03:46 -05:00
Diogo Biazus
d95aeb15f9
Reduces privileges fixture to a smaller file so it's manageable without the use of pg_dump
2015-12-08 11:50:13 -05:00
Diogo Biazus
6cc8ca707f
Separates privileges in another fixture
2015-12-08 11:33:22 -05:00