aboutsummaryrefslogtreecommitdiff
path: root/spec/acceptance/basic_samba_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/acceptance/basic_samba_spec.rb')
-rw-r--r--spec/acceptance/basic_samba_spec.rb36
1 files changed, 36 insertions, 0 deletions
diff --git a/spec/acceptance/basic_samba_spec.rb b/spec/acceptance/basic_samba_spec.rb
new file mode 100644
index 0000000..8a9e363
--- /dev/null
+++ b/spec/acceptance/basic_samba_spec.rb
@@ -0,0 +1,36 @@
+require 'spec_helper_acceptance'
+
+describe 'basic samba' do
+ context 'default parameters' do
+ let(:pp) {"
+ class { 'samba::server':
+ workgroup => 'example',
+ server_string => 'Example Samba Server'
+ }
+
+ samba::server::share {'example-share':
+ comment => 'Example Share',
+ path => '/path/to/share',
+ guest_only => true,
+ guest_ok => true,
+ guest_account => 'guest',
+ browsable => false,
+ create_mask => 0777,
+ force_create_mask => 0777,
+ directory_mask => 0777,
+ force_directory_mode => 0777,
+ force_group => 'group',
+ force_user => 'user',
+ hide_dot_files => false,
+ }
+ "}
+
+ it 'should apply with no errors' do
+ apply_manifest(pp, :catch_failures=>true)
+ end
+
+ it 'should be idempotent' do
+ apply_manifest(pp, :catch_changes=>true)
+ end
+ end
+end