-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #32037: Add flag to enable katello_agent infrastructure and disa…
…ble it by default
- Loading branch information
Showing
5 changed files
with
118 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
require 'spec_helper_acceptance' | ||
|
||
describe 'dispatch_router' do | ||
context 'with default parameters' do | ||
let(:pp) do | ||
<<-PUPPET | ||
include foreman_proxy_content::dispatch_router | ||
PUPPET | ||
end | ||
|
||
it_behaves_like 'a idempotent resource' | ||
|
||
describe service('qdrouterd') do | ||
it { is_expected.to be_running } | ||
it { is_expected.to be_enabled } | ||
end | ||
|
||
describe port('5647') do | ||
it { is_expected.to be_listening } | ||
end | ||
end | ||
|
||
context 'with ensure absent' do | ||
let(:pp) do | ||
<<-PUPPET | ||
class { 'foreman_proxy_content::dispatch_router': | ||
ensure => 'absent', | ||
} | ||
PUPPET | ||
end | ||
|
||
it_behaves_like 'a idempotent resource' | ||
|
||
describe service('qdrouterd') do | ||
it { is_expected.not_to be_running } | ||
it { is_expected.not_to be_enabled } | ||
end | ||
|
||
describe port('5647') do | ||
it { is_expected.not_to be_listening } | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters