mirror of
https://github.com/voxpupuli/puppet-hashi_stack.git
synced 2025-05-24 02:45:01 +01:00
adding acceptance setup
This commit is contained in:
parent
1822503711
commit
fe9ef733e1
4 changed files with 103 additions and 5 deletions
17
spec/acceptance/standard_spec.rb
Normal file
17
spec/acceptance/standard_spec.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'hashi_stack::repo class' do
|
||||
|
||||
context 'default parameters' do
|
||||
# Using puppet_apply as a helper
|
||||
it 'should work with no errors based on the example' do
|
||||
pp = <<-EOS
|
||||
class { 'hashi_stack::repo': }
|
||||
EOS
|
||||
|
||||
# Run it twice and test for idempotency
|
||||
expect(apply_manifest(pp).exit_code).to_not eq(1)
|
||||
expect(apply_manifest(pp).exit_code).to eq(0)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,9 +1,8 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'nomad' do
|
||||
describe 'hashi_stack::repo' do
|
||||
on_supported_os.each do |os, os_facts|
|
||||
context "on #{os}" do
|
||||
let(:facts) { os_facts.merge(service_provider: 'systemd') }
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue