mirror of
https://github.com/krislamo/puppet-fluentd
synced 2025-09-08 15:19:30 +00:00
added first version of beaker tests (wip)
This commit is contained in:
20
spec/acceptance/fluentd_spec.rb
Normal file
20
spec/acceptance/fluentd_spec.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
require 'spec_helper_acceptance'
|
||||
|
||||
RSpec.describe 'fluentd' do
|
||||
it 'runs successfully' do
|
||||
manifest = File.read(File.expand_path('../../examples/init.pp', File.dirname(__FILE__)))
|
||||
|
||||
# Run it twice and test for idempotency
|
||||
apply_manifest(manifest, catch_failures: true)
|
||||
expect(apply_manifest(manifest, catch_failures: true).exit_code).to be_zero
|
||||
end
|
||||
|
||||
describe package('td-agent') do
|
||||
it { is_expected.to be_installed }
|
||||
end
|
||||
|
||||
describe service('td-agent') do
|
||||
it { is_expected.to be_enabled.with_level(3) }
|
||||
it { is_expected.to be_running }
|
||||
end
|
||||
end
|
13
spec/acceptance/nodesets/default.yml
Normal file
13
spec/acceptance/nodesets/default.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
HOSTS:
|
||||
ubuntu-server-1204-x64:
|
||||
roles:
|
||||
- master
|
||||
platform: ubuntu-12.04-amd64
|
||||
box: puppetlabs/ubuntu-12.04-64-nocm
|
||||
#box: wywy-ubuntu-12.04.5
|
||||
box_url: https://vagrantcloud.com/puppetlabs/boxes/ubuntu-12.04-64-nocm
|
||||
#box_url: http://files.munich.wywy.com/vagrant/box/wywy-ubuntu-12.04.5.box
|
||||
hypervisor: vagrant
|
||||
CONFIG:
|
||||
log_level: verbose
|
||||
type: foss
|
Reference in New Issue
Block a user