Introduce :skip_live_env Rspec meta
We need an ability to tag tests that cannot run against live environments such as staging, canary or production. This issue is to introduces a new :skip_live_env
RSpec meta. Currently we work around this requirement by tagging the tests with :orchestrated
meta.
Here are two examples of such tests that would benefit from this meta:
-
qa/qa/specs/features/ee/browser_ui/3_create/jenkins/jenkins_build_status_spec.rb
- We need to set the ip address of the container running Jenkins (which is inside a runner) on the live GitLab instance and we are unable to correctly determine that address.
-
qa/qa/specs/features/ee/browser_ui/1_manage/group/restrict_by_ip_address_spec.rb
- We need to set the ip address of the runner that runs the test and again we are unable to correctly determine that address due to:gitlab-org/gitlab#39093 (comment 267751779).
We could have used the the current SUPPORTED_FEATURES
but not allowing to run on a live environment is not a feature and tag like :requires_non_live_env
is too vague and not good sounding
Edited by Sanad Liaquat