1
0
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:
Max Wilhelm
2016-01-11 18:36:45 +01:00
parent d11007eb35
commit c6e3a69f2b
4 changed files with 63 additions and 0 deletions

View 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

View 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