Add ADMIN OPTION when granting a role #679
ci.yml
on: pull_request
Spec
/
Setup Test Matrix
32s
Matrix: Spec / spec
Matrix: Acceptance / acceptance
Waiting for pending jobs
Annotations
6 errors
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2):
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 / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2):
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\" "
|
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)
Process completed with exit code 1.
|
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7):
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 / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7):
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\" "
|
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)
Process completed with exit code 1.
|