itriagetestrail 1.0.14 → 1.0.16
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: 1511adcd82dfbf909e7692444682b60fd16e82cb
|
4
|
+
data.tar.gz: e4b2230ce1c87221b2846e8bdbde6090979bf821
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc75aab912de3312f88647d73446bb51fd45ed7b48c2fc57f4526594e32529e831d64e983dc6b66964562d43a79e44027f75db0a782818af8311241843ed02ce
|
7
|
+
data.tar.gz: 699d975ad07c785707a636b213f1a5ae517847898aa08884bd6a257385a939f812069e33d5c8ebd0b8d1a6236f55cbe871ba7276d82c514f548bd4e5809cb35a
|
@@ -57,22 +57,23 @@ module Itriagetestrail
|
|
57
57
|
|
58
58
|
testrail_tag_object = @testrail_case_fields.select { |field| field['system_name'] == 'custom_tags'}[0]
|
59
59
|
testrail_tag_items = testrail_tag_object['configs'][0]['options']['items'].split("\n")
|
60
|
-
|
60
|
+
scenario_tag_ids = []
|
61
61
|
@scenario_tags.each do |scenario_tag|
|
62
62
|
testrail_tag_items.each do | tag_item |
|
63
63
|
system_tag = tag_item.split(',')
|
64
64
|
if scenario_tag == system_tag[1]
|
65
|
-
|
65
|
+
scenario_tag_ids << system_tag[0].to_i
|
66
66
|
end
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
70
|
# TODO: Determine if there is a change, if so then we send a post
|
71
|
+
testrail_case_tag_ids = @test_cases.select { |item| item['id'] == case_id }[0]['custom_tags']
|
71
72
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
73
|
+
unless testrail_case_tag_ids == scenario_tag_ids
|
74
|
+
# Now that we have the case id, lets update tags
|
75
|
+
@client.send_post("update_case/#{case_id}", { 'custom_tags': scenario_tag_ids})
|
76
|
+
end
|
76
77
|
end
|
77
78
|
|
78
79
|
# Update Test Run
|