diff options
Diffstat (limited to 'spec/defines/samba__server__share_spec.rb')
-rw-r--r-- | spec/defines/samba__server__share_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/defines/samba__server__share_spec.rb b/spec/defines/samba__server__share_spec.rb index 62ccf92..645b987 100644 --- a/spec/defines/samba__server__share_spec.rb +++ b/spec/defines/samba__server__share_spec.rb @@ -25,6 +25,7 @@ shared_examples "default share" do set.with("printable") set.with("follow symlinks") set.with("wide links") + set.with("acl group control") set.with("map acl inherit") set.with("profile acls") set.with("store dos attributes") @@ -414,6 +415,24 @@ describe 'samba::server::share', :type => :define do let(:change_set) { default_changes.with("wide links", "no") } end + context 'with acl_group_control set to true' do + include_examples "default share" + let(:params) {{ + :ensure => 'present', + :acl_group_control => true, + }} + let(:change_set) { default_changes.with("acl group control", "yes") } + end + + context 'with acl_group_control set to false' do + include_examples "default share" + let(:params) {{ + :ensure => 'present', + :acl_group_control => false, + }} + let(:change_set) { default_changes.with("acl group control", "no") } + end + context 'with map_acl_inherit set to true' do include_examples "default share" let(:params) {{ |