comparison schema/run_tests.sh @ 307:750a9c9cd965

Use SQL UPDATE to update users This implies it's not a database error anymore to try to update a non-existent user. Thus, handle this as a HTTP-404 in the backend, which is in line with what GET does. Using UPDATE here will allow to GRANT column-wise privileges. The password has become part of the view to be updatable as well.
author Tom Gottfried <tom@intevation.de>
date Wed, 01 Aug 2018 15:49:38 +0200
parents 72062ca52746
children ac760b0f22a9
comparison
equal deleted inserted replaced
306:70592a18c5c6 307:750a9c9cd965
13 13
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 "DROP ROLE IF EXISTS $TEST_ROLES" \ 16 -c "DROP ROLE IF EXISTS $TEST_ROLES" \
17 -f tap_tests_data.sql \ 17 -f tap_tests_data.sql \
18 -c 'SELECT plan(40)' \ 18 -c 'SELECT plan(39)' \
19 -f auth_tests.sql \ 19 -f auth_tests.sql \
20 -f manage_users_tests.sql \ 20 -f manage_users_tests.sql \
21 -c 'SELECT * FROM finish()' 21 -c 'SELECT * FROM finish()'