sensu-settings 9.6.0 → 9.7.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: ab16c752bbc9d259601625d35d3e31a7f0ad90ca
4
- data.tar.gz: f047f2e9d104b268677add8d28620d8b690a54b0
3
+ metadata.gz: 032bd11747ae6ca9be56e9634863f385fabb5b60
4
+ data.tar.gz: 7e2372017f50b83b8e2a825d994faa99776b132d
5
5
  SHA512:
6
- metadata.gz: 0e6a8f2b5f8236fba7416eac0fb8d41c3b7f15c40d92332a291f9bb25daa2587161624b3f6379a62a57587613c9510630c7e61f46a75a08a4a923eba0e9a95ff
7
- data.tar.gz: 59011c8e9c642c5abdb083750017dbd9b8696dc062cf101ab0b27ea603e475acb740c363def1ae5a7fd84b8e2c9a7febe6379483fcec53a552c879982f050ae9
6
+ metadata.gz: 9ed866698f49310e81b106b5424bb9f5c4457584aae40f1240e8cafb046bcc16dc6af332de9d9c6f89a3a1ac6481df11ddd8374dafb715b541b71a3ea782acac
7
+ data.tar.gz: 760aa8d2cd35951ac1467fb9c7638a7a99d89efe574a0532c4dcadf0dc0f0aaa84db58b11c949a44ef8f7647d9b5fbb79aae023f420461f4ad13be81c2154c15
@@ -64,6 +64,19 @@ module Sensu
64
64
  end
65
65
  end
66
66
 
67
+ # Validate check proxy requests.
68
+ # Validates: proxy_requests
69
+ #
70
+ # @param check [Hash] sensu check definition.
71
+ def validate_check_proxy_requests(check)
72
+ if is_a_hash?(check[:proxy_requests])
73
+ must_be_a_hash(check[:proxy_requests][:client_attributes]) ||
74
+ invalid(check, "check proxy_requests client_attributes must be a hash")
75
+ else
76
+ invalid(check, "check proxy_requests must be a hash")
77
+ end
78
+ end
79
+
67
80
  # Validate check handling.
68
81
  # Validates: handler, handlers
69
82
  #
@@ -147,6 +160,7 @@ module Sensu
147
160
  validate_check_execution(check)
148
161
  validate_check_source(check) if check[:source]
149
162
  validate_check_scheduling(check)
163
+ validate_check_proxy_requests(check) if check[:proxy_requests]
150
164
  validate_check_handling(check)
151
165
  validate_check_ttl(check) if check[:ttl]
152
166
  validate_check_aggregate(check)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-settings"
5
- spec.version = "9.6.0"
5
+ spec.version = "9.7.0"
6
6
  spec.authors = ["Sean Porter"]
7
7
  spec.email = ["portertech@gmail.com"]
8
8
  spec.summary = "The Sensu settings library, loader and validator"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.6.0
4
+ version: 9.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-22 00:00:00.000000000 Z
11
+ date: 2017-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-json