mirror of
https://github.com/voxpupuli/puppet-hashi_stack.git
synced 2025-05-24 10:55:00 +01:00
16 lines
394 B
Ruby
16 lines
394 B
Ruby
require 'spec_helper'
|
|
|
|
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
|