sensu-plugins-serverspec 1.0.0 → 2.0.0

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
  SHA1:
3
- metadata.gz: 7d683fbd52c136c8bd92c7575f4bf6c14efd128b
4
- data.tar.gz: 2823c815b64ef1809bb74b60db193cc253f003e8
3
+ metadata.gz: 3d9388a0bc1057a9e7f53ea5acd86709a5de4865
4
+ data.tar.gz: 2db53e91b6fedc4fde40f0cb6e7cee366d0d3e03
5
5
  SHA512:
6
- metadata.gz: 26a1e02a40108e51685d16af4ae9344853af775bda2549ae882c155deda3615cda262304e2463ab15de4b9f743c973cb9faf363a9934a17ac9a0f02066c805d6
7
- data.tar.gz: b480e342293f8ecfa4728bc0e380e885d4c9c05d6020862e5fc2bb2be065f1f87a40c27378607d0adb7530e819de007a780a1b3b38b7bb9ef442cc0d4685a84c
6
+ metadata.gz: d0582b2113867de0d0445085230ec5090b38f89123cd6fa8b6e9970fe36e9759e341e036ef155a6e408bbb69b6a8b270ecfa52c1225c946b482cb4862a0035ac
7
+ data.tar.gz: 3ce1054ae97b6b621d042bdecf11a2f96e57540fa3b6e2fcb834daea89cd20dbf948bf1c0b1d84f351c8a123d19c5912add53a45dfcc934caa05a5db9a35d5ee
@@ -5,6 +5,16 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2.0.0] - 2017-07-29
9
+ ### Added
10
+ - Ruby 2.4.1 testing
11
+
12
+ ### Breaking Changes
13
+ - Check result names will now be appended with a unique index value to ensure a unique namespace for all results
14
+
15
+ ### Fixed
16
+ - PR template spelling
17
+
8
18
  ## [1.0.0] - 2016-09-25
9
19
  ### Changed
10
20
  - Dependency on sensu-plugin changed from strict (= 1.2.0) to pessimistic (~> 1.2)
@@ -36,6 +46,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
36
46
  - initial release
37
47
 
38
48
  [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-serverspec/compare/1.0.0...HEAD
49
+ [2.0.0]: https://github.com/sensu-plugins/sensu-plugins-serverspec/compare/1.0.0...2.0.0
39
50
  [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-serverspec/compare/0.1.0...1.0.0
40
51
  [0.1.0]: https://github.com/sensu-plugins/sensu-plugins-serverspec/compare/0.0.2...0.1.0
41
52
  [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-serverspec/compare/0.0.1...0.0.2
data/README.md CHANGED
@@ -13,6 +13,10 @@
13
13
 
14
14
  ## Usage
15
15
 
16
+ Run test suite:
17
+
18
+ `check-serverspec -d /tmp/my_tests -t spec/my_tests_spec.rb`
19
+
16
20
  ## Installation
17
21
 
18
22
  [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
@@ -108,8 +108,8 @@ class CheckServerspec < Sensu::Plugin::Check::CLI
108
108
  end
109
109
  parsed = JSON.parse(serverspec_results)
110
110
 
111
- parsed['examples'].each do |serverspec_test|
112
- test_name = serverspec_test['file_path'].split('/')[-1] + '_' + serverspec_test['line_number'].to_s
111
+ parsed['examples'].each_with_index do |serverspec_test, index|
112
+ test_name = serverspec_test['file_path'].split('/')[-1] + '_' + serverspec_test['line_number'].to_s + '_' + index.to_s
113
113
  output = serverspec_test['full_description'].delete!('"')
114
114
 
115
115
  if serverspec_test['status'] == 'passed'
@@ -1,6 +1,6 @@
1
1
  module SensuPluginsServerSpec
2
2
  module Version
3
- MAJOR = 1
3
+ MAJOR = 2
4
4
  MINOR = 0
5
5
  PATCH = 0
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-26 00:00:00.000000000 Z
11
+ date: 2017-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  version: '0'
204
204
  requirements: []
205
205
  rubyforge_project:
206
- rubygems_version: 2.5.1
206
+ rubygems_version: 2.4.5
207
207
  signing_key:
208
208
  specification_version: 4
209
209
  summary: Sensu plugins for serverspec