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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30b2d17ba1dda3ff93038d794cf6bce02a270412
4
- data.tar.gz: 5544fd41b98e295945cc77191f3ddf14705c0ec8
3
+ metadata.gz: 87da9e79c6ae6334dd80bb252d9276bbefaf8b7a
4
+ data.tar.gz: a6e3e6fbb9147b6ac2cd344403db27b0b12dde9d
5
5
  SHA512:
6
- metadata.gz: d06a58c659496a8868e87257917b1204519aa9a204f873bc821066e508a6e1aa5b9ca2d6eb0d9fadf6a685d2114d3ffa2c3d93dde420c4de028947498670fab5
7
- data.tar.gz: b7e45ec2e57e89e08ce124a6e3b061ff900d3c99615ae6de3172073cf31269149dfadbbb9a77819339e62169d79f645269f4e3e9369ba4fdbdbd52f1401ce555
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
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "1.11.0"
2
+ VERSION = "1.12.0"
3
3
  end
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.22"
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
@@ -13,7 +13,7 @@ end
13
13
 
14
14
  describe lxc('ct01') do
15
15
  it { should be_running }
16
- its(:command) { should eq "lxc-info -n ct01 -t RUNNING"}
16
+ its(:command) { should eq "lxc-info -n ct01 -s | grep -w RUNNING"}
17
17
  end
18
18
 
19
19
  describe lxc('invalid-ct') do
@@ -13,7 +13,7 @@ end
13
13
 
14
14
  describe lxc('ct01') do
15
15
  it { should be_running }
16
- its(:command) { should eq "lxc-info -n ct01 -t RUNNING"}
16
+ its(:command) { should eq "lxc-info -n ct01 -s | grep -w RUNNING"}
17
17
  end
18
18
 
19
19
  describe lxc('invalid-ct') do
@@ -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 -c %U /etc/passwd | grep -- \\^root\\$" }
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 -c %G /etc/passwd | grep -- \\^root\\$" }
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 -c %N /etc/pam.d/system-auth | egrep -e \"-> ./etc/pam.d/system-auth-ac.\"" }
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
@@ -13,7 +13,7 @@ end
13
13
 
14
14
  describe lxc('ct01') do
15
15
  it { should be_running }
16
- its(:command) { should eq "lxc-info -n ct01 -t RUNNING"}
16
+ its(:command) { should eq "lxc-info -n ct01 -s | grep -w RUNNING"}
17
17
  end
18
18
 
19
19
  describe lxc('invalid-ct') do
@@ -13,7 +13,7 @@ end
13
13
 
14
14
  describe lxc('ct01') do
15
15
  it { should be_running }
16
- its(:command) { should eq "lxc-info -n ct01 -t RUNNING"}
16
+ its(:command) { should eq "lxc-info -n ct01 -s | grep -w RUNNING"}
17
17
  end
18
18
 
19
19
  describe lxc('invalid-ct') do
@@ -13,7 +13,7 @@ end
13
13
 
14
14
  describe lxc('ct01') do
15
15
  it { should be_running }
16
- its(:command) { should eq "lxc-info -n ct01 -t RUNNING"}
16
+ its(:command) { should eq "lxc-info -n ct01 -s | grep -w RUNNING"}
17
17
  end
18
18
 
19
19
  describe lxc('invalid-ct') 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: 1.11.0
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-07-24 00:00:00.000000000 Z
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.22'
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.22'
82
+ version: '1.24'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement