E2E test of the Compliance Framework Report MVC
Summary
Add an e2e test for the Compliance Framework Report MVC: gitlab-org&9631 (closed)
Documentation: https://docs.gitlab.com/ee/user/compliance/compliance_report/index.html#compliance-frameworks-report
This test will verify that the report shows all projects in a group and the Compliance Framework that they are assigned.
Feature flag: compliance_frameworks_report
Steps
- Create a top-level group (this will be one of the sandbox groups).
- Enable the
compliance_frameworks_report
feature flag for the top-level group. - Create a subgroup.
- Create two projects in the top-level group.
- Create a project in the subgroup.
- Create two compliance frameworks,
A
andB
. - Make compliance framework
A
the default. - Apply compliance framework
A
to the project in the top-level group. - Apply compliance framework
B
to the project in the subgroup group. - In the top-level group, open the Compliance Frameworks Report (Security and Compliance > Compliance report > Frameworks tab).
- Verify that one project in the top-level group uses compliance framework
A
and that it is the default. - Verify that the other project in the top-level group has no compliance framework.
- Verify that the project in the subgroup uses compliance framework
B
.
Cleanup
- Disable the feature flag for the top-level group.
Ensure that compliance frameworks can be automatically cleaned up.
Tasks
-
Confirm that the report should also be visible in the subgroup. If so, enable the feature flag for the subgroup as well and add a final step to verify that the report appears in the subgroup.
Edited by Mark Lapierre