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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a038396f2e5bf1508be1bcbac2ed8e914e6c34c
4
- data.tar.gz: 447bcd66ff0b35650a86dcd0a6a7c7c56a32c26d
3
+ metadata.gz: ee32cc231c6c0c9b020ecea8e4d14b0001c94725
4
+ data.tar.gz: 57eda3e3a98b88e1b73bb58eb4e88fe672a6cec1
5
5
  SHA512:
6
- metadata.gz: 78c0ca7a1e6fb412a1c268cfc407affac9c02bab0ac131d5831be434541eee6043476ccb085356789f27d1a56445525a7e96330817cb534ba027e975216d5ed2
7
- data.tar.gz: 24e6cebf30271cea761c57b478e16322d8368548f29ea0c8dc0067a90b743cab8d1bf7bb23c31591797381a5efa4a0a5a4b98d392a838d800b0b4567ff4635d6
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
- recipient = "^#{recipient}"
275
- target = "[[:space:]]#{target}"
274
+ target = "[[:space:]]#{target}"
276
275
  "getent aliases #{escape(recipient)} | grep -- #{escape(target)}$"
277
276
  end
278
277
  end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
@@ -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 \\^daemon | grep -- \\[\\[:space:\\]\\]root$" }
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 \\^daemon | grep -- \\[\\[:space:\\]\\]root$" }
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 \\^daemon | grep -- \\[\\[:space:\\]\\]root$" }
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 \\^daemon | grep -- \\[\\[:space:\\]\\]root$" }
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 \\^daemon | grep -- \\[\\[:space:\\]\\]root$" }
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 \\^daemon | grep -- \\[\\[:space:\\]\\]root$" }
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 \\^daemon | grep -- \\[\\[:space:\\]\\]root$" }
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 \\^daemon | grep -- \\[\\[:space:\\]\\]root$" }
7
+ its(:command) { should eq "getent aliases daemon | grep -- \\[\\[:space:\\]\\]root$" }
8
8
  end
9
9
 
10
10
  describe mail_alias('invalid-recipient') do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita