From 511a6f7cb82d6da0d31c2f563d195003bc0c39dd Mon Sep 17 00:00:00 2001 From: Adam Jahn Date: Sun, 10 Jul 2016 14:11:19 -0400 Subject: add specs for acl group control option, closes #69 --- spec/defines/samba__server__share_spec.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'spec/defines') 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) {{ -- cgit v1.2.3