- os: { family: 'Debian', name: 'Debian', release: { major: '8', full: '8.0' } },
- lsbdistid: 'debian',
- lsbdistcodename: 'jessie',
- osfamily: 'debian',
- puppetversion: Puppet.version,
+ location: 'hello.there',
+ include: { 'deb' => false, 'src' => true },
+ }
+ end
+
+ it {
+ is_expected.to contain_apt__setting('list-my_source').with(ensure: 'present').with_content(%r{# my_source\ndeb-src hello.there stretch main\n})
+ }
+ end
+
+ context 'with include_src => true' do
+ let :params do
+ {
+ location: 'hello.there',
+ include: { 'src' => true },