-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also changed .fixtures.yml to use https not git protocol. This helps people behind firewalls run the tests.
- Loading branch information
1 parent
0199f7d
commit c8eafe7
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
require 'spec_helper' | ||
|
||
describe 'hiera::install' do | ||
let :pre_condition do | ||
[ | ||
'include ::hiera' | ||
] | ||
end | ||
describe 'installing hiera-eyaml' do | ||
let :title do | ||
'hiera-eyaml' | ||
end | ||
let(:params) { { | ||
'gem_name' => 'hiera-eyaml', | ||
'provider' => 'puppetserver_gem' | ||
} } | ||
it { is_expected.to contain_package('hiera-eyaml').with( | ||
'name' => 'hiera-eyaml' | ||
)} | ||
it { is_expected.to contain_package('hiera-eyaml').without_install_options } | ||
|
||
context 'with gem_install_options' do | ||
let :pre_condition do | ||
[ | ||
'class { "hiera": gem_install_options => ["--http_proxy","http://proxy.example.com:3128"]}' | ||
] | ||
end | ||
it { is_expected.to contain_package('hiera-eyaml').with( | ||
'name' => 'hiera-eyaml', | ||
'install_options' => ['--http_proxy', 'http://proxy.example.com:3128'], | ||
)} | ||
end | ||
end | ||
end |