Merge "Add beaker tests"

This commit is contained in:
Zuul 2018-08-01 21:17:24 +00:00 committed by Gerrit Code Review
commit 5acfa5476d
2 changed files with 30 additions and 0 deletions

27
spec/acceptance/basic_spec.rb Executable file
View File

@ -0,0 +1,27 @@
require 'puppet-openstack_infra_spec_helper/spec_helper_acceptance'
describe 'redis', if: os[:family] == 'ubuntu' do
def pp_path
base_path = File.dirname(__FILE__)
File.join(base_path, 'fixtures')
end
def puppet_manifest
manifest_path = File.join(pp_path, 'default.pp')
File.read(manifest_path)
end
it 'should work with no errors' do
apply_manifest(puppet_manifest, catch_failures: true)
end
it 'should be idempotent' do
apply_manifest(puppet_manifest, catch_changes: true)
end
describe service('redis-server') do
it { should be_running }
end
end

View File

@ -0,0 +1,3 @@
class { 'redis':
version => '3.0.6',
}