lazylead 0.4.1 → 0.5.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/.docs/accuracy.md +2 -2
- data/.docs/duedate_expired.md +3 -3
- data/.docs/propagate_down.md +3 -3
- data/.gitattributes +1 -0
- data/.github/dependabot.yml +6 -0
- data/Rakefile +6 -3
- data/bin/lazylead +7 -5
- data/lazylead.gemspec +4 -3
- data/lib/lazylead/cli/app.rb +5 -2
- data/lib/lazylead/exchange.rb +15 -9
- data/lib/lazylead/log.rb +2 -1
- data/lib/lazylead/model.rb +36 -2
- data/lib/lazylead/opts.rb +13 -1
- data/lib/lazylead/postman.rb +9 -4
- data/lib/lazylead/schedule.rb +16 -15
- data/lib/lazylead/smtp.rb +3 -1
- data/lib/lazylead/system/jira.rb +44 -0
- data/lib/lazylead/task/accuracy/accuracy.rb +13 -8
- data/lib/lazylead/task/accuracy/affected_build.rb +2 -6
- data/lib/lazylead/task/accuracy/attachment.rb +44 -0
- data/lib/lazylead/task/accuracy/environment.rb +39 -0
- data/lib/lazylead/task/accuracy/logs.rb +40 -0
- data/lib/lazylead/task/accuracy/records.rb +45 -0
- data/lib/lazylead/task/accuracy/requirement.rb +9 -0
- data/lib/lazylead/task/accuracy/servers.rb +50 -0
- data/lib/lazylead/task/accuracy/stacktrace.rb +63 -0
- data/lib/lazylead/task/accuracy/testcase.rb +85 -0
- data/lib/lazylead/task/accuracy/wiki.rb +41 -0
- data/lib/lazylead/task/echo.rb +18 -0
- data/lib/lazylead/task/fix_version.rb +9 -2
- data/lib/lazylead/task/touch.rb +28 -11
- data/lib/lazylead/version.rb +1 -1
- data/lib/messages/svn_log.erb +117 -0
- data/lib/messages/svn_touch.erb +1 -1
- data/license.txt +1 -1
- data/readme.md +5 -5
- data/test/lazylead/cli/app_test.rb +11 -11
- data/test/lazylead/opts_test.rb +4 -0
- data/test/lazylead/system/jira_test.rb +38 -0
- data/test/lazylead/task/accuracy/accuracy_test.rb +1 -1
- data/test/lazylead/task/accuracy/affected_build_test.rb +2 -2
- data/test/lazylead/task/accuracy/attachment_test.rb +50 -0
- data/test/lazylead/task/accuracy/environment_test.rb +42 -0
- data/test/lazylead/task/accuracy/logs_test.rb +78 -0
- data/test/lazylead/task/accuracy/records_test.rb +60 -0
- data/test/lazylead/task/accuracy/score_test.rb +46 -0
- data/test/lazylead/task/accuracy/servers_test.rb +66 -0
- data/test/lazylead/task/accuracy/stacktrace_test.rb +113 -0
- data/test/lazylead/task/accuracy/testcase_test.rb +215 -0
- data/test/lazylead/task/accuracy/wiki_test.rb +40 -0
- data/test/lazylead/task/touch_test.rb +48 -23
- data/test/test.rb +25 -0
- data/upgrades/sqlite/001-install-main-lazylead-tables.sql +1 -5
- data/upgrades/sqlite/999.testdata.sql +12 -17
- metadata +59 -18
- data/.travis.yml +0 -16
@@ -0,0 +1,215 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# The MIT License
|
4
|
+
#
|
5
|
+
# Copyright (c) 2019-2020 Yurii Dubinka
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom
|
12
|
+
# the Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included
|
15
|
+
# in all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
22
|
+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
23
|
+
# OR OTHER DEALINGS IN THE SOFTWARE.
|
24
|
+
|
25
|
+
require_relative "../../../test"
|
26
|
+
require_relative "../../../../lib/lazylead/task/accuracy/testcase"
|
27
|
+
|
28
|
+
module Lazylead
|
29
|
+
class TestcaseTest < Lazylead::Test
|
30
|
+
test "test case header is absent" do
|
31
|
+
refute testcase? "1. Lorem Ipsum is
|
32
|
+
2. Text of the printing (and typesetting industry. Lorem Ipsum)
|
33
|
+
3. has been the industry's standard dummy text ever since the 1500s
|
34
|
+
4. When an unknown
|
35
|
+
5. Printer took a galley of type and scrambled it to make a type specimen book
|
36
|
+
ER: It has survived not only five centuries
|
37
|
+
AR: but also the leap into electronic typesetting, remaining essentially unchanged -
|
38
|
+
{code:java}
|
39
|
+
xxx.xxxxx.xxxxxx.xxxx.xxx.XxxxXxxxXxxXX: xxxx xxx xxx XX xxxxxx xxxxx XXXxxxXXxxXxxXxx]
|
40
|
+
{code}"
|
41
|
+
end
|
42
|
+
|
43
|
+
test "er on the next line" do
|
44
|
+
assert testcase? "TC:
|
45
|
+
1. It was popularised in the 1960s ;
|
46
|
+
2. With the release of Letraset sheets containing 'Lorem Ipsum passages'
|
47
|
+
!xxxx-xxx.png|thumbnail!
|
48
|
+
|
49
|
+
3. and more recently with desktop 'publishing software li'ke Aldus PageMaker including version;
|
50
|
+
|
51
|
+
ER:
|
52
|
+
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots.
|
53
|
+
|
54
|
+
AR:
|
55
|
+
|
56
|
+
{code:java}
|
57
|
+
Xxxxxx
|
58
|
+
Xxxxx xxx xxx xxxx xxxx xx xxx.
|
59
|
+
{code}
|
60
|
+
|
61
|
+
!xxxx-x-x-x-x-x-xxx.png|thumbnail!"
|
62
|
+
end
|
63
|
+
|
64
|
+
test "tc ar er case 1" do
|
65
|
+
assert testcase? "*Preconditions:*
|
66
|
+
# XXX+ Xxxxx Xxxxxxx XX[http://xxx.xxx.xxx:0000/xx/xxx.jsp?xx=_xxx]
|
67
|
+
# Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia,
|
68
|
+
|
69
|
+
*Test steps:*
|
70
|
+
# Lorem Ipsum comes from sections 1.10.32 and 1.10.33
|
71
|
+
# This book is a treatise on the theory of ethics (very popular )
|
72
|
+
!xxx.png|width=514,height=262!
|
73
|
+
# The first line of Lorem Ipsum, 'Lorem ipsum dolor sit amet..'
|
74
|
+
*ER: The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those intereste*
|
75
|
+
*!xxx-xx-xx.png|width=535,height=61!*
|
76
|
+
# Sections 1.10.32 and 1.10.33 from 'de Finibus Bonorum et Malorum' by Cicero are also > xxxx
|
77
|
+
*ER: It is a long established fact that a reader will be distracted by the
|
78
|
+
*!xxxxxxxx-xxx-x-xx.png|width=826,height=167!*
|
79
|
+
*!xxxxxx-xxx-xx-xxx.png|width=373,height=59!*
|
80
|
+
# The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters,
|
81
|
+
|
82
|
+
*ER: As opposed to using 'Content here, content here', making *
|
83
|
+
*AR: it look like readable English *
|
84
|
+
*!xxxxx-xx-x-x-xxx.png|width=1062,height=272!*
|
85
|
+
|
86
|
+
*[^xxx-xxxx.log]*
|
87
|
+
|
88
|
+
[^xxxxxx.LOG]"
|
89
|
+
end
|
90
|
+
|
91
|
+
test "tc ar er case 2" do
|
92
|
+
assert testcase? "*Pre-requisites:*
|
93
|
+
Many desktop publishing packages.
|
94
|
+
|
95
|
+
*TC:*
|
96
|
+
# Various versions have evolved over the years,
|
97
|
+
# sometimes by accident,
|
98
|
+
# sometimes on purpose (injected humour and the like).
|
99
|
+
|
100
|
+
*ER:* !ER.png|thumbnail!
|
101
|
+
|
102
|
+
*AR:* There are many variations of passages of Lorem Ipsum available,
|
103
|
+
|
104
|
+
!AR.png|thumbnail!
|
105
|
+
|
106
|
+
*LOGS [^xXXxxx.zip]*
|
107
|
+
|
108
|
+
Randomised words which don't look even slightly believable: http://xxx.xxx.xxx:0000/xxx/xxx.jsp#!board;xxxxxXx=xxxxx;xxxxXxx=xxx;xxxxXx=xxxxxx
|
109
|
+
If you are going to use a passage: http://xxx.xxx.xxx:0000"
|
110
|
+
end
|
111
|
+
|
112
|
+
test "tc ar er case 3" do
|
113
|
+
assert testcase? "*Preconditions:*
|
114
|
+
# All the Lorem Ipsum generators on the Internet
|
115
|
+
# tend to repeat predefined chunks as necessary, (x xx xxxx)
|
116
|
+
# making this the first true generator on the Internet.
|
117
|
+
# It uses a dictionary of over 200 Latin words,
|
118
|
+
# combined with a handful of model sentence structures,
|
119
|
+
|
120
|
+
*Test case:*
|
121
|
+
1. to generate Lorem Ipsum which looks reasonable -> generated Lorem Ipsum -> is therefore always free from repetition (xxx xxxx)
|
122
|
+
2. [injected humour], or non-characteristic words etc.
|
123
|
+
3. Lorem ipsum dolor sit amet, consectetur [adipiscing] elit
|
124
|
+
4. sed do eiusmod [tempor] incididunt ut 'labore' et dolore magna aliqua
|
125
|
+
5. Ut enim ad minim veniam,
|
126
|
+
6. Quis nostrud exercitation ullamco laboris
|
127
|
+
|
128
|
+
*ER =* Duis aute irure dolor in reprehenderit: [Voluptate Velit].[dolore] = eu fugiat nulla pariatur
|
129
|
+
|
130
|
+
*AR =* Excepteur sint occaecat Cupidatat
|
131
|
+
|
132
|
+
!image-2020-09-04-18-24-26-052.png|thumbnail!
|
133
|
+
|
134
|
+
!image-2020-09-04-18-24-51-729.png|thumbnail!
|
135
|
+
|
136
|
+
!image-2020-09-04-18-26-01-262.png|thumbnail!
|
137
|
+
|
138
|
+
XXX_XXX.x.XXXX.XXXX.XX.XxxxXX_xxxXXXXX
|
139
|
+
|
140
|
+
[http://xxxx.xxx:0000/xxx/xx.jsp#xxxXxx=xxxx;xxxXxx=xxx]"
|
141
|
+
end
|
142
|
+
|
143
|
+
test "tc ar er case 4" do
|
144
|
+
assert testcase? "*Preconditions*
|
145
|
+
1. Sed ut perspiciatis unde omnis iste
|
146
|
+
2. Natus error sit voluptatem accusantium doloremque
|
147
|
+
|
148
|
+
*Test Steps*
|
149
|
+
1. laudantium, totam → rem aperiam → eaque ipsa → 'quae ab illo '
|
150
|
+
2. inventore veritatis et quasi architecto beatae
|
151
|
+
|
152
|
+
*ER* = Nemo enim ipsam voluptatem
|
153
|
+
|
154
|
+
*AR* = Neque porro quisquam est, qui dolorem ipsum quia dolor sit
|
155
|
+
|
156
|
+
!image-2020-09-04-18-45-10-682.png|thumbnail!
|
157
|
+
|
158
|
+
[http://xxxx.xxx:0000/xxx/xxx.jsp?xxx=xxxx#xxxXxx=xxx;xxxXxx=xxxxxx]
|
159
|
+
Ut enim ad minima veniam, quis nostrum exercitationem"
|
160
|
+
end
|
161
|
+
|
162
|
+
test "tc ar er case 5" do
|
163
|
+
assert testcase? "*Preconditions*
|
164
|
+
1. But I must explain to you how all
|
165
|
+
2. this mistaken idea of denouncing pleasure
|
166
|
+
|
167
|
+
*Test Steps*
|
168
|
+
1. And praising → pain was → born and I will give
|
169
|
+
2. Nor again is there anyone who loves or pursues or desires to obtain pain
|
170
|
+
|
171
|
+
*ER* = To take a trivial example,
|
172
|
+
|
173
|
+
*AR* = Which of us ever undertakes laborious physical exercise
|
174
|
+
|
175
|
+
!image-2020-xx-xx-xx-xx-xx-xxx.png|thumbnail!
|
176
|
+
|
177
|
+
[http://xxx.xxx:0000/xxx/xxx.jsp?xxx=xxxx;xxxXx=4428;xxxXx=xxxx]
|
178
|
+
except to obtain some advantage from it? "
|
179
|
+
end
|
180
|
+
|
181
|
+
test "tc ar er case 6" do
|
182
|
+
assert testcase? "[https://xxxx.xxxx.xxx.com/]
|
183
|
+
|
184
|
+
*Precondition:* But who has any right to find fault with a man who chooses
|
185
|
+
|
186
|
+
*TC:*
|
187
|
+
# njoy a pleasure that has no annoying consequences, : [yyyyyy.zzz.com|https://xxx.yyyy.com/]
|
188
|
+
# At vero eos et accusamus et iusto odio dignissimos: 8443286573113926860
|
189
|
+
# ducimus qui blanditiis [praesentium]
|
190
|
+
# Et harum quidem rerum facilis est et expedita distinctio.
|
191
|
+
# Nam libero tempore, cum soluta nobis est eligendi
|
192
|
+
|
193
|
+
*ER:* omnis voluptas assumenda est,
|
194
|
+
|
195
|
+
*AR:* omnis dolor repellendus.
|
196
|
+
|
197
|
+
[^screenshot-1.png]"
|
198
|
+
end
|
199
|
+
|
200
|
+
test "tc with colored ar er" do
|
201
|
+
assert testcase? "*TC:*
|
202
|
+
# Step 1
|
203
|
+
# Step 2
|
204
|
+
# Step ..
|
205
|
+
# Step N
|
206
|
+
{color:#00673A}ER{color}: XXXX
|
207
|
+
{color:#DE10AA}AR{color}: YYYY"
|
208
|
+
end
|
209
|
+
|
210
|
+
# ensure that issue description has a test case, AR and ER
|
211
|
+
def testcase?(desc)
|
212
|
+
Testcase.new.passed(OpenStruct.new(description: desc))
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# The MIT License
|
4
|
+
#
|
5
|
+
# Copyright (c) 2019-2020 Yurii Dubinka
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom
|
12
|
+
# the Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included
|
15
|
+
# in all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
22
|
+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
23
|
+
# OR OTHER DEALINGS IN THE SOFTWARE.
|
24
|
+
|
25
|
+
require_relative "../../../test"
|
26
|
+
require_relative "../../../../lib/lazylead/task/accuracy/wiki"
|
27
|
+
|
28
|
+
module Lazylead
|
29
|
+
class WikiTest < Lazylead::Test
|
30
|
+
test "wiki reference is present" do
|
31
|
+
assert Wiki.new.passed(
|
32
|
+
OpenStruct.new(
|
33
|
+
remote_links: [
|
34
|
+
OpenStruct.new(attrs: { "relationship" => "Wiki Page" })
|
35
|
+
]
|
36
|
+
)
|
37
|
+
)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -25,39 +25,64 @@
|
|
25
25
|
require "mail"
|
26
26
|
require_relative "../../test"
|
27
27
|
require_relative "../../../lib/lazylead/smtp"
|
28
|
-
|
28
|
+
require_relative "../../../lib/lazylead/opts"
|
29
29
|
require_relative "../../../lib/lazylead/postman"
|
30
30
|
require_relative "../../../lib/lazylead/task/touch"
|
31
31
|
|
32
32
|
module Lazylead
|
33
33
|
class SvnTouchTest < Lazylead::Test
|
34
|
-
# @todo #/DEV Find stable svn repo which can be used for stable test, for
|
35
|
-
# now only floating repo used for testing locally. Also, create a new
|
36
|
-
# method "ping" which can be used during tests like
|
37
|
-
# skip "No connection available to svn repo" unless ping("https://svn.com")
|
38
34
|
test "important files changed in svn repo" do
|
39
|
-
skip "No svn credentials provided" unless env? "
|
40
|
-
"
|
41
|
-
|
35
|
+
skip "No svn credentials provided" unless env? "svn_touch_user",
|
36
|
+
"svn_touch_password"
|
37
|
+
skip "No internet connection to riouxsvn.com" unless ping? "riouxsvn.com"
|
42
38
|
Lazylead::Smtp.new.enable
|
43
39
|
Task::SvnTouch.new.run(
|
44
|
-
|
40
|
+
[],
|
41
|
+
Postman.new,
|
42
|
+
Opts.new(
|
43
|
+
"svn_url" => "https://svn.riouxsvn.com/touch4ll",
|
44
|
+
"svn_user" => ENV["svn_touch_user"],
|
45
|
+
"svn_password" => ENV["svn_touch_password"],
|
46
|
+
"commit_url" => "https://view.commit.com?rev=",
|
47
|
+
"user" => "https://user.com?id=",
|
48
|
+
"to" => "lead@fake.com",
|
49
|
+
"from" => "ll@fake.com",
|
50
|
+
"now" => "2020-08-17T00:00:00+01:00",
|
51
|
+
"period" => "864000",
|
52
|
+
"files" => "189.md,absent.txt",
|
53
|
+
"subject" => "[SVN] Important files have been changed!",
|
54
|
+
"template" => "lib/messages/svn_touch.erb"
|
55
|
+
)
|
56
|
+
)
|
57
|
+
assert_email "[SVN] Important files have been changed!",
|
58
|
+
%w[3 dgroup /189.md Add\ description\ for\ 189\ issue]
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
class SvnLogTest < Lazylead::Test
|
63
|
+
test "changes since revision" do
|
64
|
+
skip "No svn credentials provided" unless env? "svn_log_user",
|
65
|
+
"svn_log_password"
|
66
|
+
skip "No internet connection to riouxsvn.com" unless ping? "riouxsvn.com"
|
67
|
+
Lazylead::Smtp.new.enable
|
68
|
+
Task::SvnLog.new.run(
|
69
|
+
[],
|
45
70
|
Postman.new,
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
71
|
+
Opts.new(
|
72
|
+
"from" => "svnlog@test.com",
|
73
|
+
"svn_url" => "https://svn.riouxsvn.com/touch4ll",
|
74
|
+
"svn_user" => ENV["svn_log_user"],
|
75
|
+
"svn_password" => ENV["svn_log_password"],
|
76
|
+
"commit_url" => "https://view.commit.com?rev=",
|
77
|
+
"user" => "https://user.com?id=",
|
78
|
+
"to" => "lead@fake.com",
|
79
|
+
"since_rev" => "1",
|
80
|
+
"subject" => "[SVN] Changed since rev1",
|
81
|
+
"template" => "lib/messages/svn_log.erb"
|
82
|
+
)
|
58
83
|
)
|
59
|
-
|
60
|
-
|
84
|
+
assert_email_line "[SVN] Changed since rev1",
|
85
|
+
%w[r2 by dgroup at 2020-08-16]
|
61
86
|
end
|
62
87
|
end
|
63
88
|
end
|
data/test/test.rb
CHANGED
@@ -110,5 +110,30 @@ module Lazylead
|
|
110
110
|
.first
|
111
111
|
.body.parts.first.body.raw_source
|
112
112
|
end
|
113
|
+
|
114
|
+
# Assert that email sent using 'mail' gem in test mode
|
115
|
+
# has expected subject and line with expected words
|
116
|
+
# @todo #/DEV Gem 'mail' sends email as a single line, find a way how to add
|
117
|
+
# symbol '\n' to each line for email during unit testing.
|
118
|
+
def assert_email_line(subject, words)
|
119
|
+
words = [words] unless words.respond_to? :each
|
120
|
+
mail = Mail::TestMailer.deliveries
|
121
|
+
.filter { |m| m.subject.eql? subject }
|
122
|
+
.first
|
123
|
+
.body.parts.first.body.raw_source
|
124
|
+
.split("\n")
|
125
|
+
.reject(&:blank?)
|
126
|
+
assert mail.any? { |line| words.all? { |w| line.include? w } },
|
127
|
+
"Words '#{words.join(',')}' wasn't found in '#{mail.join('\n')}'"
|
128
|
+
end
|
129
|
+
|
130
|
+
# Ping remote host
|
131
|
+
# https://github.com/eitoball/net-ping
|
132
|
+
# https://stackoverflow.com/a/35508446/6916890
|
133
|
+
# https://rubygems.org/gems/net-ping/versions/2.0.8
|
134
|
+
def ping?(host)
|
135
|
+
require "net/ping"
|
136
|
+
Net::Ping::External.new(host).ping?
|
137
|
+
end
|
113
138
|
end
|
114
139
|
end
|
@@ -46,11 +46,7 @@ create table if not exists tasks
|
|
46
46
|
(
|
47
47
|
id integer primary key,
|
48
48
|
name text not null,
|
49
|
-
|
50
|
-
-- @todo #/DEV task.cron - add support for non-cron based schedule like at, once, every.
|
51
|
-
-- More details:
|
52
|
-
-- https://github.com/jmettraux/rufus-scheduler
|
53
|
-
-- https://stackoverflow.com/questions/46691666/using-constantize-to-invoke-both-a-class-and-method-from-separate-strings
|
49
|
+
schedule text not null,
|
54
50
|
system integer not null,
|
55
51
|
action text not null,
|
56
52
|
team_id integer not null,
|
@@ -22,24 +22,19 @@
|
|
22
22
|
* OR OTHER DEALINGS IN THE SOFTWARE.
|
23
23
|
*/
|
24
24
|
insert into systems(id, properties)
|
25
|
-
values (1,
|
26
|
-
|
27
|
-
(2,
|
28
|
-
'{"type":"Lazylead::Jira", "username":"${jsi_usr}", "password":"${jsi_psw}", "site":"https://jira.spring.io", "context_path":""}');
|
25
|
+
values (1,'{"type":"Lazylead::Jira", "username":"", "password":"", "site":"https://jira.spring.io", "context_path":""}'),
|
26
|
+
(2,'{"type":"Lazylead::Jira", "username":"${jsi_usr}", "password":"${jsi_psw}", "site":"https://jira.spring.io", "context_path":""}');
|
29
27
|
insert into teams(id, name, properties)
|
30
28
|
values (1, 'BA squad', '{"from":"basquad@fake.com", "usr":"${usr}"}'),
|
31
29
|
(154, 'Team for issue #154', '{"cc":"lead@fake.com"}');
|
32
|
-
insert into tasks(name,
|
33
|
-
values ('echo', '
|
34
|
-
('expired due date', '
|
35
|
-
|
36
|
-
|
37
|
-
('task with cc', '* * * * *', 'false', 3, 1, 1, 'Lazylead::Task::Echo',
|
38
|
-
'{"cc":"leelakenny@mail.com,maciecrane@mail.com"}'),
|
39
|
-
('task', '* * * * *', 'false', 4, 2, 1, 'Lazylead::Task::Echo', '{}'),
|
30
|
+
insert into tasks(name, schedule, enabled, id, system, team_id, action, properties)
|
31
|
+
values ('echo', 'cron:* * * * *', 'false', 1, 1, 1, 'Lazylead::Task::Echo', '{}'),
|
32
|
+
('expired due date', 'cron:* * * * *', 'false', 2, 1, 1,'Lazylead::Task::Notification','{"sql":"filter=100500","subject":"[DD] PDTN!","template":"lib/messages/due_date_expired.erb"}'),
|
33
|
+
('task with cc', 'cron:* * * * *', 'false', 3, 1, 1, 'Lazylead::Task::Echo','{"cc":"leelakenny@mail.com,maciecrane@mail.com"}'),
|
34
|
+
('task', 'cron:* * * * *', 'false', 4, 2, 1, 'Lazylead::Task::Echo', '{}'),
|
40
35
|
('pman', '', '', 5, 2, 1, '', '{"postman":"Lazylead::Postman"}'),
|
41
|
-
('issue 154', '
|
42
|
-
('task with complex cc', '
|
43
|
-
|
44
|
-
('issue
|
45
|
-
('issue
|
36
|
+
('issue 154', '', 'false', 154, 1, 154, 'Lazylead::Task::AssigneeAlert', '{}'),
|
37
|
+
('task with complex cc', '', 'false', 165, 1, 1, 'Lazylead::Task::Echo','{"cc":{"type":"Lazylead::PredefinedCC","opts": {"jvm":"tom@fake.com","jdbc":"mike@fake.com"}}}'),
|
38
|
+
('issue 171', '', 'false', 171, 1, 1, 'Lazylead::Task::Echo', '{"envkey":"${key171}"}'),
|
39
|
+
('issue 195', '', 'false', 195, 1, 1, 'Lazylead::Task::Accuracy', '{"key":"value"}'),
|
40
|
+
('issue 130', 'in:0.001s', 'true', 130, 1, 1, 'Lazylead::Task::EchoIO', '{}');
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lazylead
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yurii Dubinka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: colorize
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.8.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.8.1
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: faraday
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,20 +164,6 @@ dependencies:
|
|
150
164
|
- - '='
|
151
165
|
- !ruby/object:Gem::Version
|
152
166
|
version: 2.1.2
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: rainbow
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - '='
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: 3.0.0
|
160
|
-
type: :runtime
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - '='
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 3.0.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: require_all
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -388,6 +388,20 @@ dependencies:
|
|
388
388
|
- - '='
|
389
389
|
- !ruby/object:Gem::Version
|
390
390
|
version: 1.3.6
|
391
|
+
- !ruby/object:Gem::Dependency
|
392
|
+
name: net-ping
|
393
|
+
requirement: !ruby/object:Gem::Requirement
|
394
|
+
requirements:
|
395
|
+
- - '='
|
396
|
+
- !ruby/object:Gem::Version
|
397
|
+
version: 2.0.8
|
398
|
+
type: :development
|
399
|
+
prerelease: false
|
400
|
+
version_requirements: !ruby/object:Gem::Requirement
|
401
|
+
requirements:
|
402
|
+
- - '='
|
403
|
+
- !ruby/object:Gem::Version
|
404
|
+
version: 2.0.8
|
391
405
|
- !ruby/object:Gem::Dependency
|
392
406
|
name: rake
|
393
407
|
requirement: !ruby/object:Gem::Requirement
|
@@ -553,6 +567,7 @@ files:
|
|
553
567
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
554
568
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
555
569
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
570
|
+
- ".github/dependabot.yml"
|
556
571
|
- ".github/tasks.yml"
|
557
572
|
- ".github/trello.md"
|
558
573
|
- ".gitignore"
|
@@ -561,7 +576,6 @@ files:
|
|
561
576
|
- ".ruby-version"
|
562
577
|
- ".rultor.yml"
|
563
578
|
- ".simplecov"
|
564
|
-
- ".travis.yml"
|
565
579
|
- CNAME
|
566
580
|
- Gemfile
|
567
581
|
- Guardfile
|
@@ -592,7 +606,15 @@ files:
|
|
592
606
|
- lib/lazylead/system/synced.rb
|
593
607
|
- lib/lazylead/task/accuracy/accuracy.rb
|
594
608
|
- lib/lazylead/task/accuracy/affected_build.rb
|
609
|
+
- lib/lazylead/task/accuracy/attachment.rb
|
610
|
+
- lib/lazylead/task/accuracy/environment.rb
|
611
|
+
- lib/lazylead/task/accuracy/logs.rb
|
612
|
+
- lib/lazylead/task/accuracy/records.rb
|
595
613
|
- lib/lazylead/task/accuracy/requirement.rb
|
614
|
+
- lib/lazylead/task/accuracy/servers.rb
|
615
|
+
- lib/lazylead/task/accuracy/stacktrace.rb
|
616
|
+
- lib/lazylead/task/accuracy/testcase.rb
|
617
|
+
- lib/lazylead/task/accuracy/wiki.rb
|
596
618
|
- lib/lazylead/task/alert.rb
|
597
619
|
- lib/lazylead/task/confluence_ref.rb
|
598
620
|
- lib/lazylead/task/echo.rb
|
@@ -607,6 +629,7 @@ files:
|
|
607
629
|
- lib/messages/illegal_fixversion_change.erb
|
608
630
|
- lib/messages/missing_comment.erb
|
609
631
|
- lib/messages/savepoint.erb
|
632
|
+
- lib/messages/svn_log.erb
|
610
633
|
- lib/messages/svn_touch.erb
|
611
634
|
- license.txt
|
612
635
|
- readme.md
|
@@ -624,6 +647,15 @@ files:
|
|
624
647
|
- test/lazylead/system/jira_test.rb
|
625
648
|
- test/lazylead/task/accuracy/accuracy_test.rb
|
626
649
|
- test/lazylead/task/accuracy/affected_build_test.rb
|
650
|
+
- test/lazylead/task/accuracy/attachment_test.rb
|
651
|
+
- test/lazylead/task/accuracy/environment_test.rb
|
652
|
+
- test/lazylead/task/accuracy/logs_test.rb
|
653
|
+
- test/lazylead/task/accuracy/records_test.rb
|
654
|
+
- test/lazylead/task/accuracy/score_test.rb
|
655
|
+
- test/lazylead/task/accuracy/servers_test.rb
|
656
|
+
- test/lazylead/task/accuracy/stacktrace_test.rb
|
657
|
+
- test/lazylead/task/accuracy/testcase_test.rb
|
658
|
+
- test/lazylead/task/accuracy/wiki_test.rb
|
627
659
|
- test/lazylead/task/assignee_alert_test.rb
|
628
660
|
- test/lazylead/task/confluence_ref_test.rb
|
629
661
|
- test/lazylead/task/duedate_test.rb
|
@@ -643,7 +675,7 @@ licenses:
|
|
643
675
|
- MIT
|
644
676
|
metadata: {}
|
645
677
|
post_install_message: |-
|
646
|
-
Thanks for installing Lazylead v0.
|
678
|
+
Thanks for installing Lazylead v0.5.2!
|
647
679
|
Read our blog posts: https://lazylead.org
|
648
680
|
Stay in touch with the community in Telegram: https://t.me/lazylead
|
649
681
|
Follow us on Twitter: https://twitter.com/lazylead
|
@@ -682,6 +714,15 @@ test_files:
|
|
682
714
|
- test/lazylead/system/jira_test.rb
|
683
715
|
- test/lazylead/task/accuracy/accuracy_test.rb
|
684
716
|
- test/lazylead/task/accuracy/affected_build_test.rb
|
717
|
+
- test/lazylead/task/accuracy/attachment_test.rb
|
718
|
+
- test/lazylead/task/accuracy/environment_test.rb
|
719
|
+
- test/lazylead/task/accuracy/logs_test.rb
|
720
|
+
- test/lazylead/task/accuracy/records_test.rb
|
721
|
+
- test/lazylead/task/accuracy/score_test.rb
|
722
|
+
- test/lazylead/task/accuracy/servers_test.rb
|
723
|
+
- test/lazylead/task/accuracy/stacktrace_test.rb
|
724
|
+
- test/lazylead/task/accuracy/testcase_test.rb
|
725
|
+
- test/lazylead/task/accuracy/wiki_test.rb
|
685
726
|
- test/lazylead/task/assignee_alert_test.rb
|
686
727
|
- test/lazylead/task/confluence_ref_test.rb
|
687
728
|
- test/lazylead/task/duedate_test.rb
|