X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fdefines%2Fconf_spec.rb;h=f1e42b5f674571213aeb3872c56972b2e1846ad6;hb=1192618d075d30a8131f8cfff6af79f42c85d6a3;hp=7f75fd93600a46b4cf3c2d62b60b294492541592;hpb=3423414fec223617fafb0806c8147a96ebedc80e;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/defines/conf_spec.rb b/spec/defines/conf_spec.rb index 7f75fd9..f1e42b5 100644 --- a/spec/defines/conf_spec.rb +++ b/spec/defines/conf_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe 'apt::conf', type: :define do let :pre_condition do @@ -5,11 +7,18 @@ describe 'apt::conf', type: :define do end let(:facts) do { - os: { family: 'Debian', name: 'Debian', release: { major: '8', full: '8.0' } }, - lsbdistid: 'Debian', - osfamily: 'Debian', - lsbdistcodename: 'jessie', - puppetversion: Puppet.version, + os: { + family: 'Debian', + name: 'Debian', + release: { + major: '9', + full: '9.0', + }, + distro: { + codename: 'stretch', + id: 'Debian', + }, + }, } end let :title do @@ -35,8 +44,7 @@ describe 'apt::conf', type: :define do is_expected.to contain_file(filename).with('ensure' => 'present', 'content' => %r{Apt::Install-Recommends 0;\nApt::AutoRemove::InstallRecommends 1;}, 'owner' => 'root', - 'group' => 'root', - 'mode' => '0644') + 'group' => 'root') } context 'with notify_update = true (default)' do @@ -83,8 +91,7 @@ describe 'apt::conf', type: :define do it { is_expected.to contain_file(filename).with('ensure' => 'absent', 'owner' => 'root', - 'group' => 'root', - 'mode' => '0644') + 'group' => 'root') } end end