From 293bcc94cba842737a89e37339d46ad5bb8cd6ab Mon Sep 17 00:00:00 2001 From: Adam Jahn Date: Sun, 10 Jul 2016 21:02:50 -0400 Subject: re-implement guest account on the share level --- spec/defines/samba__server__share_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec') diff --git a/spec/defines/samba__server__share_spec.rb b/spec/defines/samba__server__share_spec.rb index 7e1c8a0..894f334 100644 --- a/spec/defines/samba__server__share_spec.rb +++ b/spec/defines/samba__server__share_spec.rb @@ -43,6 +43,7 @@ shared_examples "default share" do set.with("delete readonly") set.with("printer name") set.with("msdfs root") + set.with("guest account") end let(:change_set) { default_changes } let(:changes) { change_set.to_a } @@ -672,6 +673,15 @@ describe 'samba::server::share', :type => :define do }} let(:change_set) { default_changes.with("msdfs root", "no") } end + + context 'with guest_account set to "killing trees"' do + include_examples "default share" + let(:params) {{ + :ensure => 'present', + :guest_account => 'someone', + }} + let(:change_set) { default_changes.with("guest account", "'someone'") } + end end end end -- cgit v1.2.3