File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
crates/pgt_schema_cache/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,10 +125,10 @@ mod tests {
125
125
owner_id int not null
126
126
);
127
127
128
- create policy owner_policy
128
+ create policy test_nologin_policy
129
129
on real_estate.properties
130
130
for update
131
- to owner
131
+ to test_nologin
132
132
using (owner_id = current_user::int);
133
133
"# ;
134
134
@@ -186,13 +186,13 @@ mod tests {
186
186
let owner_policy = cache
187
187
. policies
188
188
. iter ( )
189
- . find ( |p| p. name == "owner_policy " )
189
+ . find ( |p| p. name == "test_nologin_policy " )
190
190
. unwrap ( ) ;
191
191
assert_eq ! ( owner_policy. table_name, "properties" ) ;
192
192
assert_eq ! ( owner_policy. schema_name, "real_estate" ) ;
193
193
assert ! ( owner_policy. is_permissive) ;
194
194
assert_eq ! ( owner_policy. command, PolicyCommand :: Update ) ;
195
- assert_eq ! ( owner_policy. role_names, vec![ "owner " ] ) ;
195
+ assert_eq ! ( owner_policy. role_names, vec![ "test_nologin " ] ) ;
196
196
assert_eq ! (
197
197
owner_policy. security_qualification,
198
198
Some ( "(owner_id = (CURRENT_USER)::integer)" . into( ) )
You can’t perform that action at this time.
0 commit comments