serverspec 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +5 -1
- data/lib/serverspec/helper.rb +2 -0
- data/lib/serverspec/helper/properties.rb +9 -0
- data/lib/serverspec/version.rb +1 -1
- data/spec/freebsd/file_spec.rb +2 -2
- data/spec/helper/properties_spec.rb +11 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95d8da0ffbf3b43d3b0d0a487a1139274a7ace7b
|
4
|
+
data.tar.gz: 9033f985981bca13abcb52ccd0c3b176f31a6073
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 457d3354e927adccffd7ee9fc75a78921c203e8ccdabf38c58e58ba24fc48f87d9ac37a7cd940ab413c50fc17aa7c8ffa57a9d6910ec555f5fcdc7359159d567
|
7
|
+
data.tar.gz: f8e11dff56aa715e7934187b2b0e31ff6a739d5ce538d7a6dc69909b53c08f91f699503d5686c9ff4565313d982f0c4581784d0c9961e1c1958c160f5a346a59
|
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ task :spec => 'spec:all'
|
|
6
6
|
namespace :spec do
|
7
7
|
oses = %w( darwin debian gentoo plamo redhat aix solaris solaris10 solaris11 smartos windows freebsd)
|
8
8
|
|
9
|
-
task :all => [ oses.map {|os| "spec:#{os}" }, :exec, :ssh, :cmd, :winrm, :powershell ].flatten
|
9
|
+
task :all => [ oses.map {|os| "spec:#{os}" }, :exec, :ssh, :cmd, :winrm, :powershell, :helper ].flatten
|
10
10
|
|
11
11
|
oses.each do |os|
|
12
12
|
RSpec::Core::RakeTask.new(os.to_sym) do |t|
|
@@ -19,4 +19,8 @@ namespace :spec do
|
|
19
19
|
t.pattern = "spec/backend/#{backend.to_s}/*_spec.rb"
|
20
20
|
end
|
21
21
|
end
|
22
|
+
|
23
|
+
RSpec::Core::RakeTask.new(:helper) do |t|
|
24
|
+
t.pattern = "spec/helper/*_spec.rb"
|
25
|
+
end
|
22
26
|
end
|
data/lib/serverspec/helper.rb
CHANGED
data/lib/serverspec/version.rb
CHANGED
data/spec/freebsd/file_spec.rb
CHANGED
@@ -109,7 +109,7 @@ end
|
|
109
109
|
describe file('/dev') do
|
110
110
|
let(:stdout) { "755\r\n" }
|
111
111
|
it { should be_readable }
|
112
|
-
its(:command) { should eq "stat -
|
112
|
+
its(:command) { should eq "stat -f%Lp /dev" }
|
113
113
|
end
|
114
114
|
|
115
115
|
describe file('/dev') do
|
@@ -150,7 +150,7 @@ end
|
|
150
150
|
describe file('/dev') do
|
151
151
|
let(:stdout) { "755\r\n" }
|
152
152
|
it { should be_writable }
|
153
|
-
its(:command) { should eq "stat -
|
153
|
+
its(:command) { should eq "stat -f%Lp /dev" }
|
154
154
|
end
|
155
155
|
|
156
156
|
describe file('/dev') do
|
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: 0.13.
|
4
|
+
version: 0.13.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -116,6 +116,7 @@ files:
|
|
116
116
|
- lib/serverspec/helper.rb
|
117
117
|
- lib/serverspec/helper/backend.rb
|
118
118
|
- lib/serverspec/helper/os.rb
|
119
|
+
- lib/serverspec/helper/properties.rb
|
119
120
|
- lib/serverspec/helper/type.rb
|
120
121
|
- lib/serverspec/matchers.rb
|
121
122
|
- lib/serverspec/matchers/be_enabled.rb
|
@@ -253,6 +254,7 @@ files:
|
|
253
254
|
- spec/gentoo/service_spec.rb
|
254
255
|
- spec/gentoo/user_spec.rb
|
255
256
|
- spec/gentoo/zfs_spec.rb
|
257
|
+
- spec/helper/properties_spec.rb
|
256
258
|
- spec/plamo/cgroup_spec.rb
|
257
259
|
- spec/plamo/command_spec.rb
|
258
260
|
- spec/plamo/cron_spec.rb
|
@@ -457,6 +459,7 @@ test_files:
|
|
457
459
|
- spec/gentoo/service_spec.rb
|
458
460
|
- spec/gentoo/user_spec.rb
|
459
461
|
- spec/gentoo/zfs_spec.rb
|
462
|
+
- spec/helper/properties_spec.rb
|
460
463
|
- spec/plamo/cgroup_spec.rb
|
461
464
|
- spec/plamo/command_spec.rb
|
462
465
|
- spec/plamo/cron_spec.rb
|