serverspec 2.37.2 → 2.38.0
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 +4 -4
- data/appveyor.yml +4 -0
- data/lib/serverspec/type/command.rb +6 -0
- data/lib/serverspec/version.rb +1 -1
- data/spec/type/base/command_spec.rb +39 -0
- data/wercker.yml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faec0c12b4023e12d66df5650b3798025d102cb2
|
4
|
+
data.tar.gz: 45e5c00f4a9197f44e501d804e0840609269de23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f74a943a7e8ef59b2a873f012c241e24d3cc2937252e077fcd25a8169ef3c26e3508a86d14fd0573e1a10563d7660a61087ae5871e498f8ced912aad1d58346e
|
7
|
+
data.tar.gz: 17a29cddc5877d239a3a437100126bd8fd31f18e347f94459a960e89ff300489888a1c5efdc229648f7b00965694c15f00c552b2f2a6978fa939ee8d65d086f9
|
data/appveyor.yml
CHANGED
data/lib/serverspec/version.rb
CHANGED
@@ -65,3 +65,42 @@ EOF
|
|
65
65
|
its(:stdout) { should contain('4260').before('home') }
|
66
66
|
its(:stdout) { should_not contain('4260').before('bin') }
|
67
67
|
end
|
68
|
+
|
69
|
+
describe command('curl http://localhost:8080/info') do
|
70
|
+
let(:stdout) { <<EOF
|
71
|
+
{
|
72
|
+
"sensu":{
|
73
|
+
"version":"0.26.5"
|
74
|
+
},
|
75
|
+
"transport":{
|
76
|
+
"keepalives":{
|
77
|
+
"messages":0,
|
78
|
+
"consumers":1
|
79
|
+
},
|
80
|
+
"results":{
|
81
|
+
"messages":0,
|
82
|
+
"consumers":1
|
83
|
+
},
|
84
|
+
"connected":true
|
85
|
+
},
|
86
|
+
"redis":{
|
87
|
+
"connected":true
|
88
|
+
},
|
89
|
+
"array":[
|
90
|
+
{
|
91
|
+
"title":"array 1"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"title":"array 2"
|
95
|
+
}
|
96
|
+
]
|
97
|
+
}
|
98
|
+
EOF
|
99
|
+
}
|
100
|
+
|
101
|
+
its(:stdout_as_json) { should include('sensu') }
|
102
|
+
its(:stdout_as_json) { should include('sensu' => include('version' => '0.26.5')) }
|
103
|
+
its(:stdout_as_json) { should include('transport' => include('keepalives' => include('consumers' => 1))) }
|
104
|
+
its(:stdout_as_json) { should include('transport' => include('connected' => true)) }
|
105
|
+
its(:stdout_as_json) { should include('array' => include('title' => 'array 2')) }
|
106
|
+
end
|
data/wercker.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.38.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|