aboutsummaryrefslogtreecommitdiff
path: root/spec/defines
diff options
context:
space:
mode:
authorPete Brown <pete@abstractit.com.au>2016-06-29 01:52:42 +1000
committerAdam Jahn <ajjahn@gmail.com>2016-07-10 14:01:26 -0400
commitf767ff0ae4bc7e135c2ba1e01ab76d51e9b13797 (patch)
tree9b008e3b8a0b5a864b28bc2fef7607e62c3961c0 /spec/defines
parentee15236a9dc9f7b082076679528a52f07bdf4664 (diff)
downloadpuppet-samba-f767ff0ae4bc7e135c2ba1e01ab76d51e9b13797.tar.gz
puppet-samba-f767ff0ae4bc7e135c2ba1e01ab76d51e9b13797.tar.bz2
Add option to set profile acls on a share
Add specs for profile acls option
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 50441f0..62ccf92 100644
--- a/spec/defines/samba__server__share_spec.rb
+++ b/spec/defines/samba__server__share_spec.rb
@@ -26,6 +26,7 @@ shared_examples "default share" do
set.with("follow symlinks")
set.with("wide links")
set.with("map acl inherit")
+ set.with("profile acls")
set.with("store dos attributes")
set.with("strict allocate")
set.with("valid users")
@@ -431,6 +432,24 @@ describe 'samba::server::share', :type => :define do
let(:change_set) { default_changes.with("map acl inherit", "no") }
end
+ context 'with profile_acls set to true' do
+ include_examples "default share"
+ let(:params) {{
+ :ensure => 'present',
+ :profile_acls => true,
+ }}
+ let(:change_set) { default_changes.with("profile acls", "yes") }
+ end
+
+ context 'with profile_acls set to false' do
+ include_examples "default share"
+ let(:params) {{
+ :ensure => 'present',
+ :profile_acls => false,
+ }}
+ let(:change_set) { default_changes.with("profile acls", "no") }
+ end
+
context 'with store_dos_attributes set to true' do
include_examples "default share"
let(:params) {{