Mercurial > gemma
diff schema/auth_tests.sql @ 196:b67208d82543
Make test output more comprehensive
Running all tests in one transaction ensures the final output tells
about any failing test, not just in the last transaction (i.e.
test script).
The price is that no traces of the tests are left in the database
because we have to rollback in order to have no left-over test roles
in the cluster.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 20 Jul 2018 18:31:45 +0200 |
parents | 5dc8e734487a |
children | 88d21c29cf04 |
line wrap: on
line diff
--- a/schema/auth_tests.sql Fri Jul 20 17:28:16 2018 +0200 +++ b/schema/auth_tests.sql Fri Jul 20 18:31:45 2018 +0200 @@ -1,7 +1,6 @@ -- -- pgTAP test script for privileges and RLS policies -- -SELECT plan(16); -- Give number of tests that have to be run -- -- Run tests as unprivileged user @@ -90,8 +89,3 @@ SELECT is_empty('DELETE FROM users.templates WHERE template_name = ''RO'' RETURNING *', 'Waterway admin cannot delete templates for other country'); - --- --- finish tests --- -SELECT * FROM finish();