assertthat-bdd 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/assertthat-bdd-features +1 -1
- data/bin/assertthat-bdd-report +1 -1
- data/lib/assertthat-bdd.rb +11 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9c8f4d6bdb8df1b2a63ce5cde60dac008a55e2adaf2c5b81959f2d838b36392
|
4
|
+
data.tar.gz: 332869ea3794558bf8de6de40587bc7c44ead3f091d3c252437d90d21fc20568
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8db014fb7831388ef281704edc5a12b4162a07952f1d6c8d50884040d102bdc20ce4c7208082e9bbeb96908df2bda0a23c46e6e1af3bd8f9011371b058993867
|
7
|
+
data.tar.gz: db870026451324017bc2dc4f486080c5627cf8aa4904492af25addbfb996e310e808e838ac346431d6efb845a674a5c26ba690c1a214afccf8cc2072d20ee1d0
|
data/bin/assertthat-bdd-features
CHANGED
data/bin/assertthat-bdd-report
CHANGED
data/lib/assertthat-bdd.rb
CHANGED
@@ -17,15 +17,15 @@ module AssertThatBDD
|
|
17
17
|
if e.response.respond_to?('code') then
|
18
18
|
case e.response.code
|
19
19
|
when 401
|
20
|
-
puts '
|
20
|
+
puts '*** ERROR: Unauthorized error (401). Supplied secretKey/accessKey is invalid'
|
21
21
|
when 400
|
22
|
-
puts '
|
22
|
+
puts '*** ERROR: ' + e.response
|
23
23
|
when 500
|
24
|
-
puts '
|
24
|
+
puts '*** ERROR: Jira server error (500)'
|
25
25
|
end
|
26
26
|
end
|
27
27
|
else
|
28
|
-
puts '
|
28
|
+
puts '*** ERROR: Failed download features: ' + e.message
|
29
29
|
end
|
30
30
|
return
|
31
31
|
end
|
@@ -39,7 +39,7 @@ module AssertThatBDD
|
|
39
39
|
entry.extract("#{outputFolder}#{entry.name}")
|
40
40
|
end
|
41
41
|
end
|
42
|
-
puts "
|
42
|
+
puts "*** INFO: #{features_count} features downloaded"
|
43
43
|
File.delete("#{outputFolder}/features.zip")
|
44
44
|
end
|
45
45
|
end
|
@@ -48,7 +48,8 @@ module AssertThatBDD
|
|
48
48
|
def self.upload(accessKey: ENV['ASSERTTHAT_ACCESS_KEY'], secretKey: ENV['ASSERTTHAT_ACCESS_KEY'], projectId: nil, runName: 'Test run '+Time.now.strftime("%d %b %Y %H:%M:%S"), jsonReportFolder: './reports', jsonReportIncludePattern: '.*.json' )
|
49
49
|
url = "https://bdd.assertthat.com/rest/api/1/project/" + projectId + "/report"
|
50
50
|
files = Find.find(jsonReportFolder).grep(/#{jsonReportIncludePattern}/)
|
51
|
-
puts "
|
51
|
+
puts "*** INFO: #{files.count} files found matching parretn #{jsonReportIncludePattern}:"
|
52
|
+
puts "*** INFO: #{files}"
|
52
53
|
runId = -1
|
53
54
|
files.each do |f|
|
54
55
|
request = RestClient::Request.new(
|
@@ -69,13 +70,13 @@ module AssertThatBDD
|
|
69
70
|
if e.response.respond_to?('code') then
|
70
71
|
case e.response.code
|
71
72
|
when 401
|
72
|
-
puts '
|
73
|
+
puts '*** ERROR: Unauthorized error (401). Supplied secretKey/accessKey is invalid'
|
73
74
|
when 500
|
74
|
-
puts '
|
75
|
+
puts '*** ERROR: Jira server error (500)'
|
75
76
|
end
|
76
77
|
end
|
77
78
|
else
|
78
|
-
puts
|
79
|
+
puts "*** ERROR: Failed to submit json #{f}: " + e.message
|
79
80
|
end
|
80
81
|
return
|
81
82
|
end
|
@@ -83,7 +84,7 @@ module AssertThatBDD
|
|
83
84
|
if resposne_json['result'] == 'success'
|
84
85
|
runId = resposne_json['runId']
|
85
86
|
else
|
86
|
-
puts
|
87
|
+
puts "*** ERROR: Failed to submit json #{f}: " + resposne_json['message']
|
87
88
|
end
|
88
89
|
end
|
89
90
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assertthat-bdd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Glib Briia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|