Fix unit tests for apt module

This change include the declaration of the lsbdisrelease fact for debian
based systems due to the usage in puppetlabs-apt 2.3.0.  Previously this
fact was not used so tests passed under Puppet 4.5+.

Change-Id: Id1b5362ea088ce1978e78e4b14159e2310c19825
This commit is contained in:
Alex Schultz 2016-09-26 11:23:03 -06:00
parent 46486f15a1
commit 69dc5e3a5f
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,8 @@ describe 'openstack_extras::repo::debian::debian' do
@default_facts.merge({
:osfamily => 'Debian',
:operatingsystem => 'Debian',
:lsbdistid => 'Debian'
:lsbdistid => 'Debian',
:lsbdistrelease => '8'
})
end

View File

@ -26,7 +26,8 @@ describe 'openstack_extras::repo::debian::ubuntu' do
:osfamily => 'Debian',
:operatingsystem => 'Ubuntu',
:lsbdistid => 'Ubuntu',
:lsbdistcodename => 'trusty'
:lsbdistcodename => 'trusty',
:lsbdistrelease => '14.04'
})
end