aboutsummaryrefslogtreecommitdiff
path: root/spec/defines
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2016-07-10 14:11:19 -0400
committerAdam Jahn <ajjahn@gmail.com>2016-07-10 14:11:19 -0400
commit511a6f7cb82d6da0d31c2f563d195003bc0c39dd (patch)
tree91c0d648a07e97f47f30b40fd38052bdcc3a1302 /spec/defines
parent8112ca0c42426b442984448ad2f3e9dae03089cd (diff)
downloadpuppet-samba-511a6f7cb82d6da0d31c2f563d195003bc0c39dd.tar.gz
puppet-samba-511a6f7cb82d6da0d31c2f563d195003bc0c39dd.tar.bz2
add specs for acl group control option, closes #69
Diffstat (limited to 'spec/defines')
-rw-r--r--spec/defines/samba__server__share_spec.rb19
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) {{