From: Raphaƫl Pinson Date: Wed, 14 Aug 2019 07:13:51 +0000 (+0200) Subject: Test default key_options for apt::key X-Git-Tag: v7.2.0~9^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=0de37ff9c2830c7399bc52b4faf0ebe9230c395e;p=puppet-modules%2Fpuppetlabs-apt.git Test default key_options for apt::key --- diff --git a/spec/defines/key_spec.rb b/spec/defines/key_spec.rb index 94d40cb..ad715d6 100644 --- a/spec/defines/key_spec.rb +++ b/spec/defines/key_spec.rb @@ -392,5 +392,17 @@ describe 'apt::key' do is_expected.to contain_apt_key(title).with_server('keyserver.example.com') end end + + context 'when setting key_options on the apt class' do + let :pre_condition do + 'class { "apt": + key_options => "http-proxy=http://proxy.example.com:8080", + }' + end + + it 'uses default keyserver' do + is_expected.to contain_apt_key(title).with_options('http-proxy=http://proxy.example.com:8080') + end + end end end