]> gitweb.fluxo.info Git - puppet-samba.git/commitdiff
add specs for acl group control option, closes #69
authorAdam Jahn <ajjahn@gmail.com>
Sun, 10 Jul 2016 18:11:19 +0000 (14:11 -0400)
committerAdam Jahn <ajjahn@gmail.com>
Sun, 10 Jul 2016 18:11:19 +0000 (14:11 -0400)
spec/defines/samba__server__share_spec.rb

index 62ccf928693440e25c60467c6bf6e8636436b70a..645b987c14b4e7099971b9174ea355d3615101ca 100644 (file)
@@ -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) {{