Add basic rspec test
Add a basic apply test Change-Id: Iff4d74806c67c9480e3679fcca56d8470b9fd29e
This commit is contained in:
parent
f2b89f46c2
commit
daa7385af2
|
@ -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
|
|
@ -0,0 +1,5 @@
|
|||
$source_dir = '/opt/openstack-health'
|
||||
|
||||
include ethercalc::redis
|
||||
|
||||
class { '::ethercalc': }
|
Loading…
Reference in New Issue