File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
crates/pgt_schema_cache/src Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,25 @@ mod tests {
106
106
name varchar(255) not null
107
107
);
108
108
109
+ -- multiple policies to test various commands
109
110
create policy public_policy
110
111
on public.users
111
112
for select
112
113
to public
113
114
using (true);
114
115
116
+ create policy public_policy_del
117
+ on public.users
118
+ for delete
119
+ to public
120
+ using (true);
121
+
122
+ create policy public_policy_ins
123
+ on public.users
124
+ for insert
125
+ to public
126
+ with check (true);
127
+
115
128
create policy admin_policy
116
129
on public.users
117
130
for all
@@ -157,7 +170,7 @@ mod tests {
157
170
. filter ( |p| p. schema_name == "public" )
158
171
. count ( ) ;
159
172
160
- assert_eq ! ( public_policies, 2 ) ;
173
+ assert_eq ! ( public_policies, 4 ) ;
161
174
162
175
let real_estate_policies = cache
163
176
. policies
You can’t perform that action at this time.
0 commit comments