Skip to content

Commit

Permalink
adjusted rspec to expect new method in the queue: destroy_older_by_co…
Browse files Browse the repository at this point in the history
…ndition
  • Loading branch information
yrudman committed Jun 21, 2017
1 parent 3fa2a07 commit d1435a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/models/metric_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
%w(Storage perf_capture_hourly) => 1,
%w(ManageIQ::Providers::Vmware::InfraManager::Vm perf_capture_realtime) => 2,
%w(ManageIQ::Providers::Vmware::InfraManager::Vm perf_capture_historical) => 16,
%w(MiqTask destroy_older_by_condition) => 1
}
end

Expand Down Expand Up @@ -1023,7 +1024,9 @@

it "should queue up enabled targets" do
expected_targets = Metric::Targets.capture_targets
expect(MiqQueue.group(:method_name).count).to eq('perf_capture_realtime' => expected_targets.count, 'perf_capture_historical' => expected_targets.count * 8)
expect(MiqQueue.group(:method_name).count).to eq('perf_capture_realtime' => expected_targets.count,
'perf_capture_historical' => expected_targets.count * 8,
'destroy_older_by_condition' => 1)
assert_metric_targets(expected_targets)
end
end
Expand Down

0 comments on commit d1435a5

Please sign in to comment.