PuppetLint.configuration.ignore_paths = exclude_paths
PuppetSyntax.exclude_paths = exclude_paths
+ENV['BEAKER_set'] ||= 'ubuntu-server-1204-x86'
desc "Run acceptance tests"
RSpec::Core::RakeTask.new(:acceptance) do |t|
t.pattern = 'spec/acceptance'
--- /dev/null
+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_mask => 0777,
+ force_group => 'group',
+ force_user => 'user',
+ }
+ "}
+
+ 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
--- /dev/null
+HOSTS:
+ centos-66-x64:
+ roles:
+ - master
+ platform: el-6-x86_64
+ box: puppetlabs/centos-6.6-64-nocm
+ box_url: https://vagrantcloud.com/puppetlabs/boxes/centos-6.6-64-nocm
+ hypervisor: vagrant
+CONFIG:
+ log_level: verbose
+ type: foss
+ color: false
--- /dev/null
+HOSTS:
+ centos-70-x64:
+ roles:
+ - master
+ platform: el-7-x86_64
+ box: puppetlabs/centos-7.0-64-nocm
+ box_url: https://vagrantcloud.com/puppetlabs/boxes/centos-7.0-64-nocm
+ hypervisor : vagrant
+CONFIG:
+ log_level: verbose
+ type: foss
+ color: false
--- /dev/null
+HOSTS:
+ debian-78-x64:
+ roles:
+ - master
+ platform: debian-7-amd64
+ box: puppetlabs/debian-7.8-64-nocm
+ box_url: https://vagrantcloud.com/puppetlabs/boxes/debian-7.8-64-nocm
+ hypervisor: vagrant
+
+CONFIG:
+ log_level: verbose
+ type: foss
--- /dev/null
+HOSTS:
+ ubuntu-server-1204-x64:
+ roles:
+ - master
+ platform: ubuntu-1204-amd64
+ box: puppetlabs/ubuntu-12.04-64-nocm
+ box_url: https://vagrantcloud.com/puppetlabs/boxes/ubuntu-12.04-64-nocm
+ hypervisor: vagrant
+
+CONFIG:
+ log_level: verbose
+ type: foss
+ color: false
--- /dev/null
+HOSTS:
+ ubuntu-server-1404-x64:
+ roles:
+ - master
+ platform: ubuntu-server-14.04-amd64
+ box: puppetlabs/ubuntu-14.04-64-nocm
+ box_url: https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm
+ hypervisor: vagrant
+
+CONFIG:
+ log_level: verbose
+ type: foss
+ color: false
--- /dev/null
+require 'beaker-rspec/spec_helper'
+require 'beaker-rspec/helpers/serverspec'
+require 'pry'
+
+unless ENV['BEAKER_provision'] == 'no'
+ hosts.each do |host|
+ # Install Puppet
+ if host.is_pe?
+ install_pe
+ else
+ install_puppet
+ end
+ end
+end
+
+RSpec.configure do |c|
+ # Project root
+ proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
+
+ # Readable test descriptions
+ c.formatter = :documentation
+
+ # Configure all nodes in nodeset
+ c.before :suite do
+ # Install module and dependencies
+ puppet_module_install(:source => proj_root, :module_name => 'samba')
+ end
+end
+