Skip to content

Commit e788c6c

Browse files
test(target-postgres): planner policy fixtures state absent withCheck/dependsOn explicitly
The five RLS planner suites' node-construction callbacks spell out the required-but-undefined keys, keeping this branch's typecheck green on its own (the same change previously rode on the follow-up branch). Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
1 parent 5ad8913 commit e788c6c

5 files changed

Lines changed: 10 additions & 0 deletions

File tree

packages/3-targets/3-targets/postgres/test/migrations/rls-enablement-planner.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ function actualSchema(options: {
135135
roles: [...policy.roles],
136136
using: policy.using,
137137
permissive: policy.permissive,
138+
withCheck: undefined,
139+
dependsOn: undefined,
138140
}),
139141
),
140142
}),

packages/3-targets/3-targets/postgres/test/migrations/rls-not-equal-planner.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ function actualSchema(livePolicy: PostgresRlsPolicy): PostgresDatabaseSchemaNode
113113
roles: [...livePolicy.roles],
114114
using: livePolicy.using,
115115
permissive: livePolicy.permissive,
116+
prefix: undefined,
117+
withCheck: undefined,
118+
dependsOn: undefined,
116119
}),
117120
],
118121
}),

packages/3-targets/3-targets/postgres/test/migrations/rls-planner.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ function policyNode(policy: PostgresRlsPolicy): PostgresPolicySchemaNode {
146146
using: policy.using,
147147
withCheck: policy.withCheck,
148148
permissive: policy.permissive,
149+
dependsOn: undefined,
149150
});
150151
}
151152

packages/3-targets/3-targets/postgres/test/migrations/rls-rename-planner.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ function actualSchema(policies: readonly PostgresRlsPolicy[]): PostgresDatabaseS
127127
roles: [...policy.roles],
128128
using: policy.using,
129129
permissive: policy.permissive,
130+
withCheck: undefined,
131+
dependsOn: undefined,
130132
}),
131133
),
132134
}),

packages/3-targets/3-targets/postgres/test/migrations/rls-verdict-matrix.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ function actualSchema(options: {
122122
roles: [...policy.roles],
123123
using: policy.using,
124124
permissive: policy.permissive,
125+
withCheck: undefined,
126+
dependsOn: undefined,
125127
}),
126128
),
127129
}),

0 commit comments

Comments
 (0)