mirror of
https://github.com/voxpupuli/puppet-hashi_stack.git
synced 2025-05-24 02:45:01 +01:00
22 lines
567 B
Ruby
22 lines
567 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper_acceptance'
|
|
|
|
describe 'hashi_stack::repo class' do
|
|
context 'default parameters' do
|
|
# Using puppet_apply as a helper
|
|
it 'works with no errors based on the example' do
|
|
pp = <<-EOS
|
|
include hashi_stack::repo
|
|
package { 'packer':
|
|
ensure => installed,
|
|
require => Class['Hashi_stack::Repo'],
|
|
}
|
|
EOS
|
|
|
|
# Run it twice and test for idempotency
|
|
apply_manifest(pp, catch_failures: true)
|
|
apply_manifest(pp, catch_changes: true)
|
|
end
|
|
end
|
|
end
|