diff options
author | Pete Brown <pete@abstractit.com.au> | 2016-07-06 00:23:46 +1000 |
---|---|---|
committer | Pete Brown <pete@abstractit.com.au> | 2016-07-06 00:23:46 +1000 |
commit | 00c1f835a7bb60a104cea3c8c70b43646de2bd91 (patch) | |
tree | 96cc36a6caa28c53ec481211851a6d5d47a55646 | |
parent | 52b8916a8754f397dfc65e055f52d10905e42d74 (diff) | |
download | puppet-samba-00c1f835a7bb60a104cea3c8c70b43646de2bd91.tar.gz puppet-samba-00c1f835a7bb60a104cea3c8c70b43646de2bd91.tar.bz2 |
Fix requires and notify
-rw-r--r-- | spec/defines/samba__server__share_spec.rb | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/spec/defines/samba__server__share_spec.rb b/spec/defines/samba__server__share_spec.rb index e6b24b8..26c39a1 100644 --- a/spec/defines/samba__server__share_spec.rb +++ b/spec/defines/samba__server__share_spec.rb @@ -22,16 +22,16 @@ describe 'samba::server::share', :type => :define do :incl => '/etc/samba/smb.conf', :lens => 'Samba.lns', :context => '/files/etc/samba/smb.conf', - :changes => ["set target[. = 'test_share'] 'test_share'"] - ).that_requires('Class[Samba::Server::Config]' - ).that_notifies('Class[Samba::Server::Service]') + :changes => ["set target[. = 'test_share'] 'test_share'"], + :requires => 'Class[Samba::Server::Config]', + :notify => 'Class[Samba::Server::Service]') } it { is_expected.to contain_augeas('test_share-changes').with( - :incl => '/etc/samba/smb.conf', - :lens => 'Samba.lns', - :context => '/files/etc/samba/smb.conf', - ).that_requires('Class[Samba::Server::Config]' - ).that_notifies('Class[Samba::Server::Service]') + :incl => '/etc/samba/smb.conf', + :lens => 'Samba.lns', + :context => '/files/etc/samba/smb.conf', + :requires => 'Augeas[test_share-section]', + :notify => 'Class[Samba::Server::Service]') } end#no params @@ -58,17 +58,17 @@ describe 'samba::server::share', :type => :define do :incl => '/etc/samba/smb.conf', :lens => 'Samba.lns', :context => '/files/etc/samba/smb.conf', - :changes => ["set target[. = 'test_share'] 'test_share'"] - ).that_requires('Class[Samba::Server::Config]' - ).that_notifies('Class[Samba::Server::Service]') + :changes => ["set target[. = 'test_share'] 'test_share'"], + :requires => 'Class[Samba::Server::Config]', + :notify => 'Class[Samba::Server::Service]') } it { is_expected.to contain_augeas('test_share-changes').with( :incl => '/etc/samba/smb.conf', :lens => 'Samba.lns', :context => '/files/etc/samba/smb.conf', - :changes => ["set \"target[. = 'test_share']/available\" yes"] - ).that_requires('Class[Samba::Server::Config]' - ).that_notifies('Class[Samba::Server::Service]') + :changes => ["set \"target[. = 'test_share']/available\" yes"], + :requires => 'Augeas[test_share-section]', + :notify => 'Class[Samba::Server::Service]') } end#no params @@ -83,17 +83,17 @@ describe 'samba::server::share', :type => :define do :incl => '/etc/samba/smb.conf', :lens => 'Samba.lns', :context => '/files/etc/samba/smb.conf', - :changes => ["set target[. = 'test_share'] 'test_share'"] - ).that_requires('Class[Samba::Server::Config]' - ).that_notifies('Class[Samba::Server::Service]') + :changes => ["set target[. = 'test_share'] 'test_share'"], + :requires => 'Class[Samba::Server::Config]', + :notify => 'Class[Samba::Server::Service]') } it { is_expected.to contain_augeas('test_share-changes').with( :incl => '/etc/samba/smb.conf', :lens => 'Samba.lns', :context => '/files/etc/samba/smb.conf', - :changes => ["set \"target[. = 'test_share']/root_preexec\" /bin/true"] - ).that_requires('Class[Samba::Server::Config]' - ).that_notifies('Class[Samba::Server::Service]') + :changes => ["set \"target[. = 'test_share']/root_preexec\" /bin/true"], + :requires => 'Augeas[test_share-section]', + :notify => 'Class[Samba::Server::Service]') } end#no params |