Introduce non_live_env tag and add it to some tests
What does this MR do?
Introduces non_live_env
tag and add it to some tests.
Also remove extra/temporary logging from restrict_by_ip_address_spec
spec and un-quarantine it
We need an ability to tag tests that cannot run against live environments such as staging, canary or production. Hence this MR introduces a new :requires_non_live_env
RSpec meta.
Here are two examples of such tests along with the reason as to why these cannot be run on live environments:
-
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:#39093 (comment 267751779).
This MR depends on the following and should be merged after these are merged:
closes #212544 (closed)
Conformity
Edited by Sanad Liaquat