serverspec 2.7.2 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverspec/helper/type.rb +1 -1
- data/lib/serverspec/matcher.rb +1 -1
- data/lib/serverspec/type/fstab.rb +11 -0
- data/lib/serverspec/version.rb +1 -1
- data/serverspec.gemspec +1 -1
- data/spec/type/linux/fstab_spec.rb +31 -0
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1eec9ac82151f64216448ace26d9a0092a01568
|
4
|
+
data.tar.gz: 15cf3b516e4f7ce84fde195d84d578e65d312777
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0fb9ebe9751a896bc9a6ab65eddbb4d621d9b50755f1cc2ddb887700d96ac57588e90a6cda13d2092f82c0e56e32214a731e41c5db18fcf5667b36366e1f77e
|
7
|
+
data.tar.gz: 84a4b2207f8b21cac605cbabf70cb51159d2fd2772b0c3c24096d9061fd1b47debceb9bc96678b82ccb388d35f1b9db1fa50f8503565845e8abb5b9072ca9f4d
|
@@ -2,7 +2,7 @@ module Serverspec
|
|
2
2
|
module Helper
|
3
3
|
module Type
|
4
4
|
types = %w(
|
5
|
-
base bridge cgroup command cron default_gateway file group host
|
5
|
+
base bridge cgroup command cron default_gateway file fstab group host
|
6
6
|
iis_website iis_app_pool interface ipfilter ipnat iptables
|
7
7
|
ip6tables kernel_module linux_kernel_parameter lxc mail_alias
|
8
8
|
package php_config port ppa process routing_table selinux
|
data/lib/serverspec/matcher.rb
CHANGED
data/lib/serverspec/version.rb
CHANGED
data/serverspec.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_runtime_dependency "rspec", "~> 3.0"
|
22
22
|
spec.add_runtime_dependency "rspec-its"
|
23
23
|
spec.add_runtime_dependency "multi_json"
|
24
|
-
spec.add_runtime_dependency "specinfra", "~> 2.
|
24
|
+
spec.add_runtime_dependency "specinfra", "~> 2.12"
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
26
26
|
spec.add_development_dependency "rake", "~> 10.1.1"
|
27
27
|
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
set :os, :family => 'linux'
|
4
|
+
|
5
|
+
describe fstab do
|
6
|
+
let(:stdout) { "/dev/sda1 /mnt ext4 ro,errors=remount-ro,barrier=0 0 2\r\n" }
|
7
|
+
it { should have_entry( :mount_point => '/mnt' ) }
|
8
|
+
end
|
9
|
+
|
10
|
+
describe fstab do
|
11
|
+
let(:exit_status) { 1 }
|
12
|
+
it { should_not have_entry( :mount_point => '/mnt' ) }
|
13
|
+
end
|
14
|
+
|
15
|
+
describe fstab do
|
16
|
+
let(:stdout) { "/dev/sda1 /mnt ext4 ro,errors=remount-ro,barrier=0 0 2\r\n" }
|
17
|
+
it do
|
18
|
+
should have_entry(
|
19
|
+
:device => '/dev/sda1',
|
20
|
+
:mount_point => '/mnt',
|
21
|
+
:type => 'ext4',
|
22
|
+
:options => {
|
23
|
+
:ro => true,
|
24
|
+
:errors => 'remount-ro',
|
25
|
+
:barrier => 0
|
26
|
+
},
|
27
|
+
:dump => 0,
|
28
|
+
:pass => 2
|
29
|
+
)
|
30
|
+
end
|
31
|
+
end
|
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.8.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: 2015-01-
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
61
|
+
version: '2.12'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2.
|
68
|
+
version: '2.12'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,6 +148,7 @@ files:
|
|
148
148
|
- lib/serverspec/type/docker_container.rb
|
149
149
|
- lib/serverspec/type/docker_image.rb
|
150
150
|
- lib/serverspec/type/file.rb
|
151
|
+
- lib/serverspec/type/fstab.rb
|
151
152
|
- lib/serverspec/type/group.rb
|
152
153
|
- lib/serverspec/type/host.rb
|
153
154
|
- lib/serverspec/type/iis_app_pool.rb
|
@@ -225,6 +226,7 @@ files:
|
|
225
226
|
- spec/type/linux/docker_container_spec.rb
|
226
227
|
- spec/type/linux/docker_image_spec.rb
|
227
228
|
- spec/type/linux/file_spec.rb
|
229
|
+
- spec/type/linux/fstab_spec.rb
|
228
230
|
- spec/type/linux/interface_spec.rb
|
229
231
|
- spec/type/linux/ip6tables_spec.rb
|
230
232
|
- spec/type/linux/iptables_spec.rb
|
@@ -360,6 +362,7 @@ test_files:
|
|
360
362
|
- spec/type/linux/docker_container_spec.rb
|
361
363
|
- spec/type/linux/docker_image_spec.rb
|
362
364
|
- spec/type/linux/file_spec.rb
|
365
|
+
- spec/type/linux/fstab_spec.rb
|
363
366
|
- spec/type/linux/interface_spec.rb
|
364
367
|
- spec/type/linux/ip6tables_spec.rb
|
365
368
|
- spec/type/linux/iptables_spec.rb
|