Add E2E tests for Group Secrets permissions

What does this MR do and why?

This MR adds the second set of E2E tests for the group secret manager feature. Here we are testing the ability to create various kinds of permissions and to delete permissions for the secrets manager.

Additional changes:

  • Extracting the secrets manager permissions test methods into a shared page component that can be used for both project & group tests
  • Similar to projects, created the group_secret_permission_shared_context.rb

This work primarily tries to achieve test parity with the existing project secret manager specs

Fixes #597721

References

#574063

How to set up and validate locally

For running this test locally in the GDK, having OpenBao setup is needed.

Then from the qa directory:

bundle exec rspec qa/specs/features/ee/browser_ui/10_software_supply_chain_security/secrets_management/group_secrets_manager/permissions/create_spec.rb

bundle exec rspec qa/specs/features/ee/browser_ui/10_software_supply_chain_security/secrets_management/group_secrets_manager/permissions/delete_spec.rb

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Ahmad Hussein

Merge request reports

Loading