Skip to content

Commit cc38757

Browse files
adjust test
1 parent b37adda commit cc38757

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/pgt_schema_cache/src/policies.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ mod tests {
125125
owner_id int not null
126126
);
127127
128-
create policy owner_policy
128+
create policy test_nologin_policy
129129
on real_estate.properties
130130
for update
131-
to owner
131+
to test_nologin
132132
using (owner_id = current_user::int);
133133
"#;
134134

@@ -186,13 +186,13 @@ mod tests {
186186
let owner_policy = cache
187187
.policies
188188
.iter()
189-
.find(|p| p.name == "owner_policy")
189+
.find(|p| p.name == "test_nologin_policy")
190190
.unwrap();
191191
assert_eq!(owner_policy.table_name, "properties");
192192
assert_eq!(owner_policy.schema_name, "real_estate");
193193
assert!(owner_policy.is_permissive);
194194
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"]);
196196
assert_eq!(
197197
owner_policy.security_qualification,
198198
Some("(owner_id = (CURRENT_USER)::integer)".into())

0 commit comments

Comments
 (0)