-
Notifications
You must be signed in to change notification settings - Fork 897
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14647 from durandom/blacklisted_event_names
blacklisted event names in settings.yml
- Loading branch information
Showing
4 changed files
with
24 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
:ems: | ||
:ems_<%= provider_name %>: | ||
:blacklisted_event_names: [] | ||
:event_handling: | ||
:event_groups: | ||
:http_proxy: | ||
|
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,19 @@ | ||
describe ManageIQ::Providers::BaseManager do | ||
context ".default_blacklisted_event_names" do | ||
it 'returns an empty array for the base class' do | ||
expect(described_class.default_blacklisted_event_names).to eq([]) | ||
end | ||
|
||
it 'returns the provider event if configured' do | ||
stub_settings_merge( | ||
:ems => { | ||
:ems_some_provider => { | ||
:blacklisted_event_names => %w(ev1 ev2) | ||
} | ||
} | ||
) | ||
allow(described_class).to receive(:provider_name).and_return('SomeProvider') | ||
expect(described_class.default_blacklisted_event_names).to eq(%w(ev1 ev2)) | ||
end | ||
end | ||
end |