Skip to content

Commit 293625e

Browse files
committed
wip
1 parent e4374e3 commit 293625e

File tree

2 files changed

+4
-37
lines changed

2 files changed

+4
-37
lines changed

app/models/manageiq/providers/vmware/infra_manager.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,14 +344,14 @@ def validate_remote_console_webmks_support
344344
true
345345
end
346346

347-
def after_update_authentication
347+
def after_update_authentication(changes)
348348
super
349-
stop_refresh_worker_queue_on_credential_change
349+
stop_refresh_worker_queue_on_credential_change(changes)
350350
end
351351

352-
def after_update_endpoints
352+
def after_update_endpoints(changes)
353353
super
354-
stop_refresh_worker_queue_on_change
354+
stop_refresh_worker_queue_on_change(changes)
355355
end
356356

357357
def self.event_monitor_class

spec/models/manageiq/providers/vmware/infra_manager_spec.rb

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -239,39 +239,6 @@
239239
end
240240
end
241241

242-
context "handling changes that may require EventCatcher restart" do
243-
before(:each) do
244-
zone = EvmSpecHelper.local_miq_server.zone
245-
@ems = FactoryBot.create(:ems_vmware, :zone => zone)
246-
end
247-
248-
it "will restart EventCatcher when ipaddress changes" do
249-
@ems.update(:ipaddress => "1.1.1.1")
250-
assert_event_catcher_restart_queued
251-
end
252-
253-
it "will restart EventCatcher when hostname changes" do
254-
@ems.update(:hostname => "something-else")
255-
assert_event_catcher_restart_queued
256-
end
257-
258-
it "will restart EventCatcher when credentials change" do
259-
@ems.update_authentication(:default => {:userid => "new_user_id"})
260-
assert_event_catcher_restart_queued
261-
end
262-
263-
it "will not put multiple restarts of the EventCatcher on the queue" do
264-
@ems.update(:ipaddress => "1.1.1.1")
265-
@ems.update(:hostname => "something else")
266-
assert_event_catcher_restart_queued
267-
end
268-
269-
it "will not restart EventCatcher when name changes" do
270-
@ems.update(:name => "something else")
271-
expect(MiqQueue.count).to eq(0)
272-
end
273-
end
274-
275242
context "catalog types" do
276243
it "#catalog_types" do
277244
ems = FactoryBot.create(:ems_vmware)

0 commit comments

Comments
 (0)