Skip to content

Commit 54367c1

Browse files
committed
test: update snapshots
1 parent 987fc96 commit 54367c1

File tree

4 files changed

+14
-153
lines changed

4 files changed

+14
-153
lines changed

nix/tests/expected/auth.out

Lines changed: 12 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,9 @@ group by
3535
ns.nspname, c.relname, r.rolname, c.relrowsecurity
3636
order by
3737
c.relname;
38-
schema_name | table_name | owner | rls_enabled | rls_policies
39-
-------------+-------------------+---------------------+-------------+--------------
40-
auth | audit_log_entries | supabase_auth_admin | f |
41-
auth | instances | supabase_auth_admin | f |
42-
auth | refresh_tokens | supabase_auth_admin | f |
43-
auth | schema_migrations | supabase_auth_admin | f |
44-
auth | users | supabase_auth_admin | f |
45-
(5 rows)
38+
schema_name | table_name | owner | rls_enabled | rls_policies
39+
-------------+------------+-------+-------------+--------------
40+
(0 rows)
4641

4742
-- auth schema objects with roles privileges
4843
select
@@ -67,100 +62,9 @@ order by
6762
c.relname,
6863
r.rolname,
6964
a.privilege_type;
70-
schema_name | table_name | role_name | privilege_type | is_grantable
71-
-------------+-------------------+---------------------+----------------+--------------
72-
auth | audit_log_entries | dashboard_user | DELETE | f
73-
auth | audit_log_entries | dashboard_user | INSERT | f
74-
auth | audit_log_entries | dashboard_user | REFERENCES | f
75-
auth | audit_log_entries | dashboard_user | SELECT | f
76-
auth | audit_log_entries | dashboard_user | TRIGGER | f
77-
auth | audit_log_entries | dashboard_user | TRUNCATE | f
78-
auth | audit_log_entries | dashboard_user | UPDATE | f
79-
auth | audit_log_entries | postgres | DELETE | f
80-
auth | audit_log_entries | postgres | INSERT | f
81-
auth | audit_log_entries | postgres | REFERENCES | f
82-
auth | audit_log_entries | postgres | SELECT | f
83-
auth | audit_log_entries | postgres | TRIGGER | f
84-
auth | audit_log_entries | postgres | TRUNCATE | f
85-
auth | audit_log_entries | postgres | UPDATE | f
86-
auth | audit_log_entries | supabase_auth_admin | DELETE | f
87-
auth | audit_log_entries | supabase_auth_admin | INSERT | f
88-
auth | audit_log_entries | supabase_auth_admin | REFERENCES | f
89-
auth | audit_log_entries | supabase_auth_admin | SELECT | f
90-
auth | audit_log_entries | supabase_auth_admin | TRIGGER | f
91-
auth | audit_log_entries | supabase_auth_admin | TRUNCATE | f
92-
auth | audit_log_entries | supabase_auth_admin | UPDATE | f
93-
auth | instances | dashboard_user | DELETE | f
94-
auth | instances | dashboard_user | INSERT | f
95-
auth | instances | dashboard_user | REFERENCES | f
96-
auth | instances | dashboard_user | SELECT | f
97-
auth | instances | dashboard_user | TRIGGER | f
98-
auth | instances | dashboard_user | TRUNCATE | f
99-
auth | instances | dashboard_user | UPDATE | f
100-
auth | instances | postgres | DELETE | f
101-
auth | instances | postgres | INSERT | f
102-
auth | instances | postgres | REFERENCES | f
103-
auth | instances | postgres | SELECT | f
104-
auth | instances | postgres | TRIGGER | f
105-
auth | instances | postgres | TRUNCATE | f
106-
auth | instances | postgres | UPDATE | f
107-
auth | instances | supabase_auth_admin | DELETE | f
108-
auth | instances | supabase_auth_admin | INSERT | f
109-
auth | instances | supabase_auth_admin | REFERENCES | f
110-
auth | instances | supabase_auth_admin | SELECT | f
111-
auth | instances | supabase_auth_admin | TRIGGER | f
112-
auth | instances | supabase_auth_admin | TRUNCATE | f
113-
auth | instances | supabase_auth_admin | UPDATE | f
114-
auth | refresh_tokens | dashboard_user | DELETE | f
115-
auth | refresh_tokens | dashboard_user | INSERT | f
116-
auth | refresh_tokens | dashboard_user | REFERENCES | f
117-
auth | refresh_tokens | dashboard_user | SELECT | f
118-
auth | refresh_tokens | dashboard_user | TRIGGER | f
119-
auth | refresh_tokens | dashboard_user | TRUNCATE | f
120-
auth | refresh_tokens | dashboard_user | UPDATE | f
121-
auth | refresh_tokens | postgres | DELETE | f
122-
auth | refresh_tokens | postgres | INSERT | f
123-
auth | refresh_tokens | postgres | REFERENCES | f
124-
auth | refresh_tokens | postgres | SELECT | f
125-
auth | refresh_tokens | postgres | TRIGGER | f
126-
auth | refresh_tokens | postgres | TRUNCATE | f
127-
auth | refresh_tokens | postgres | UPDATE | f
128-
auth | refresh_tokens | supabase_auth_admin | DELETE | f
129-
auth | refresh_tokens | supabase_auth_admin | INSERT | f
130-
auth | refresh_tokens | supabase_auth_admin | REFERENCES | f
131-
auth | refresh_tokens | supabase_auth_admin | SELECT | f
132-
auth | refresh_tokens | supabase_auth_admin | TRIGGER | f
133-
auth | refresh_tokens | supabase_auth_admin | TRUNCATE | f
134-
auth | refresh_tokens | supabase_auth_admin | UPDATE | f
135-
auth | schema_migrations | supabase_auth_admin | DELETE | f
136-
auth | schema_migrations | supabase_auth_admin | INSERT | f
137-
auth | schema_migrations | supabase_auth_admin | REFERENCES | f
138-
auth | schema_migrations | supabase_auth_admin | SELECT | f
139-
auth | schema_migrations | supabase_auth_admin | TRIGGER | f
140-
auth | schema_migrations | supabase_auth_admin | TRUNCATE | f
141-
auth | schema_migrations | supabase_auth_admin | UPDATE | f
142-
auth | users | dashboard_user | DELETE | f
143-
auth | users | dashboard_user | INSERT | f
144-
auth | users | dashboard_user | REFERENCES | f
145-
auth | users | dashboard_user | SELECT | f
146-
auth | users | dashboard_user | TRIGGER | f
147-
auth | users | dashboard_user | TRUNCATE | f
148-
auth | users | dashboard_user | UPDATE | f
149-
auth | users | postgres | DELETE | f
150-
auth | users | postgres | INSERT | f
151-
auth | users | postgres | REFERENCES | f
152-
auth | users | postgres | SELECT | f
153-
auth | users | postgres | TRIGGER | f
154-
auth | users | postgres | TRUNCATE | f
155-
auth | users | postgres | UPDATE | f
156-
auth | users | supabase_auth_admin | DELETE | f
157-
auth | users | supabase_auth_admin | INSERT | f
158-
auth | users | supabase_auth_admin | REFERENCES | f
159-
auth | users | supabase_auth_admin | SELECT | f
160-
auth | users | supabase_auth_admin | TRIGGER | f
161-
auth | users | supabase_auth_admin | TRUNCATE | f
162-
auth | users | supabase_auth_admin | UPDATE | f
163-
(91 rows)
65+
schema_name | table_name | role_name | privilege_type | is_grantable
66+
-------------+------------+-----------+----------------+--------------
67+
(0 rows)
16468

