aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2016-07-10 14:34:46 -0400
committerAdam Jahn <ajjahn@gmail.com>2016-07-10 14:34:46 -0400
commitbabc3f5f1e924d071cb7ec137c5898ab1df4bf62 (patch)
tree20d930c332bd7a655c970be76b5942f038a1a2d4
parenteaeb28eab8fd0d78f94bff1b9a05ea1755ef291e (diff)
downloadpuppet-samba-babc3f5f1e924d071cb7ec137c5898ab1df4bf62.tar.gz
puppet-samba-babc3f5f1e924d071cb7ec137c5898ab1df4bf62.tar.bz2
specs for inherit acls, closes #66
-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 876d3f8..b4182f0 100644
--- a/spec/defines/samba__server__share_spec.rb
+++ b/spec/defines/samba__server__share_spec.rb
@@ -39,6 +39,7 @@ shared_examples "default share" do
set.with("hide dot files")
set.with("root preexec")
set.with("inherit permissions")
+ set.with("inherit acls")
end
let(:change_set) { default_changes }
let(:changes) { change_set.to_a }
@@ -605,6 +606,24 @@ describe 'samba::server::share', :type => :define do
}}
let(:change_set) { default_changes.with("inherit permissions", "no") }
end
+
+ context 'with inherit_acls set to true' do
+ include_examples "default share"
+ let(:params) {{
+ :ensure => 'present',
+ :inherit_acls => true,
+ }}
+ let(:change_set) { default_changes.with("inherit acls", "yes") }
+ end
+
+ context 'with inherit_acls set to false' do
+ include_examples "default share"
+ let(:params) {{
+ :ensure => 'present',
+ :inherit_acls => false,
+ }}
+ let(:change_set) { default_changes.with("inherit acls", "no") }
+ end
end
end
end