diff options
author | Adam Jahn <ajjahn@gmail.com> | 2016-07-01 11:54:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-01 11:54:59 -0400 |
commit | 660ef675107a60de16c6daeaccce6731a5139658 (patch) | |
tree | d30beae0e85f8100ad36f3f126fb6d7626c352d8 /spec | |
parent | 3ffd1bcbc1d203ad814038483cd49d332bbb7618 (diff) | |
parent | 22c8f66ffaee96ab61465331d0d14636e5312ae6 (diff) | |
download | puppet-samba-660ef675107a60de16c6daeaccce6731a5139658.tar.gz puppet-samba-660ef675107a60de16c6daeaccce6731a5139658.tar.bz2 |
Merge pull request #61 from toelke/master
Add parameter to disable automatic join of domain
Diffstat (limited to 'spec')
-rw-r--r-- | spec/classes/samba__server__ads_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/classes/samba__server__ads_spec.rb b/spec/classes/samba__server__ads_spec.rb new file mode 100644 index 0000000..a174bef --- /dev/null +++ b/spec/classes/samba__server__ads_spec.rb @@ -0,0 +1,19 @@ +require 'spec_helper' + +describe 'samba::server::ads', :type => :class do + let( :facts ) { { :osfamily => 'Debian' } } + context "Default config" do + it { should contain_exec('join-active-directory') } + end + + context "No join" do + let ( :params ) { { 'perform_join' => false }} + it { should_not contain_exec('join-active-directory') } + end + + context "Join 'forced'" do + let ( :params ) { { 'perform_join' => true }} + it { should contain_exec('join-active-directory') } + end +end + |