serverspec 1.11.0 → 1.12.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/type/iis_app_pool.rb +24 -0
- data/lib/serverspec/version.rb +1 -1
- data/serverspec.gemspec +1 -1
- data/spec/debian/lxc_spec.rb +1 -1
- data/spec/fedora/lxc_spec.rb +1 -1
- data/spec/freebsd/file_spec.rb +3 -3
- data/spec/gentoo/lxc_spec.rb +1 -1
- data/spec/plamo/lxc_spec.rb +1 -1
- data/spec/redhat/lxc_spec.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87da9e79c6ae6334dd80bb252d9276bbefaf8b7a
|
4
|
+
data.tar.gz: a6e3e6fbb9147b6ac2cd344403db27b0b12dde9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6628b2f260a8156aadbef85d92b306c4a187e0f620186376d8abcaf3bfe6c25ea593aca6a002203b9fb9e6a6e0995e5417babe1afb4d89a06a134efdb99fc681
|
7
|
+
data.tar.gz: 14ff49a5323e365edb040dfaedbdc07db7832414366ac468a6fb49d4edefc13c73a72fe30b9fcac1468000b93abcb865b2dfde2aff8775170a3dccc5cc4cfc17
|
@@ -9,6 +9,30 @@ module Serverspec
|
|
9
9
|
backend.check_iis_app_pool_dotnet(@name, dotnet)
|
10
10
|
end
|
11
11
|
|
12
|
+
def has_32bit_enabled?()
|
13
|
+
backend.check_32bit_enabled(@name)
|
14
|
+
end
|
15
|
+
|
16
|
+
def has_idle_timeout?(minutes)
|
17
|
+
backend.check_idle_timeout(@name, minutes)
|
18
|
+
end
|
19
|
+
|
20
|
+
def has_identity_type?(identity_type)
|
21
|
+
backend.check_identity_type(@name, identity_type)
|
22
|
+
end
|
23
|
+
|
24
|
+
def has_periodic_restart?(minutes)
|
25
|
+
backend.check_periodic_restart(@name, minutes)
|
26
|
+
end
|
27
|
+
|
28
|
+
def has_user_profile_enabled?()
|
29
|
+
backend.check_user_profile(@name)
|
30
|
+
end
|
31
|
+
|
32
|
+
def has_username?(username)
|
33
|
+
backend.check_username(@name, username)
|
34
|
+
end
|
35
|
+
|
12
36
|
def to_s
|
13
37
|
%Q[IIS Application Pool "#{@name}"]
|
14
38
|
end
|
data/lib/serverspec/version.rb
CHANGED
data/serverspec.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_runtime_dependency "rspec", "~> 2.99"
|
23
23
|
spec.add_runtime_dependency "rspec-its"
|
24
24
|
spec.add_runtime_dependency "highline"
|
25
|
-
spec.add_runtime_dependency "specinfra", "~> 1.
|
25
|
+
spec.add_runtime_dependency "specinfra", "~> 1.24"
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.3"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.1.1"
|
28
28
|
end
|
data/spec/debian/lxc_spec.rb
CHANGED
data/spec/fedora/lxc_spec.rb
CHANGED
data/spec/freebsd/file_spec.rb
CHANGED
@@ -81,7 +81,7 @@ end
|
|
81
81
|
|
82
82
|
describe file('/etc/passwd') do
|
83
83
|
it { should be_owned_by 'root' }
|
84
|
-
its(:command) { should eq "stat -
|
84
|
+
its(:command) { should eq "stat -f%Su /etc/passwd | grep -- \\^root\\$" }
|
85
85
|
end
|
86
86
|
|
87
87
|
describe file('/etc/passwd') do
|
@@ -90,7 +90,7 @@ end
|
|
90
90
|
|
91
91
|
describe file('/etc/passwd') do
|
92
92
|
it { should be_grouped_into 'root' }
|
93
|
-
its(:command) { should eq "stat -
|
93
|
+
its(:command) { should eq "stat -f%Sg /etc/passwd | grep -- \\^root\\$" }
|
94
94
|
end
|
95
95
|
|
96
96
|
describe file('/etc/passwd') do
|
@@ -99,7 +99,7 @@ end
|
|
99
99
|
|
100
100
|
describe file('/etc/pam.d/system-auth') do
|
101
101
|
it { should be_linked_to '/etc/pam.d/system-auth-ac' }
|
102
|
-
its(:command) { should eq "stat -
|
102
|
+
its(:command) { should eq "stat -f%Y /etc/pam.d/system-auth | grep -- \"./etc/pam.d/system-auth-ac.\"" }
|
103
103
|
end
|
104
104
|
|
105
105
|
describe file('dummy-link') do
|
data/spec/gentoo/lxc_spec.rb
CHANGED
data/spec/plamo/lxc_spec.rb
CHANGED
data/spec/redhat/lxc_spec.rb
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: 1.
|
4
|
+
version: 1.12.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: 2014-
|
11
|
+
date: 2014-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
75
|
+
version: '1.24'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
82
|
+
version: '1.24'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|