]> gitweb.fluxo.info Git - puppet-samba.git/commitdiff
specs for msdfs root, closes #56
authorAdam Jahn <ajjahn@gmail.com>
Sun, 10 Jul 2016 19:02:20 +0000 (15:02 -0400)
committerAdam Jahn <ajjahn@gmail.com>
Sun, 10 Jul 2016 19:02:20 +0000 (15:02 -0400)
spec/defines/samba__server__share_spec.rb

index 2033ee861bb57e1fe9b4d4f744d3d9a2e7d1f391..ec36f242ef23077e7ecc8cb2654a3c5b6eb88e73 100644 (file)
@@ -42,6 +42,7 @@ shared_examples "default share" do
     set.with("inherit acls")
     set.with("delete readonly")
     set.with("printer name")
+    set.with("msdfs root")
   end
   let(:change_set) { default_changes }
   let(:changes) { change_set.to_a }
@@ -653,6 +654,24 @@ describe 'samba::server::share', :type => :define do
         }}
         let(:change_set) { default_changes.with("printer name", "'killing trees'") }
       end
+
+      context 'with msdfs_root set to true' do
+        include_examples "default share"
+        let(:params) {{
+          :ensure     => 'present',
+          :msdfs_root => true,
+        }}
+        let(:change_set) { default_changes.with("msdfs root", "yes") }
+      end
+
+      context 'with msdfs_root set to false' do
+        include_examples "default share"
+        let(:params) {{
+          :ensure     => 'present',
+          :msdfs_root => false,
+        }}
+        let(:change_set) { default_changes.with("msdfs root", "no") }
+      end
     end
   end
 end