- it { should contain_file('99progressbar').only_with({
- 'ensure' => 'present',
- 'content' => 'Dpkg::Progress-Fancy "1";',
- 'path' => '/etc/apt/apt.conf.d/99progressbar',
- })}
-
- it { should contain_file('99unauth').only_with({
- 'ensure' => 'present',
- 'content' => "APT::Get::AllowUnauthenticated 1;\n",
- 'path' => '/etc/apt/apt.conf.d/99unauth',
- })}
-
- it { should contain_file('01proxy').that_notifies('Exec[apt_update]').only_with({
- 'ensure' => 'present',
- 'path' => '/etc/apt/apt.conf.d/01proxy',
- 'content' => "Acquire::http::Proxy \"http://foo:9876\";\n",
- 'notify' => 'Exec[apt_update]',
- 'mode' => '0644',
- 'owner' => 'root',
- 'group' => 'root'
- })}
-