From a41b4b2b98cd86acfb8630c02b3004abb8b81d08 Mon Sep 17 00:00:00 2001 From: Andrejs Cunskis <acunskis@gitlab.com> Date: Wed, 10 Apr 2024 17:14:36 +0000 Subject: [PATCH] Do not mutate original gitlab_address value in e2e tests --- .../run_component_in_project_pipeline_spec.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/qa/qa/specs/features/browser_ui/4_verify/ci_components_catalog/run_component_in_project_pipeline_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/ci_components_catalog/run_component_in_project_pipeline_spec.rb index dc289fd7f03cc..ed27c68dbb0e4 100644 --- a/qa/qa/specs/features/browser_ui/4_verify/ci_components_catalog/run_component_in_project_pipeline_spec.rb +++ b/qa/qa/specs/features/browser_ui/4_verify/ci_components_catalog/run_component_in_project_pipeline_spec.rb @@ -7,11 +7,7 @@ module QA let(:tag) { '1.0.0' } let(:test_stage) { 'test' } let(:test_phrase) { 'this is NOT secret!!!!!!!' } - - let(:domain_name) do - address = Runtime::Scenario.gitlab_address - address.include?('https') ? address.sub!('https://', '') : address.sub!('http://', '') - end + let(:domain_name) { Support::GitlabAddress.host_with_port(with_default_port: false) } let(:component_project) do create(:project, :with_readme, name: 'component-project', description: 'This is a project with CI component.') -- GitLab