diff options
Diffstat (limited to 'qa/qa/specs/features/browser_ui/4_verify/pipeline/pass_dotenv_variables_to_downstream_via_bridge_spec.rb')
-rw-r--r-- | qa/qa/specs/features/browser_ui/4_verify/pipeline/pass_dotenv_variables_to_downstream_via_bridge_spec.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/pass_dotenv_variables_to_downstream_via_bridge_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/pass_dotenv_variables_to_downstream_via_bridge_spec.rb index f9a3856f810..1768cb9a488 100644 --- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/pass_dotenv_variables_to_downstream_via_bridge_spec.rb +++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/pass_dotenv_variables_to_downstream_via_bridge_spec.rb @@ -22,7 +22,7 @@ module QA add_ci_file(downstream_project, downstream_ci_file) add_ci_file(upstream_project, upstream_ci_file) upstream_project.visit! - Flow::Pipeline.visit_latest_pipeline(status: 'passed') + Flow::Pipeline.visit_latest_pipeline(status: 'Passed') end after do @@ -30,7 +30,8 @@ module QA [upstream_project, downstream_project].each(&:remove_via_api!) end - it 'runs the pipeline with composed config', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/348088' do + it 'runs the pipeline with composed config', :reliable, + testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/348088' do Page::Project::Pipeline::Show.perform do |parent_pipeline| Support::Waiter.wait_until { parent_pipeline.has_linked_pipeline? } parent_pipeline.expand_linked_pipeline @@ -46,15 +47,12 @@ module QA private def add_ci_file(project, file) - Resource::Repository::Commit.fabricate_via_api! do |commit| - commit.project = project - commit.commit_message = 'Add config file' - commit.add_files([file]) - end + create(:commit, project: project, commit_message: 'Add config file', actions: [file]) end def upstream_ci_file { + action: 'create', file_path: '.gitlab-ci.yml', content: <<~YAML build: @@ -77,6 +75,7 @@ module QA def downstream_ci_file { + action: 'create', file_path: '.gitlab-ci.yml', content: <<~YAML downstream_test: |