test: Increase test coverage on auditable resources (#7038)

* test: Increase test coverage on auditable resources

When adding a new audit resource, we also need to add it to the
function switch statements. This is a likely mistake, now a unit
test will check this for you
This commit is contained in:
Steven Masley
2023-04-06 16:16:53 -05:00
committed by GitHub
parent 24d8644c0b
commit b2892c3d17
6 changed files with 114 additions and 5 deletions

View File

@ -0,0 +1,2 @@
-- It's not possible to drop enum values from enum types, so the UP has "IF NOT
-- EXISTS".

View File

@ -0,0 +1 @@
ALTER TYPE resource_type ADD VALUE IF NOT EXISTS 'workspace_proxy';