Skip to content

Add ADMIN OPTION when granting a role #679

Add ADMIN OPTION when granting a role

Add ADMIN OPTION when granting a role #679

Triggered via pull request October 13, 2024 21:26
Status Failure
Total duration 8m 40s
Artifacts

ci.yml

on: pull_request
Spec  /  Setup Test Matrix
32s
Spec / Setup Test Matrix
Matrix: Spec / spec
Acceptance  /  Setup Test Matrix
Acceptance / Setup Test Matrix
Matrix: Acceptance / acceptance
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

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.