diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 16:16:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 16:16:36 +0300 |
commit | 311b0269b4eb9839fa63f80c8d7a58f32b8138a0 (patch) | |
tree | 07e7870bca8aed6d61fdcc810731c50d2c40af47 /qa/spec/specs/helpers | |
parent | 27909cef6c4170ed9205afa7426b8d3de47cbb0c (diff) |
Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42
Diffstat (limited to 'qa/spec/specs/helpers')
-rw-r--r-- | qa/spec/specs/helpers/context_selector_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qa/spec/specs/helpers/context_selector_spec.rb b/qa/spec/specs/helpers/context_selector_spec.rb index 0152fee6f5b..5a320cde71f 100644 --- a/qa/spec/specs/helpers/context_selector_spec.rb +++ b/qa/spec/specs/helpers/context_selector_spec.rb @@ -186,6 +186,24 @@ RSpec.describe QA::Specs::Helpers::ContextSelector do end end + context 'staging-ref' do + before do + QA::Runtime::Scenario.define(:gitlab_address, 'https://staging-ref.gitlab.com/') + end + + it 'runs on staging-ref' do + group = describe_successfully do + it('does not run in staging', only: { subdomain: :staging }) {} + it('runs in staging-ref', only: { subdomain: /^staging-ref./ }) {} + end + + aggregate_failures do + expect(group.examples[0].execution_result.status).to eq(:pending) + expect(group.examples[1].execution_result.status).to eq(:passed) + end + end + end + context 'production' do before do QA::Runtime::Scenario.define(:gitlab_address, 'https://gitlab.com/') |