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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ce859b7b5c5f6135860a015e9669fc67d5db6f237c1d3b0671f961257d90a8f
4
- data.tar.gz: 955d497645c3d49de0a9e72b05620753155850b7c93f98e8716c7da4ff81f8af
3
+ metadata.gz: c9c8f4d6bdb8df1b2a63ce5cde60dac008a55e2adaf2c5b81959f2d838b36392
4
+ data.tar.gz: 332869ea3794558bf8de6de40587bc7c44ead3f091d3c252437d90d21fc20568
5
5
  SHA512:
6
- metadata.gz: 4239d182d22d575ce433553cc396ca395d7bf734665cd5a1dec73ec689279b3cdd95ed183fc7129f197081a74857e57ae4738050ca9c7f897df27796ebb28ae6
7
- data.tar.gz: 9b38ffa862129f823cb40f4d42e1b8fbe7fa04c670f2b1aa1b3e6c87681b341b7423a34ca403b57fc665ab2879b4996d597ce67395bf01ec77a74f1bf80a3eac
6
+ metadata.gz: 8db014fb7831388ef281704edc5a12b4162a07952f1d6c8d50884040d102bdc20ce4c7208082e9bbeb96908df2bda0a23c46e6e1af3bd8f9011371b058993867
7
+ data.tar.gz: db870026451324017bc2dc4f486080c5627cf8aa4904492af25addbfb996e310e808e838ac346431d6efb845a674a5c26ba690c1a214afccf8cc2072d20ee1d0
@@ -2,7 +2,7 @@
2
2
  require 'assertthat-bdd'
3
3
  require 'optparse'
4
4
 
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.2'
6
6
 
7
7
  options = {}
8
8
  OptionParser.new do |opt|
@@ -2,7 +2,7 @@
2
2
  require 'assertthat-bdd'
3
3
  require 'optparse'
4
4
 
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.2'
6
6
 
7
7
  options = {}
8
8
  OptionParser.new do |opt|
@@ -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 '[ERROR] Unauthorized error (401). Supplied secretKey/accessKey is invalid'
20
+ puts '*** ERROR: Unauthorized error (401). Supplied secretKey/accessKey is invalid'
21
21
  when 400
22
- puts '[ERROR] ' + e.response
22
+ puts '*** ERROR: ' + e.response
23
23
  when 500
24
- puts '[ERROR] Jira server error (500)'
24
+ puts '*** ERROR: Jira server error (500)'
25
25
  end
26
26
  end
27
27
  else
28
- puts '[ERROR] Failed download features: ' + e.message
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 "[INFO] #{features_count} features downloaded"
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 "[INFO] #{files.count} found matching parretn #{jsonReportIncludePattern}:"
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 '[ERROR] Unauthorized error (401). Supplied secretKey/accessKey is invalid'
73
+ puts '*** ERROR: Unauthorized error (401). Supplied secretKey/accessKey is invalid'
73
74
  when 500
74
- puts '[ERROR] Jira server error (500)'
75
+ puts '*** ERROR: Jira server error (500)'
75
76
  end
76
77
  end
77
78
  else
78
- puts '[ERROR] Failed to submit report: ' + e.message
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 '[ERROR] Failed to submit report: ' + resposne_json['message']
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.1
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-07 00:00:00.000000000 Z
11
+ date: 2018-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client