fake_sensu 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e823aeb4885d61e08d64b6b45b63a9456f58af9
4
- data.tar.gz: 2b8573e5d4dbe565cae837910eb156f589965af8
3
+ metadata.gz: 5dff4d0749aa831436d6b59d107a3f108a430aba
4
+ data.tar.gz: 398d376529f78a657e2116260331f437da771bd9
5
5
  SHA512:
6
- metadata.gz: 7d724be609f5a36c8de69ac1775875a62ddde128a687e6f74690975ba21a5b6a6508832c5038485c73bebcb74240244b920aa495fe60062e8efd22d38d6a7189
7
- data.tar.gz: baa3e89b849e84bf548d089f89f5b3429cde42af8e7c73dc5dd46da0698e6bb21be47fe76dbfe7b1d4eebae64cb3a5e5a026a38674cdf05cbdddb49e98a7b9bd
6
+ metadata.gz: f9aae81c5ea46d2c848db3401f6ff7172347e4c29476b92d191c51188a9ea9942f3090819c735bc15986b9604809a1640d76af0133882c0e0649c729a0c7228b
7
+ data.tar.gz: 884a131392c201e7e71aac2590add1a1678ba3a265e976d49900c6d3e5ee6e37ac5b8ca4ecb712628ddf5ddfafb82ab2ae032f2a025a28a68b1c7f5a0001059f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.1.3
2
+ * Adds second client with fqdn in client name
3
+
1
4
  ## 0.1.2
2
5
  * Better 0.10.2 responses
3
6
 
data/generate_responses CHANGED
@@ -55,6 +55,7 @@ class FakeSensu
55
55
  @show_responses = {"show" => {}}
56
56
  paths = %w{
57
57
  clients/i-424242
58
+ clients/www.fqdn.com
58
59
  }
59
60
  paths.each do |path|
60
61
  begin
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "index": {
3
- "info": "{\"sensu\":{\"version\":\"0.10.2\"},\"rabbitmq\":{\"keepalives\":{\"messages\":1400,\"consumers\":0},\"results\":{\"messages\":0,\"consumers\":0},\"connected\":true},\"redis\":{\"connected\":true}}",
4
- "clients": "[{\"name\":\"i-424242\",\"address\":\"127.0.0.1\",\"subscriptions\":[\"test\"],\"keepalive\":{\"thresholds\":{\"warning\":60,\"critical\":120}},\"timestamp\":1377890282}]",
3
+ "info": "{\"sensu\":{\"version\":\"0.10.2\"},\"rabbitmq\":{\"keepalives\":{\"messages\":0,\"consumers\":1},\"results\":{\"messages\":0,\"consumers\":1},\"connected\":true},\"redis\":{\"connected\":true}}",
4
+ "clients": "[{\"name\":\"i-424242\",\"address\":\"127.0.0.1\",\"subscriptions\":[\"test\"],\"keepalive\":{\"thresholds\":{\"warning\":60,\"critical\":120}},\"timestamp\":1377979075},{\"name\":\"www.fqdn.com\",\"address\":\"192.168.5.5\",\"subscriptions\":[\"test\"],\"keepalive\":{\"thresholds\":{\"warning\":60,\"critical\":120}},\"timestamp\":1377979075}]",
5
5
  "checks": "[{\"command\":\"echo -n OK\",\"subscribers\":[\"test\"],\"interval\":60,\"name\":\"test\"},{\"command\":\"echo -n OK\",\"subscribers\":[\"tokens\"],\"interval\":60,\"name\":\"tokens\"}]",
6
- "events": "[{\"output\":\"CRITICAL\",\"status\":2,\"issued\":1377890282,\"flapping\":false,\"occurrences\":1,\"client\":\"i-424242\",\"check\":\"test\"}]",
6
+ "events": "[{\"output\":\"CRITICAL\",\"status\":2,\"issued\":1377979075,\"flapping\":false,\"occurrences\":1,\"client\":\"i-424242\",\"check\":\"test\"},{\"output\":\"No keep-alive sent from client in over 120 seconds\",\"status\":2,\"issued\":1377979235,\"handlers\":[\"default\"],\"flapping\":false,\"occurrences\":2,\"client\":\"i-424242\",\"check\":\"keepalive\"},{\"output\":\"CRITICAL\",\"status\":2,\"issued\":1377979075,\"flapping\":false,\"occurrences\":1,\"client\":\"www.fqdn.com\",\"check\":\"test\"},{\"output\":\"No keep-alive sent from client in over 120 seconds\",\"status\":2,\"issued\":1377979235,\"handlers\":[\"default\"],\"flapping\":false,\"occurrences\":2,\"client\":\"www.fqdn.com\",\"check\":\"keepalive\"}]",
7
7
  "stashes": "[{\"path\":\"tester\",\"content\":{\"key\":\"value\"}},{\"path\":\"test/test\",\"content\":{\"key\":\"value\"}}]"
8
8
  },
9
9
  "show": {
10
- "clients/i-424242": "{\"name\":\"i-424242\",\"address\":\"127.0.0.1\",\"subscriptions\":[\"test\"],\"keepalive\":{\"thresholds\":{\"warning\":60,\"critical\":120}},\"timestamp\":1377890282}"
10
+ "clients/i-424242": "{\"name\":\"i-424242\",\"address\":\"127.0.0.1\",\"subscriptions\":[\"test\"],\"keepalive\":{\"thresholds\":{\"warning\":60,\"critical\":120}},\"timestamp\":1377979075}",
11
+ "clients/www.fqdn.com": "{\"name\":\"www.fqdn.com\",\"address\":\"192.168.5.5\",\"subscriptions\":[\"test\"],\"keepalive\":{\"thresholds\":{\"warning\":60,\"critical\":120}},\"timestamp\":1377979075}"
11
12
  }
12
13
  }
@@ -1,3 +1,3 @@
1
1
  module FakeSensu
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fake_sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Sebastian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-30 00:00:00.000000000 Z
11
+ date: 2013-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler