CMP-3879: Create an e2e suite for tailoring tests WIP#1105
CMP-3879: Create an e2e suite for tailoring tests WIP#1105Anna-Koudelkova wants to merge 1 commit intoComplianceAsCode:masterfrom
Conversation
|
@Anna-Koudelkova: This pull request references CMP-3879 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Anna-Koudelkova The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
🤖 To deploy this PR, run the following command: |
First attempt to start with the refactor based on feature groups. Not complete as we have not finished porting all the test cases upstream and also I need some guidance on importance of the test cases.
This is heavily coming from the refactor doc, trying to cover the tailoring tests.
Test case execution order
One thing I have found out is that golang would go through all the test cases and when it is parallel, it puts it on hold and run the serial test cases one by one first and the parallel test cases gets to run last.
Flags
For the test purposes I have labeled 4 test cases as Critical based on Cursor suggestion - it does not reflect the real importance!
I was unable to use the
Criticalflag simply as part of the name of the test case (to run all the critical test cases only), because some of the CRDs like ScanSettings etc. gets named after the name of the tests and it cannot handle the underscores ( I was usingTestName_Criticalat first) and fails.That is why I resulted into filtering the test cases using flag.Bool() which seems to be working now:
Assisted-by: Cursor