16569
-- auth indexes with owners
16670
select
@@ -182,21 +86,9 @@ where
18286
ns.nspname = 'auth'
18387
order by
18488
t.relname, i.relname;
185-
table_schema | table_name | index_name | index_owner
186-
--------------+-------------------+----------------------------------------+---------------------
187-
auth | audit_log_entries | audit_log_entries_pkey | supabase_auth_admin
188-
auth | audit_log_entries | audit_logs_instance_id_idx | supabase_auth_admin
189-
auth | instances | instances_pkey | supabase_auth_admin
190-
auth | refresh_tokens | refresh_tokens_instance_id_idx | supabase_auth_admin
191-
auth | refresh_tokens | refresh_tokens_instance_id_user_id_idx | supabase_auth_admin
192-
auth | refresh_tokens | refresh_tokens_pkey | supabase_auth_admin
193-
auth | refresh_tokens | refresh_tokens_token_idx | supabase_auth_admin
194-
auth | schema_migrations | schema_migrations_pkey | supabase_auth_admin
195-
auth | users | users_email_key | supabase_auth_admin
196-
auth | users | users_instance_id_email_idx | supabase_auth_admin
197-
auth | users | users_instance_id_idx | supabase_auth_admin
198-
auth | users | users_pkey | supabase_auth_admin
199-
(12 rows)
89+
table_schema | table_name | index_name | index_owner
90+
--------------+------------+------------+-------------
91+
(0 rows)
20092

