mirror of
https://github.com/voxpupuli/puppet-hashi_stack.git
synced 2025-05-24 19:05:01 +01:00
rubocop: autofix
This commit is contained in:
parent
b22e05176a
commit
ddc072a388
2 changed files with 4 additions and 5 deletions
|
@ -1,10 +1,9 @@
|
||||||
require 'spec_helper_acceptance'
|
require 'spec_helper_acceptance'
|
||||||
|
|
||||||
describe 'hashi_stack::repo class' do
|
describe 'hashi_stack::repo class' do
|
||||||
|
|
||||||
context 'default parameters' do
|
context 'default parameters' do
|
||||||
# Using puppet_apply as a helper
|
# Using puppet_apply as a helper
|
||||||
it 'should work with no errors based on the example' do
|
it 'works with no errors based on the example' do
|
||||||
pp = <<-EOS
|
pp = <<-EOS
|
||||||
include hashi_stack::repo
|
include hashi_stack::repo
|
||||||
package { 'packer':
|
package { 'packer':
|
||||||
|
|
|
@ -11,10 +11,10 @@ describe 'hashi_stack::repo' do
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
it {
|
it {
|
||||||
is_expected.to contain_yumrepo('HashiCorp').with(
|
is_expected.to contain_yumrepo('HashiCorp').with(
|
||||||
baseurl: 'https://rpm.releases.hashicorp.com/RHEL/$releasever/$basearch/stable',
|
baseurl: 'https://rpm.releases.hashicorp.com/RHEL/$releasever/$basearch/stable'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
context "with custom Yum base url" do
|
context 'with custom Yum base url' do
|
||||||
let(:params) do
|
let(:params) do
|
||||||
{
|
{
|
||||||
rpm_base: 'https://somewhere.else'
|
rpm_base: 'https://somewhere.else'
|
||||||
|
@ -23,7 +23,7 @@ describe 'hashi_stack::repo' do
|
||||||
|
|
||||||
it {
|
it {
|
||||||
is_expected.to contain_yumrepo('HashiCorp').with(
|
is_expected.to contain_yumrepo('HashiCorp').with(
|
||||||
baseurl: 'https://somewhere.else/RHEL/$releasever/$basearch/stable',
|
baseurl: 'https://somewhere.else/RHEL/$releasever/$basearch/stable'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue