]> gitweb.fluxo.info Git - puppet-samba.git/commitdiff
more specs for samba::server
authorAdam Jahn <ajjahn@gmail.com>
Mon, 13 Apr 2015 17:28:45 +0000 (13:28 -0400)
committerAdam Jahn <ajjahn@gmail.com>
Mon, 13 Apr 2015 17:34:06 +0000 (13:34 -0400)
use short hand for path to get specs passing

manifests/server.pp
spec/classes/samba__server_spec.rb

index 9eace3d06b92805dbec89f734979a36a9396d98d..65ea66018d9b09ce93dd930acfc72a81fad95769 100644 (file)
@@ -45,18 +45,16 @@ class samba::server($interfaces = '',
     'disable_spoolss':      value => $disable_spoolss;
   }
 
-  file {'check_samba_user':
+  file {'/sbin/check_samba_user':
     # script checks to see if a samba account exists for a given user
-    path    => '/sbin/check_samba_user',
     owner   => root,
     group   => root,
     mode    => '0755',
     content => template("${module_name}/check_samba_user"),
   }
 
-  file {'add_samba_user':
+  file {'/sbin/add_samba_user':
     # script creates a new samba account for a given user and password
-    path    => '/sbin/add_samba_user',
     owner   => root,
     group   => root,
     mode    => '0755',
index 89d994f4128b8395480bd5d371a960cea83cbc5d..fce10bbcd9ec0a4095430f4cbab178481af114b3 100644 (file)
@@ -6,4 +6,21 @@ describe 'samba::server' do
   it { should contain_class('samba::server::install') }
   it { should contain_class('samba::server::config') }
   it { should contain_class('samba::server::service') }
+
+  it { should contain_samba__server__option('interfaces') }
+  it { should contain_samba__server__option('bind interfaces only') }
+  it { should contain_samba__server__option('security') }
+  it { should contain_samba__server__option('server string') }
+  it { should contain_samba__server__option('unix password sync') }
+  it { should contain_samba__server__option('workgroup') }
+  it { should contain_samba__server__option('socket_options') }
+  it { should contain_samba__server__option('deadtime') }
+  it { should contain_samba__server__option('keepalive') }
+  it { should contain_samba__server__option('load_printers') }
+  it { should contain_samba__server__option('printing') }
+  it { should contain_samba__server__option('printcap_name') }
+  it { should contain_samba__server__option('disable_spoolss') }
+
+  it { should contain_file('/sbin/check_samba_user').with_owner('root') }
+  it { should contain_file('/sbin/add_samba_user').with_owner('root') }
 end