moving parameters into appropriate place, adding meaning unit test, first pass on reference file, expanding acceptance test to include meaningful example

using codename as release
This commit is contained in:
Bram Vogelaar 2021-01-13 17:07:37 +01:00
parent 46678ae310
commit ea3e115bd0
No known key found for this signature in database
GPG key ID: 02374F82C00E4984
6 changed files with 108 additions and 12 deletions

View file

@ -1,8 +1,16 @@
require 'spec_helper'
describe 'hashi_stack::repo' do
describe 'hashi_stack::repo', type: 'class' do
on_supported_os.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }
case os_facts[:os]['family']
when 'Debian'
it { is_expected.to contain_apt__source('HashiCorp') }
when 'RedHat'
it { is_expected.to contain_yumrepo('HashiCorp') }
end
end
end
end