Skip to content

Commit f440480

Browse files
committed
fix: refactor tests to be closer to production defaults and config
1 parent 2ca604b commit f440480

12 files changed

+109
-16720
lines changed

nix/tests/expected/pgmq.out

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -168,48 +168,48 @@ where
168168
n.nspname = 'pgmq'
169169
order by
170170
p.proname;
171-
schema_name | function_name | owner
172-
-------------+-------------------------------+----------------
173-
pgmq | _belongs_to_pgmq | supabase_admin
174-
pgmq | _ensure_pg_partman_installed | supabase_admin
175-
pgmq | _extension_exists | supabase_admin
176-
pgmq | _get_partition_col | supabase_admin
177-
pgmq | _get_pg_partman_major_version | supabase_admin
178-
pgmq | _get_pg_partman_schema | supabase_admin
179-
pgmq | archive | supabase_admin
180-
pgmq | archive | supabase_admin
181-
pgmq | convert_archive_partitioned | supabase_admin
182-
pgmq | create | supabase_admin
183-
pgmq | create_non_partitioned | supabase_admin
184-
pgmq | create_partitioned | supabase_admin
185-
pgmq | create_unlogged | supabase_admin
186-
pgmq | delete | supabase_admin
187-
pgmq | delete | supabase_admin
188-
pgmq | detach_archive | supabase_admin
189-
pgmq | drop_queue | supabase_admin
190-
pgmq | drop_queue | supabase_admin
191-
pgmq | format_table_name | supabase_admin
192-
pgmq | list_queues | supabase_admin
193-
pgmq | metrics | supabase_admin
194-
pgmq | metrics_all | supabase_admin
195-
pgmq | pop | supabase_admin
196-
pgmq | purge_queue | supabase_admin
197-
pgmq | read | supabase_admin
198-
pgmq | read_with_poll | supabase_admin
199-
pgmq | send | supabase_admin
200-
pgmq | send | supabase_admin
201-
pgmq | send | supabase_admin
202-
pgmq | send | supabase_admin
203-
pgmq | send | supabase_admin
204-
pgmq | send | supabase_admin
205-
pgmq | send_batch | supabase_admin
206-
pgmq | send_batch | supabase_admin
207-
pgmq | send_batch | supabase_admin
208-
pgmq | send_batch | supabase_admin
209-
pgmq | send_batch | supabase_admin
210-
pgmq | send_batch | supabase_admin
211-
pgmq | set_vt | supabase_admin
212-
pgmq | validate_queue_name | supabase_admin
171+
schema_name | function_name | owner
172+
-------------+-------------------------------+----------
173+
pgmq | _belongs_to_pgmq | postgres
174+
pgmq | _ensure_pg_partman_installed | postgres
175+
pgmq | _extension_exists | postgres
176+
pgmq | _get_partition_col | postgres
177+
pgmq | _get_pg_partman_major_version | postgres
178+
pgmq | _get_pg_partman_schema | postgres
179+
pgmq | archive | postgres
180+
pgmq | archive | postgres
181+
pgmq | convert_archive_partitioned | postgres
182+
pgmq | create | postgres
183+
pgmq | create_non_partitioned | postgres
184+
pgmq | create_partitioned | postgres
185+
pgmq | create_unlogged | postgres
186+
pgmq | delete | postgres
187+
pgmq | delete | postgres
188+
pgmq | detach_archive | postgres
189+
pgmq | drop_queue | postgres
190+
pgmq | drop_queue | postgres
191+
pgmq | format_table_name | postgres
192+
pgmq | list_queues | postgres
193+
pgmq | metrics | postgres
194+
pgmq | metrics_all | postgres
195+
pgmq | pop | postgres
196+
pgmq | purge_queue | postgres
197+
pgmq | read | postgres
198+
pgmq | read_with_poll | postgres
199+
pgmq | send | postgres
200+
pgmq | send | postgres
201+
pgmq | send | postgres
202+
pgmq | send | postgres
203+
pgmq | send | postgres
204+
pgmq | send | postgres
205+
pgmq | send_batch | postgres
206+
pgmq | send_batch | postgres
207+
pgmq | send_batch | postgres
208+
pgmq | send_batch | postgres
209+
pgmq | send_batch | postgres
210+
pgmq | send_batch | postgres
211+
pgmq | set_vt | postgres
212+
pgmq | validate_queue_name | postgres
213213
(40 rows)
214214

215215
ROLLBACK;

nix/tests/expected/roles.out

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,20 @@ order by schema_order, schema_name, privilege_type, grantee, default_for;
427427
realtime | USAGE | postgres | supabase_admin
428428
realtime | USAGE | postgres | supabase_admin
429429
realtime | USAGE | supabase_admin | supabase_admin
430+
repack | CREATE | postgres | supabase_admin
431+
repack | CREATE | supabase_admin | supabase_admin
432+
repack | DELETE | postgres | supabase_admin
433+
repack | INSERT | postgres | supabase_admin
434+
repack | REFERENCES | postgres | supabase_admin
435+
repack | SELECT | postgres | supabase_admin
436+
repack | SELECT | postgres | supabase_admin
437+
repack | TRIGGER | postgres | supabase_admin
438+
repack | TRUNCATE | postgres | supabase_admin
439+
repack | UPDATE | postgres | supabase_admin
440+
repack | UPDATE | postgres | supabase_admin
441+
repack | USAGE | postgres | supabase_admin
442+
repack | USAGE | postgres | supabase_admin
443+
repack | USAGE | supabase_admin | supabase_admin
430444
storage | CREATE | dashboard_user | supabase_admin
431445
storage | CREATE | supabase_admin | supabase_admin
432446
storage | CREATE | supabase_storage_admin | supabase_admin
@@ -485,7 +499,7 @@ order by schema_order, schema_name, privilege_type, grantee, default_for;
485499
vault | USAGE | postgres | supabase_admin
486500
vault | USAGE | service_role | supabase_admin
487501
vault | USAGE | supabase_admin | supabase_admin
488-
(357 rows)
502+
(371 rows)
489503

490504
-- postgres can alter API roles' timeout
491505
set role postgres;

0 commit comments

Comments
 (0)