mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: convert dbauthz tests to also run with Postgres (#15862)
Another PR to address https://github.com/coder/coder/issues/15109. - adds the DisableForeignKeysAndTriggers utility, which simplifies converting tests from in-mem to postgres - converts the dbauthz test suite to pass on both the in-mem db and Postgres
This commit is contained in:
@ -44,7 +44,7 @@ func TestAuthzRecorder(t *testing.T) {
|
||||
require.NoError(t, rec.AllAsserted(), "all assertions should have been made")
|
||||
})
|
||||
|
||||
t.Run("Authorize&Prepared", func(t *testing.T) {
|
||||
t.Run("Authorize_Prepared", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
rec := &coderdtest.RecordingAuthorizer{
|
||||
|
Reference in New Issue
Block a user