Adds category fallback when missing stage in file_path
What does this MR do and why?
When using the gem with CustomersDot E2E specs, the folder structure does not include the stage like how it's done in GitLab. Due to this, CustomersDot E2E specs are being categorized as "Unknown" in the Test Session Issues. In order to address this, I'm introducing a category
attribute that CustomersDot json files will contain which would either be "Self-managed" or "SaaS".
This MR only implements a fallback so that CustomersDot specs would get categorized in the Test Session Issues while leaving existing implementation unaffected. Eventually, for E2E specs, the goal is to use the RSpec tags to determine the stage
instead of the file path as that is a consistent attribute within both CustomersDot and GitLab E2E specs.
Related: gitlab-org/customers-gitlab-com#7825 (closed)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.