serverspec 0.8.0 → 0.8.1
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 +4 -4
- data/lib/serverspec/commands/base.rb +1 -2
- data/lib/serverspec/version.rb +1 -1
- data/spec/darwin/mail_alias_spec.rb +1 -1
- data/spec/debian/mail_alias_spec.rb +1 -1
- data/spec/gentoo/mail_alias_spec.rb +1 -1
- data/spec/redhat/mail_alias_spec.rb +1 -1
- data/spec/smartos/mail_alias_spec.rb +1 -1
- data/spec/solaris/mail_alias_spec.rb +1 -1
- data/spec/solaris10/mail_alias_spec.rb +1 -1
- data/spec/solaris11/mail_alias_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee32cc231c6c0c9b020ecea8e4d14b0001c94725
|
4
|
+
data.tar.gz: 57eda3e3a98b88e1b73bb58eb4e88fe672a6cec1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5544d360701ab7a9ab655512291c77e6aed57d7ac5f1921433fe3d2d6408b942107d69a17484e6d5c1d8799c807a47a2b676edfcc4d4e2afb5ee443680b6c1a
|
7
|
+
data.tar.gz: 3cbbdbb771612ac3bca87a6c4f78d0396151553118ebaef9faa17fb5c1cd571828200e0cf063110543283dd5297d2e1be3c99c168d1ec3d8c996515bc58508cb
|
@@ -271,8 +271,7 @@ module Serverspec
|
|
271
271
|
end
|
272
272
|
|
273
273
|
def check_mail_alias(recipient, target)
|
274
|
-
|
275
|
-
target = "[[:space:]]#{target}"
|
274
|
+
target = "[[:space:]]#{target}"
|
276
275
|
"getent aliases #{escape(recipient)} | grep -- #{escape(target)}$"
|
277
276
|
end
|
278
277
|
end
|
data/lib/serverspec/version.rb
CHANGED
@@ -4,7 +4,7 @@ include Serverspec::Helper::Darwin
|
|
4
4
|
|
5
5
|
describe mail_alias('daemon') do
|
6
6
|
it { should be_aliased_to "root" }
|
7
|
-
its(:command) { should eq "getent aliases
|
7
|
+
its(:command) { should eq "getent aliases daemon | grep -- \\[\\[:space:\\]\\]root$" }
|
8
8
|
end
|
9
9
|
|
10
10
|
describe mail_alias('invalid-recipient') do
|
@@ -4,7 +4,7 @@ include Serverspec::Helper::Debian
|
|
4
4
|
|
5
5
|
describe mail_alias('daemon') do
|
6
6
|
it { should be_aliased_to "root" }
|
7
|
-
its(:command) { should eq "getent aliases
|
7
|
+
its(:command) { should eq "getent aliases daemon | grep -- \\[\\[:space:\\]\\]root$" }
|
8
8
|
end
|
9
9
|
|
10
10
|
describe mail_alias('invalid-recipient') do
|
@@ -4,7 +4,7 @@ include Serverspec::Helper::Gentoo
|
|
4
4
|
|
5
5
|
describe mail_alias('daemon') do
|
6
6
|
it { should be_aliased_to "root" }
|
7
|
-
its(:command) { should eq "getent aliases
|
7
|
+
its(:command) { should eq "getent aliases daemon | grep -- \\[\\[:space:\\]\\]root$" }
|
8
8
|
end
|
9
9
|
|
10
10
|
describe mail_alias('invalid-recipient') do
|
@@ -4,7 +4,7 @@ include Serverspec::Helper::RedHat
|
|
4
4
|
|
5
5
|
describe mail_alias('daemon') do
|
6
6
|
it { should be_aliased_to "root" }
|
7
|
-
its(:command) { should eq "getent aliases
|
7
|
+
its(:command) { should eq "getent aliases daemon | grep -- \\[\\[:space:\\]\\]root$" }
|
8
8
|
end
|
9
9
|
|
10
10
|
describe mail_alias('invalid-recipient') do
|
@@ -4,7 +4,7 @@ include Serverspec::Helper::SmartOS
|
|
4
4
|
|
5
5
|
describe mail_alias('daemon') do
|
6
6
|
it { should be_aliased_to "root" }
|
7
|
-
its(:command) { should eq "getent aliases
|
7
|
+
its(:command) { should eq "getent aliases daemon | grep -- \\[\\[:space:\\]\\]root$" }
|
8
8
|
end
|
9
9
|
|
10
10
|
describe mail_alias('invalid-recipient') do
|
@@ -4,7 +4,7 @@ include Serverspec::Helper::Solaris
|
|
4
4
|
|
5
5
|
describe mail_alias('daemon') do
|
6
6
|
it { should be_aliased_to "root" }
|
7
|
-
its(:command) { should eq "getent aliases
|
7
|
+
its(:command) { should eq "getent aliases daemon | grep -- \\[\\[:space:\\]\\]root$" }
|
8
8
|
end
|
9
9
|
|
10
10
|
describe mail_alias('invalid-recipient') do
|
@@ -4,7 +4,7 @@ include Serverspec::Helper::Solaris10
|
|
4
4
|
|
5
5
|
describe mail_alias('daemon') do
|
6
6
|
it { should be_aliased_to "root" }
|
7
|
-
its(:command) { should eq "getent aliases
|
7
|
+
its(:command) { should eq "getent aliases daemon | grep -- \\[\\[:space:\\]\\]root$" }
|
8
8
|
end
|
9
9
|
|
10
10
|
describe mail_alias('invalid-recipient') do
|
@@ -4,7 +4,7 @@ include Serverspec::Helper::Solaris11
|
|
4
4
|
|
5
5
|
describe mail_alias('daemon') do
|
6
6
|
it { should be_aliased_to "root" }
|
7
|
-
its(:command) { should eq "getent aliases
|
7
|
+
its(:command) { should eq "getent aliases daemon | grep -- \\[\\[:space:\\]\\]root$" }
|
8
8
|
end
|
9
9
|
|
10
10
|
describe mail_alias('invalid-recipient') do
|