Commit a109fde1 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'acunskis-move-testcase-tag' into 'master'

E2E: Export testcase as a tag

See merge request gitlab-org/gitlab!78988
parents 97c5bf70 e5cc9a4e
......@@ -73,7 +73,8 @@ module QA
job_name: job_name,
merge_request: merge_request,
run_type: env('QA_RUN_TYPE') || run_type,
stage: devops_stage(file_path)
stage: devops_stage(file_path),
testcase: example.metadata[:testcase]
},
fields: {
id: example.id,
......@@ -84,8 +85,7 @@ module QA
retry_attempts: example.metadata[:retry_attempts] || 0,
job_url: QA::Runtime::Env.ci_job_url,
pipeline_url: env('CI_PIPELINE_URL'),
pipeline_id: env('CI_PIPELINE_ID'),
testcase: example.metadata[:testcase]
pipeline_id: env('CI_PIPELINE_ID')
}
}
rescue StandardError => e
......
......@@ -45,7 +45,8 @@ describe QA::Support::Formatters::TestStatsFormatter do
job_name: "test-job",
merge_request: "false",
run_type: run_type,
stage: stage.match(%r{\d{1,2}_(\w+)}).captures.first
stage: stage.match(%r{\d{1,2}_(\w+)}).captures.first,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/1234'
},
fields: {
id: './spec/support/formatters/test_stats_formatter_spec.rb[1:1]',
......@@ -56,8 +57,7 @@ describe QA::Support::Formatters::TestStatsFormatter do
retry_attempts: 0,
job_url: ci_job_url,
pipeline_url: ci_pipeline_url,
pipeline_id: ci_pipeline_id,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/1234'
pipeline_id: ci_pipeline_id
}
}
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment