Skip to content

Commit

Permalink
Reproduce issue leoarnold#251
Browse files Browse the repository at this point in the history
  • Loading branch information
tequeter committed Feb 25, 2020
1 parent ce867ff commit 142499b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/acceptance/classes/cups_purge_unmanaged_queues_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

require 'spec_helper_acceptance'

RSpec.describe 'Including class "cups" with purge_unmanaged_queues' do
context 'when the Cups service is not running' do
before(:all) do
apply_manifest('class { "cups": service_ensure => "stopped" }', catch_failures: true)
end

it 'does not produce errors' do
apply_manifest('class { "cups": purge_unmanaged_queues => true }', catch_failures: true) do
assert_not_match(/ipptool: Unable to connect to/, stderr)
end
end
end
end

0 comments on commit 142499b

Please sign in to comment.