Add basic rspec test

Add a basic apply test

Change-Id: Iff4d74806c67c9480e3679fcca56d8470b9fd29e
This commit is contained in:
Ian Wienand 2017-12-14 11:50:23 +11:00
parent f2b89f46c2
commit daa7385af2
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,17 @@
require 'puppet-openstack_infra_spec_helper/spec_helper_acceptance'
describe 'puppet-ethercalc:: manifest', :if => ['debian', 'ubuntu'].include?(os[:family]) do
def pp_path
base_path = File.dirname(__FILE__)
File.join(base_path, 'fixtures')
end
def init_puppet_module
module_path = File.join(pp_path, 'ethercalc.pp')
File.read(module_path)
end
it 'should work with no errors' do
apply_manifest(init_puppet_module, catch_failures: true)
end
end

View File

@ -0,0 +1,5 @@
$source_dir = '/opt/openstack-health'
include ethercalc::redis
class { '::ethercalc': }