adding acceptance setup

This commit is contained in:
Bram Vogelaar 2021-01-11 23:31:35 +01:00
parent 1822503711
commit fe9ef733e1
No known key found for this signature in database
GPG key ID: 02374F82C00E4984
4 changed files with 103 additions and 5 deletions

View 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

View file

@ -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