itriagetestrail 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 773412a57a7679278472c94037db9eb13bb387e5
|
4
|
+
data.tar.gz: f14264022bf0315eddf672dd288588b776249056
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ac05b7e632ac85ff080bec8f49f8cde937f1a76e35550ebdf8fc53d5eb251feaf7518b19275dc948cd46031d8a8341dcfca3e53f408072bc89bb762230d48cd
|
7
|
+
data.tar.gz: 36e9519a6e28f9005a97defd229dce5883ab6ec24afa18c0e0e7b08e7bf2612d05fe71a74a594a0ec7ecdcd2c4dfb917510187f36de1fed603b1b4e6664b17bc
|
@@ -51,7 +51,7 @@ module Itriagetestrail
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def app_version_label
|
54
|
-
if @app_version.nil? || @app_version
|
54
|
+
if @app_version.nil? || @app_version.empty?
|
55
55
|
''
|
56
56
|
else
|
57
57
|
"App Version:#{@app_version}"
|
@@ -59,7 +59,7 @@ module Itriagetestrail
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def jenkins_build_label
|
62
|
-
if @jenkins_build .nil? || @jenkins_build
|
62
|
+
if @jenkins_build .nil? || @jenkins_build.empty?
|
63
63
|
''
|
64
64
|
else
|
65
65
|
" Jenkins Build:#{@jenkins_build}"
|
@@ -73,7 +73,7 @@ module Itriagetestrail
|
|
73
73
|
def test_name
|
74
74
|
ci_label = "#{app_version_label}#{jenkins_build_label}"
|
75
75
|
|
76
|
-
if ci_label.dup.strip
|
76
|
+
if ci_label.dup.strip.empty?
|
77
77
|
'Regression' + time_zone_label
|
78
78
|
else
|
79
79
|
ci_label + time_zone_label
|
data/lib/itriagetestrail.rb
CHANGED
@@ -104,6 +104,7 @@ module Itriagetestrail
|
|
104
104
|
suiteName: ENV['TESTRAIL_SUITE_NAME'],
|
105
105
|
run_id: ENV['TESTRAIL_RUN_ID'],
|
106
106
|
close_run: ENV['TESTRAIL_CLOSE_RUN'],
|
107
|
+
close_run_delay: ENV['TESTRAIL_CLOSE_RUN_DELAY'],
|
107
108
|
origin: ENV['GIT_BRANCH'],
|
108
109
|
jenkinsBuild: ENV['BUILD_NUMBER'],
|
109
110
|
appVersion: nil,
|
@@ -193,7 +194,7 @@ module Itriagetestrail
|
|
193
194
|
def close_run?
|
194
195
|
# do not close a run if a run id was supplied. other test suites related to the job will need it.
|
195
196
|
close_run = false
|
196
|
-
if @testrail_config[:close_run] == 'true' && (@testrail_config[:run_id].nil? || @testrail_config[:run_id]
|
197
|
+
if @testrail_config[:close_run] == 'true' && (@testrail_config[:run_id].nil? || @testrail_config[:run_id].empty?)
|
197
198
|
close_run = true
|
198
199
|
end
|
199
200
|
close_run
|
@@ -215,6 +216,11 @@ module Itriagetestrail
|
|
215
216
|
end
|
216
217
|
|
217
218
|
def close_run(run_id = @run_id, message = '')
|
219
|
+
# A delay is recommended to prevent an HTTP 400 race condition where final results are still
|
220
|
+
# being populated in the TESTRAIL DB while a close_run has been requested.
|
221
|
+
|
222
|
+
close_run_delay = @testrail_config[:close_run_delay] || 5
|
223
|
+
sleep close_run_delay.to_i
|
218
224
|
@client.send_post("update_run/#{run_id}",
|
219
225
|
include_all: false, case_ids: existing_cases_from_run(run_id),
|
220
226
|
description: 'Timestamp: ' + @time_zone.now.strftime('%m/%d/%Y %I:%M %p') +
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itriagetestrail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- a801069
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tzinfo
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.5.2
|
124
|
+
rubygems_version: 2.5.2.3
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: Plugin to export your cucumber tests in the Testrail
|