diff options
author | Adam Jahn <ajjahn@gmail.com> | 2016-07-10 15:02:20 -0400 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2016-07-10 15:02:20 -0400 |
commit | 460c503edc6a11dcc44a2fad3c75e5ef96124e9b (patch) | |
tree | 3ea4294e08da4039917c23ba5840a720f1af7e0f /spec/defines/samba__server__share_spec.rb | |
parent | 4c2e759147b6a5fd0ce62709944189ada538e64e (diff) | |
download | puppet-samba-460c503edc6a11dcc44a2fad3c75e5ef96124e9b.tar.gz puppet-samba-460c503edc6a11dcc44a2fad3c75e5ef96124e9b.tar.bz2 |
specs for msdfs root, closes #56
Diffstat (limited to 'spec/defines/samba__server__share_spec.rb')
-rw-r--r-- | spec/defines/samba__server__share_spec.rb | 19 |
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 2033ee8..ec36f24 100644 --- a/spec/defines/samba__server__share_spec.rb +++ b/spec/defines/samba__server__share_spec.rb @@ -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 |