diff options
author | Adam Jahn <ajjahn@gmail.com> | 2016-07-10 14:11:19 -0400 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2016-07-10 14:11:19 -0400 |
commit | 511a6f7cb82d6da0d31c2f563d195003bc0c39dd (patch) | |
tree | 91c0d648a07e97f47f30b40fd38052bdcc3a1302 /spec/defines/samba__server__share_spec.rb | |
parent | 8112ca0c42426b442984448ad2f3e9dae03089cd (diff) | |
download | puppet-samba-511a6f7cb82d6da0d31c2f563d195003bc0c39dd.tar.gz puppet-samba-511a6f7cb82d6da0d31c2f563d195003bc0c39dd.tar.bz2 |
add specs for acl group control option, closes #69
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) {{ |