Mercurial > gemma
comparison schema/run_tests.sh @ 334:df1fc589ad9d
Prevent Waterway Admins from updating users from their country
We need to ensure this in the trigger function, because we cannot apply
different rules for SELECT and UPDATE like with RLS policies on real tables.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 03 Aug 2018 17:23:55 +0200 |
parents | 363983d5c567 |
children | c6bd6ed18942 |
comparison
equal
deleted
inserted
replaced
333:154e0f5bff0a | 334:df1fc589ad9d |
---|---|
14 # Drop test roles, add test data and run tests | 14 # Drop test roles, add test data and run tests |
15 psql -qXv ON_ERROR_STOP= -v -d gemma_test \ | 15 psql -qXv ON_ERROR_STOP= -v -d gemma_test \ |
16 -c 'SET client_min_messages TO WARNING' \ | 16 -c 'SET client_min_messages TO WARNING' \ |
17 -c "DROP ROLE IF EXISTS $TEST_ROLES" \ | 17 -c "DROP ROLE IF EXISTS $TEST_ROLES" \ |
18 -f tap_tests_data.sql \ | 18 -f tap_tests_data.sql \ |
19 -c 'SELECT plan(44)' \ | 19 -c 'SELECT plan(45)' \ |
20 -f auth_tests.sql \ | 20 -f auth_tests.sql \ |
21 -f manage_users_tests.sql \ | 21 -f manage_users_tests.sql \ |
22 -c 'SELECT * FROM finish()' | 22 -c 'SELECT * FROM finish()' |