Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-12-21 00:10:56 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-12-21 00:10:56 +0300
commit3774672ae1b0941688c555be24bfc629ca7514d7 (patch)
treea0004b5f9a12f5a3eb845ad807c576256517aeea /qa/spec/tools
parent13f6669657483134a697b7ec7b701563165bc9d5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/spec/tools')
-rw-r--r--qa/spec/tools/reliable_report_spec.rb23
1 files changed, 18 insertions, 5 deletions
diff --git a/qa/spec/tools/reliable_report_spec.rb b/qa/spec/tools/reliable_report_spec.rb
index a048aa2e6ea..2d05d15bbb7 100644
--- a/qa/spec/tools/reliable_report_spec.rb
+++ b/qa/spec/tools/reliable_report_spec.rb
@@ -13,9 +13,16 @@ describe QA::Tools::ReliableReport do
let(:slack_channel) { "#quality-reports" }
let(:range) { 14 }
let(:issue_url) { "https://gitlab.com/issue/1" }
+ let(:time) { "2021-12-07T04:05:25.000000000+00:00" }
let(:runs) do
- values = { "name" => "stable spec", "status" => "passed", "file_path" => "some/spec.rb", "stage" => "manage" }
+ values = {
+ "name" => "stable spec",
+ "status" => "passed",
+ "file_path" => "some/spec.rb",
+ "stage" => "manage",
+ "_time" => time
+ }
{
0 => instance_double(
"InfluxDB2::FluxTable",
@@ -29,7 +36,13 @@ describe QA::Tools::ReliableReport do
end
let(:reliable_runs) do
- values = { "name" => "unstable spec", "status" => "failed", "file_path" => "some/spec.rb", "stage" => "create" }
+ values = {
+ "name" => "unstable spec",
+ "status" => "failed",
+ "file_path" => "some/spec.rb",
+ "stage" => "create",
+ "_time" => time
+ }
{
0 => instance_double(
"InfluxDB2::FluxTable",
@@ -136,11 +149,11 @@ describe QA::Tools::ReliableReport do
<<~TXT.strip
[[_TOC_]]
- # Candidates for promotion to reliable
+ # Candidates for promotion to reliable (#{Date.today - range} - #{Date.today})
#{markdown_section([['manage', 1]], [[name_column('stable spec'), 3, 0, '0%']], 'manage', 'stable')}
- # Reliable specs with failures
+ # Reliable specs with failures (#{Date.today - range} - #{Date.today})
#{markdown_section([['create', 1]], [[name_column('unstable spec'), 3, 2, '66.67%']], 'create', 'unstable')}
TXT
@@ -180,7 +193,7 @@ describe QA::Tools::ReliableReport do
end
it "notifies failure", :aggregate_failures do
- expect { expect { run }.to raise_error(SystemExit) }.to output.to_stdout
+ expect { expect { run }.to raise_error("Connection error!") }.to output.to_stdout
expect(slack_notifier).to have_received(:post).with(
icon_emoji: ":sadpanda:",