itriagetestrail 0.7.1 → 0.7.2
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 +4 -4
- data/lib/itriagetestrail/version.rb +1 -1
- data/lib/itriagetestrail.rb +8 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f8cb8d734474cdbbd4c15ed23001bc80bd8ed7ef
|
|
4
|
+
data.tar.gz: 204fc890b6fffd8d38daa06f836093dff2fd5f11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a266fa0c218695f95f92f278b8534dce05b6599d12f2f360eff80d3e978e99e0efd2ad0ebe454027ffd46c4559f01ed130555fd2e828bc7a1155a0f0b589f41
|
|
7
|
+
data.tar.gz: 6882e6ecba80c0d3a0fe7a1820d3b110c242b753bd6a4e2b38d2fa9570b55bfb1238bb1d1e46728e4ffc9afbc69608283319286e35c8c293acb4b989d3f020d0
|
data/lib/itriagetestrail.rb
CHANGED
|
@@ -22,8 +22,8 @@ module Itriagetestrail
|
|
|
22
22
|
@setup = false
|
|
23
23
|
config
|
|
24
24
|
|
|
25
|
-
if File.exist?(
|
|
26
|
-
@run_id = File.read(
|
|
25
|
+
if File.exist?(tempfile_name)
|
|
26
|
+
@run_id = File.read(tempfile_name)
|
|
27
27
|
@shared_run = true
|
|
28
28
|
else
|
|
29
29
|
@run_id = 0
|
|
@@ -123,6 +123,10 @@ module Itriagetestrail
|
|
|
123
123
|
testrail_ids
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
+
def tempfile_name
|
|
127
|
+
"./tmp/#{@testrail_config[:jenkinsBuild]}_testrail_id"
|
|
128
|
+
end
|
|
129
|
+
|
|
126
130
|
def make_connection
|
|
127
131
|
@client = TestRail::APIClient.new(@testrail_config[:site])
|
|
128
132
|
@client.user = @testrail_config[:user]
|
|
@@ -520,13 +524,13 @@ module Itriagetestrail
|
|
|
520
524
|
|
|
521
525
|
# This method is only used publicly
|
|
522
526
|
def delete_temp_files
|
|
523
|
-
File.delete(
|
|
527
|
+
File.delete(tempfile_name) if File.exist?(tempfile_name)
|
|
524
528
|
end
|
|
525
529
|
|
|
526
530
|
# This method is only used publicly
|
|
527
531
|
def initialize_temp_files
|
|
528
532
|
Dir.mkdir('./tmp') unless File.exists?('./tmp')
|
|
529
|
-
File.write(
|
|
533
|
+
File.write(tempfile_name, @run_id.to_s)
|
|
530
534
|
|
|
531
535
|
@shared_run = true
|
|
532
536
|
end
|