You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.with_command('ALTER DEFAULT PRIVILEGES GRANT ALL ON SCHEMAS TO "test"')
158
+
.with_unless("SELECT 1 WHERE EXISTS (SELECT * FROM pg_default_acl AS da LEFT JOIN pg_namespace AS n ON da.defaclnamespace = n.oid WHERE 'test=UC' = ANY (defaclacl) and defaclobjtype = 'n')")
159
+
# rubocop:enable Layout/LineLength
160
+
end
161
+
end
162
+
163
+
context'nested schemas are invalid'do
164
+
let:paramsdo
165
+
{
166
+
db: 'test',
167
+
role: 'test',
168
+
privilege: 'all',
169
+
object_type: 'schemas',
170
+
schema: 'public',
171
+
}
172
+
end
173
+
174
+
let:pre_conditiondo
175
+
"class {'postgresql::server':}"
176
+
end
177
+
178
+
it{is_expected.tocompile.and_raise_error(%r{Cannot alter default schema permissions within a schema})}
179
+
end
136
180
end
137
181
138
182
context'with specific db connection settings - default port'do
0 commit comments