diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-12-30 00:02:01 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-12-30 00:02:01 -0200 |
commit | fa635e9150e8e1042f357ad328b43f41e5c804b2 (patch) | |
tree | 2a535441b8d92a71d6e4f7c453d3bb479e11df4c /spec/classes/samba__server__ads_spec.rb | |
parent | 309d5859d9c801218075789fe068869ab49065f5 (diff) | |
parent | 1020f7ca2be81c64f4a56816731390a852b62e89 (diff) | |
download | puppet-samba-fa635e9150e8e1042f357ad328b43f41e5c804b2.tar.gz puppet-samba-fa635e9150e8e1042f357ad328b43f41e5c804b2.tar.bz2 |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'spec/classes/samba__server__ads_spec.rb')
-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 + |