23 lines
556 B
Ruby
23 lines
556 B
Ruby
require 'spec_helper_acceptance'
|
|
|
|
describe 'puppet-ansible module' do
|
|
def pp_path
|
|
base_path = File.dirname(__FILE__)
|
|
File.join(base_path, 'fixtures')
|
|
end
|
|
|
|
def default_puppet_module
|
|
module_path = File.join(pp_path, 'default.pp')
|
|
File.read(module_path)
|
|
end
|
|
|
|
it 'should work with no errors' do
|
|
apply_manifest(default_puppet_module, catch_failures: true)
|
|
end
|
|
|
|
it 'should be idempotent' do
|
|
apply_manifest(default_puppet_module, catch_failures: true)
|
|
apply_manifest(default_puppet_module, catch_changes: true)
|
|
end
|
|
end
|