-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[request] Downgrade role after test fixtures loaded #33
Comments
In your test environment config, put something like config.test_role = :your_frontend_db_role crashtech/torque-postgresql#33
But I didn't get the idea. Why you need another role/account when inserting fixtures? |
Maybe I am missing something. All I know is that superuser has to be used to successfully disable referential integrity. And I want to use actual role while testing to make sure default privileges are in effects etc. How would I specify a different connection to load fixtures after all triggers are disabled? |
Here is another idea... It is a known limitation that test environment has to use PostgreSQL superuser to be able to disable/enable triggers on fixtures loading.
I think it would be very nice if we could also issue
set role ...
to something configurable andreset role
at appropriate time. This way we can test things as they are meant to be tested with normal unprivileged user.The text was updated successfully, but these errors were encountered: