ticket-replicator 1.2.1 → 1.2.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d8cdf36c2c6bc96ceb08272851ec42e13930c197445ee42e260353df78f057d
|
4
|
+
data.tar.gz: 96ad413118741babd686b45616b7cb9e30cc8c4db217360bae328dcba2cbadcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f97d775bf301d0a8d7dfac17b1a78baa41ff98e2a68bfc72c87af863c36dff6b53511d67591a44e4a7539f75271a687dab4cca63c7f0e3ef6aa34c207dd63ba
|
7
|
+
data.tar.gz: d03951718b1d61b6e82e8094614ce4c68ebef62ea55900c8d53d0b2411a1a96b48b61ed1b8dfe4c5c733476f6b84d8fb156a25654c44cb5e74deb619734457e5
|
@@ -42,7 +42,7 @@ Feature: Load tickets into Jira
|
|
42
42
|
Given the following environment variables have been set:
|
43
43
|
| name | value |
|
44
44
|
| TICKET_REPLICATOR_DISABLE_RESOLUTION_LOADING | true |
|
45
|
-
|
45
|
+
And a file named "queue/20.transformed/sap_solution_manager_defects.csv" with:
|
46
46
|
"""
|
47
47
|
"ID","Status","Resolution","Priority","Summary","Source Ticket URL"
|
48
48
|
"10001","Open","","Highest","SMAN-10001 | Login page randomly fails to load CSS assets (10001)","http://url/to/source/ticket/10001"
|
@@ -56,6 +56,23 @@ Feature: Load tickets into Jira
|
|
56
56
|
| Confirmed | | Medium | SMAN-10003 \| Invalid date format in SOAP response (10003) | http://url/to/source/ticket/10003 |
|
57
57
|
| Withdrawn | | Low | SMAN-10007 \| Test data missing edge case scenarios (10007) | http://url/to/source/ticket/10007 |
|
58
58
|
|
59
|
+
Scenario: No duplicates created when the same ticket is listed several times in a given file
|
60
|
+
Given a file named "queue/20.transformed/sap_solution_manager_defects.csv" with:
|
61
|
+
"""
|
62
|
+
"ID","Status","Resolution","Priority","Summary","Source Ticket URL"
|
63
|
+
"10001","Open","","Highest","SMAN-10001 | Login page randomly fails to load CSS assets (10001)","http://url/to/source/ticket/10001"
|
64
|
+
"10001","Open","","Highest","SMAN-10001 | Login page randomly fails to load CSS assets (10001)","http://url/to/source/ticket/10001"
|
65
|
+
"10003","Open","","Medium","SMAN-10003 | Invalid date format in SOAP response (10003)","http://url/to/source/ticket/10003"
|
66
|
+
"10007","Withdrawn","Won't Do","Low","SMAN-10007 | Test data missing edge case scenarios (10007)","http://url/to/source/ticket/10007"
|
67
|
+
"10003","Confirmed","Done","Medium","SMAN-10003 | Invalid date format in SOAP response (10003)","http://url/to/source/ticket/10003"
|
68
|
+
"""
|
69
|
+
When I successfully run `ticket-replicator --load`
|
70
|
+
Then the Jira project should only have the following tickets:
|
71
|
+
| status | resolution | priority | summary | source_ticket_url |
|
72
|
+
| Open | | Highest | SMAN-10001 \| Login page randomly fails to load CSS assets (10001) | http://url/to/source/ticket/10001 |
|
73
|
+
| Confirmed | Done | Medium | SMAN-10003 \| Invalid date format in SOAP response (10003) | http://url/to/source/ticket/10003 |
|
74
|
+
| Withdrawn | Won't Do | Low | SMAN-10007 \| Test data missing edge case scenarios (10007) | http://url/to/source/ticket/10007 |
|
75
|
+
|
59
76
|
|
60
77
|
Scenario: Loading the ticket information twice in Jira does not create additional tickets
|
61
78
|
Given a file named "queue/20.transformed/sap_solution_manager_defects.csv" with:
|
@@ -149,6 +149,8 @@ module Ticket
|
|
149
149
|
ticket: ticket,
|
150
150
|
:ticket_fields_need_to_be_updated? => ticket_fields_need_to_be_updated?
|
151
151
|
)
|
152
|
+
|
153
|
+
allow(jira_project).to receive_messages(replicated_tickets: { "456" => :another_ticket })
|
152
154
|
end
|
153
155
|
|
154
156
|
context "when the previously replicated needs to be updated " do
|
@@ -160,6 +162,9 @@ module Ticket
|
|
160
162
|
|
161
163
|
expect(jira_ticket).to receive(:fetch)
|
162
164
|
|
165
|
+
# TODO: fix this check that should work
|
166
|
+
# expect(loader).to be_ticket_previously_replicated
|
167
|
+
|
163
168
|
loader.save_ticket
|
164
169
|
end
|
165
170
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticket-replicator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christophe Broult
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
- !ruby/object:Gem::Version
|
231
231
|
version: '0'
|
232
232
|
requirements: []
|
233
|
-
rubygems_version: 3.6.
|
233
|
+
rubygems_version: 3.6.7
|
234
234
|
specification_version: 4
|
235
235
|
summary: Automate replicating tickets from one system to a Jira project
|
236
236
|
test_files: []
|