20193
-- auth schema functions with owners
20294
select
@@ -213,23 +105,7 @@ where
213105
n.nspname = 'auth'
214106
order by
215107
p.proname;
216-
schema_name | function_name | owner
217-
-------------+---------------+---------------------
218-
auth | email | supabase_auth_admin
219-
auth | role | supabase_auth_admin
220-
auth | uid | supabase_auth_admin
221-
(3 rows)
222-
223-
-- auth service schema migrations
224-
select * from auth.schema_migrations;
225-
version
226-
----------------
227-
20171026211738
228-
20171026211808
229-
20171026211834
230-
20180103212743
231-
20180108183307
232-
20180119214651
233-
20180125194653
234-
(7 rows)
108+
schema_name | function_name | owner
109+
-------------+---------------+-------
110+
(0 rows)
235111

nix/tests/expected/roles.out

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -229,30 +229,19 @@ order by schema_order, schema_name, privilege_type, grantee, default_for;
229229
auth | CREATE | dashboard_user | supabase_admin
230230
auth | CREATE | supabase_admin | supabase_admin
231231
auth | CREATE | supabase_auth_admin | supabase_admin
232-
auth | DELETE | dashboard_user | supabase_auth_admin
233232
auth | DELETE | postgres | supabase_auth_admin
234-
auth | EXECUTE | dashboard_user | supabase_auth_admin
235233
auth | EXECUTE | postgres | supabase_auth_admin
236-
auth | INSERT | dashboard_user | supabase_auth_admin
237234
auth | INSERT | postgres | supabase_auth_admin
238-
auth | REFERENCES | dashboard_user | supabase_auth_admin
239235
auth | REFERENCES | postgres | supabase_auth_admin
240-
auth | SELECT | dashboard_user | supabase_auth_admin
241-
auth | SELECT | dashboard_user | supabase_auth_admin
242236
auth | SELECT | postgres | supabase_auth_admin
243237
auth | SELECT | postgres | supabase_auth_admin
244-
auth | TRIGGER | dashboard_user | supabase_auth_admin
245238
auth | TRIGGER | postgres | supabase_auth_admin
246-
auth | TRUNCATE | dashboard_user | supabase_auth_admin
247239
auth | TRUNCATE | postgres | supabase_auth_admin
248-
auth | UPDATE | dashboard_user | supabase_auth_admin
249-
auth | UPDATE | dashboard_user | supabase_auth_admin
250240
auth | UPDATE | postgres | supabase_auth_admin
251241
auth | UPDATE | postgres | supabase_auth_admin
252242
auth | USAGE | anon | supabase_admin
253243
auth | USAGE | authenticated | supabase_admin
254244
auth | USAGE | dashboard_user | supabase_admin
255-
auth | USAGE | dashboard_user | supabase_auth_admin
256245
auth | USAGE | postgres | supabase_admin
257246
auth | USAGE | postgres | supabase_auth_admin
258247
auth | USAGE | service_role | supabase_admin
@@ -521,7 +510,7 @@ order by schema_order, schema_name, privilege_type, grantee, default_for;
521510
vault | USAGE | postgres | supabase_admin
522511
vault | USAGE | service_role | supabase_admin
523512
vault | USAGE | supabase_admin | supabase_admin
524-
(389 rows)
513+
(378 rows)
525514

526515
-- postgres can alter API roles' timeout
527516
set role postgres;

nix/tests/expected/z_17_roles.out

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ order by schema_order, schema_name, privilege_type, grantee, default_for;
104104
public | MAINTAIN | postgres | postgres
105105
public | MAINTAIN | service_role | supabase_admin
106106
public | MAINTAIN | service_role | postgres
107-
auth | MAINTAIN | dashboard_user | supabase_auth_admin
108107
auth | MAINTAIN | postgres | supabase_auth_admin
109108
extensions | MAINTAIN | postgres | supabase_admin
110109
graphql | MAINTAIN | anon | supabase_admin
@@ -124,7 +123,7 @@ order by schema_order, schema_name, privilege_type, grantee, default_for;
124123
storage | MAINTAIN | authenticated | postgres
125124
storage | MAINTAIN | postgres | postgres
126125
storage | MAINTAIN | service_role | postgres
127-
(28 rows)
126+
(27 rows)
128127

129128
-- version specific role memberships
130129
select

nix/tests/sql/auth.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,3 @@ where
9292
n.nspname = 'auth'
9393
order by
9494
p.proname;
95-
96-
-- auth service schema migrations
97-
select * from auth.schema_migrations;

0 commit comments

Comments
 (0)