diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-22 19:58:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-22 19:58:13 +0300 |
commit | 043c499d369387a8128ca4d7de69dd4ae0f53a38 (patch) | |
tree | 4716189cd1d0a5762ade8da2642c36afa1e32280 | |
parent | 96c51b59dd8405b4be71e01f571a8e3f943e8a49 (diff) |
Add latest changes from gitlab-org/gitlab@16-3-stable-ee
-rw-r--r-- | qa/qa/specs/helpers/context_selector.rb | 2 | ||||
-rw-r--r-- | qa/spec/specs/helpers/context_selector_spec.rb | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/qa/qa/specs/helpers/context_selector.rb b/qa/qa/specs/helpers/context_selector.rb index 88b3efb84cb..3ef729c4500 100644 --- a/qa/qa/specs/helpers/context_selector.rb +++ b/qa/qa/specs/helpers/context_selector.rb @@ -121,7 +121,7 @@ module QA end def opts_tld - GitlabEdition.jh? ? '(.com|.hk)' : '.com' + GitlabEdition.jh? ? '(.com|.hk)' : '(.com|.net)' end def get_tld(host) diff --git a/qa/spec/specs/helpers/context_selector_spec.rb b/qa/spec/specs/helpers/context_selector_spec.rb index 3550e78d9e3..369ee60d31d 100644 --- a/qa/spec/specs/helpers/context_selector_spec.rb +++ b/qa/spec/specs/helpers/context_selector_spec.rb @@ -29,6 +29,12 @@ RSpec.describe QA::Specs::Helpers::ContextSelector do expect(described_class.dot_com?).to be_truthy end + it 'returns true when url has .net' do + QA::Runtime::Scenario.define(:gitlab_address, "https://release.gitlab.net") + + expect(described_class.context_matches?).to be_truthy + end + it 'returns false when url does not have .com' do QA::Runtime::Scenario.define(:gitlab_address, "https://gitlab.test") |