serverspec 0.15.2 → 0.15.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d9e70e6133900f0c4b6891b16b04f6924d8ea46
4
- data.tar.gz: c7c1a7df66fed41a2db62a2ccc65c92e45fa28ee
3
+ metadata.gz: d9fe2a75c6d320919a500f69560daeb03d40578f
4
+ data.tar.gz: 6e9a93bed858b0acf275f6c6902671bc91bc0948
5
5
  SHA512:
6
- metadata.gz: eae55f189109f3bc4de9ed895953e934178c2da3d8eeec58c76ff4c421e7a7867f83f4496324b03bfee90ac0903c2158c7eb1b29f7b68c4791344c917619ecae
7
- data.tar.gz: d2f59861446dd5956b18dde37012556824fd7b58017852f38ea3ec193de4b3ec7f38b727219220b8b165cd6fc1f53670c4444c3d62986208c5c922a665f4f0d4
6
+ metadata.gz: dce043b1300590b5fa22c2cce66c5afefe7041685ef950323adb701b1fbde6531d4f5e0370a0f6bd7b8049ced8d99223524d2365c32dc3665beeccdd74f07a9d
7
+ data.tar.gz: 352d489a6ceb5e303ce271b1eb1e734b2e72a7da5e69bfc2277ce4cff232ae0928173ec6c3bcb065104cd0d26931785d52bad819d57eea5329b220f5a34e1f63
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require "octorelease"
5
5
  task :spec => 'spec:all'
6
6
 
7
7
  namespace :spec do
8
- oses = %w( darwin debian gentoo plamo redhat aix solaris solaris10 solaris11 smartos windows freebsd)
8
+ oses = %w( darwin debian gentoo plamo redhat aix solaris solaris10 solaris11 smartos windows freebsd freebsd10)
9
9
 
10
10
  task :all => [ oses.map {|os| "spec:#{os}" }, :exec, :ssh, :cmd, :winrm, :powershell, :helper ].flatten
11
11
 
@@ -6,6 +6,7 @@ module Serverspec
6
6
  'Darwin',
7
7
  'Debian',
8
8
  'FreeBSD',
9
+ 'FreeBSD10',
9
10
  'Gentoo',
10
11
  'Plamo',
11
12
  'RedHat',
@@ -109,7 +109,7 @@ end
109
109
 
110
110
  describe file('/etc/httpd/conf/httpd.conf') do
111
111
  it { should be_file }
112
- it { should contain "ServerName #{@hostname}" }
112
+ its(:content) { should match /ServerName #{@hostname}/ }
113
113
  end
114
114
  EOF
115
115
 
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "0.15.2"
2
+ VERSION = "0.15.3"
3
3
  end
data/serverspec.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_runtime_dependency "net-ssh"
22
22
  spec.add_runtime_dependency "rspec", ">= 2.13.0"
23
23
  spec.add_runtime_dependency "highline"
24
- spec.add_runtime_dependency "specinfra", ">= 0.5.6"
24
+ spec.add_runtime_dependency "specinfra", ">= 0.5.8"
25
25
  spec.add_development_dependency "bundler", "~> 1.3"
26
26
  spec.add_development_dependency "rake"
27
27
  spec.add_development_dependency "octorelease"
@@ -90,7 +90,7 @@ end
90
90
 
91
91
  describe file('/etc/pam.d/system-auth') do
92
92
  it { should be_linked_to '/etc/pam.d/system-auth-ac' }
93
- its(:command) { should eq "stat -c %N /etc/pam.d/system-auth | grep -- /etc/pam.d/system-auth-ac" }
93
+ its(:command) { should eq "stat -c %N /etc/pam.d/system-auth | grep -- \"-> \\`/etc/pam.d/system-auth-ac'\"" }
94
94
  end
95
95
 
96
96
  describe file('dummy-link') 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 | grep -- /etc/pam.d/system-auth-ac" }
102
+ its(:command) { should eq "stat -c %N /etc/pam.d/system-auth | grep -- \"-> \\`/etc/pam.d/system-auth-ac'\"" }
103
103
  end
104
104
 
105
105
  describe file('dummy-link') 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 | grep -- /etc/pam.d/system-auth-ac" }
102
+ its(:command) { should eq "stat -c %N /etc/pam.d/system-auth | grep -- \"-> \\`/etc/pam.d/system-auth-ac'\"" }
103
103
  end
104
104
 
105
105
  describe file('dummy-link') do
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ include SpecInfra::Helper::FreeBSD10
4
+
5
+ describe package('httpd') do
6
+ it { should be_installed }
7
+ its(:command) { should eq "pkg info httpd" }
8
+ end
9
+
10
+ describe package('httpd') do
11
+ it { should be_installed.with_version('2.2.15-28.el6') }
12
+ its(:command) { should eq "pkg query %v httpd | grep -- 2.2.15-28.el6"}
13
+ end
@@ -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 | grep -- /etc/pam.d/system-auth-ac" }
102
+ its(:command) { should eq "stat -c %N /etc/pam.d/system-auth | grep -- \"-> \\`/etc/pam.d/system-auth-ac'\"" }
103
103
  end
104
104
 
105
105
  describe file('dummy-link') 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 | grep -- /etc/pam.d/system-auth-ac" }
102
+ its(:command) { should eq "stat -c %N /etc/pam.d/system-auth | grep -- \"-> \\`/etc/pam.d/system-auth-ac'\"" }
103
103
  end
104
104
 
105
105
  describe file('dummy-link') 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 | grep -- /etc/pam.d/system-auth-ac" }
102
+ its(:command) { should eq "stat -c %N /etc/pam.d/system-auth | grep -- \"-> \\`/etc/pam.d/system-auth-ac'\"" }
103
103
  end
104
104
 
105
105
  describe file('dummy-link') 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 | grep -- /etc/pam.d/system-auth-ac" }
102
+ its(:command) { should eq "stat -c %N /etc/pam.d/system-auth | grep -- \"-> \\`/etc/pam.d/system-auth-ac'\"" }
103
103
  end
104
104
 
105
105
  describe file('dummy-link') 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 | grep -- /etc/pam.d/system-auth-ac" }
102
+ its(:command) { should eq "stat -c %N /etc/pam.d/system-auth | grep -- \"-> \\`/etc/pam.d/system-auth-ac'\"" }
103
103
  end
104
104
 
105
105
  describe file('dummy-link') 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.15.2
4
+ version: 0.15.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: 2014-02-05 00:00:00.000000000 Z
11
+ date: 2014-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '>='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.5.6
61
+ version: 0.5.8
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: 0.5.6
68
+ version: 0.5.8
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -251,6 +251,7 @@ files:
251
251
  - spec/freebsd/routing_table_spec.rb
252
252
  - spec/freebsd/service_spec.rb
253
253
  - spec/freebsd/user_spec.rb
254
+ - spec/freebsd10/package_spec.rb
254
255
  - spec/gentoo/cgroup_spec.rb
255
256
  - spec/gentoo/command_spec.rb
256
257
  - spec/gentoo/cron_spec.rb
@@ -462,6 +463,7 @@ test_files:
462
463
  - spec/freebsd/routing_table_spec.rb
463
464
  - spec/freebsd/service_spec.rb
464
465
  - spec/freebsd/user_spec.rb
466
+ - spec/freebsd10/package_spec.rb
465
467
  - spec/gentoo/cgroup_spec.rb
466
468
  - spec/gentoo/command_spec.rb
467
469
  - spec/gentoo/cron_spec.rb