aboutsummaryrefslogtreecommitdiff
path: root/spec/defines
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2016-07-10 14:19:57 -0400
committerAdam Jahn <ajjahn@gmail.com>2016-07-10 14:19:57 -0400
commit113514e18a349e574be1205ee5008ee4e2c872c4 (patch)
tree0214943cf6f0e9bc48043fb1b399f1d017a558cf /spec/defines
parent4688b2bd2dc2393a1eacc583ce663634d01f70bb (diff)
downloadpuppet-samba-113514e18a349e574be1205ee5008ee4e2c872c4.tar.gz
puppet-samba-113514e18a349e574be1205ee5008ee4e2c872c4.tar.bz2
add specs for read list option, closes #68
Diffstat (limited to 'spec/defines')
-rw-r--r--spec/defines/samba__server__share_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/defines/samba__server__share_spec.rb b/spec/defines/samba__server__share_spec.rb
index 645b987..f6d1925 100644
--- a/spec/defines/samba__server__share_spec.rb
+++ b/spec/defines/samba__server__share_spec.rb
@@ -34,6 +34,7 @@ shared_examples "default share" do
set.with("oplocks")
set.with("level2 oplocks")
set.with("veto oplock files")
+ set.with("read list")
set.with("write list")
set.with("hide dot files")
set.with("root preexec")
@@ -541,6 +542,15 @@ describe 'samba::server::share', :type => :define do
let(:change_set) { default_changes.with("veto oplock files", "'testing'") }
end
+ context 'with read_list set to "bill,ben"' do
+ include_examples "default share"
+ let(:params) {{
+ :ensure => 'present',
+ :read_list => 'bill,ben',
+ }}
+ let(:change_set) { default_changes.with("read list", "'bill,ben'") }
+ end
+
context 'with write_list set to "bill,ben"' do
include_examples "default share"
let(:params) {{