Add ADMIN OPTION when granting a role #679
Annotations
3 errors
spec/defines/server/grant_role_spec.rb#L22
postgresql::server::grant_role with mandatory arguments only is expected to contain Postgresql_psql[grant_role:test] that requires Class[postgresql::server]
Failure/Error:
expect(subject).to contain_postgresql_psql("grant_role:#{title}")
.with(command: "GRANT \"#{params[:group]}\" TO \"#{params[:role]}\"",
unless: "SELECT 1 WHERE EXISTS (SELECT 1 FROM pg_roles AS r_role JOIN pg_auth_members AS am ON r_role.oid = am.member JOIN pg_roles AS r_group ON r_group.oid = am.roleid WHERE r_group.rolname = '#{params[:group]}' AND r_role.rolname = '#{params[:role]}') = true") # rubocop:disable Layout/LineLength
.that_requires('Class[postgresql::server]')
expected that the catalogue would contain Postgresql_psql[grant_role:test] with command set to "GRANT \"my_group\" TO \"my_role\"" but it is set to "GRANT \"my_group\" TO \"my_role\" "
|
spec/defines/server/grant_role_spec.rb#L37
postgresql::server::grant_role with db arguments is expected to contain Postgresql_psql[grant_role:test] that requires Class[postgresql::server]
Failure/Error:
expect(subject).to contain_postgresql_psql("grant_role:#{title}")
.with(command: "GRANT \"#{params[:group]}\" TO \"#{params[:role]}\"",
unless: "SELECT 1 WHERE EXISTS (SELECT 1 FROM pg_roles AS r_role JOIN pg_auth_members AS am ON r_role.oid = am.member JOIN pg_roles AS r_group ON r_group.oid = am.roleid WHERE r_group.rolname = '#{params[:group]}' AND r_role.rolname = '#{params[:role]}') = true", # rubocop:disable Layout/LineLength
db: params[:psql_db], psql_user: params[:psql_user],
port: params[:port]).that_requires('Class[postgresql::server]')
expected that the catalogue would contain Postgresql_psql[grant_role:test] with command set to "GRANT \"my_group\" TO \"my_role\"" but it is set to "GRANT \"my_group\" TO \"my_role\" "
|
|
This job failed
Loading