-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test realtime metrics purging #17050
Conversation
kicking |
spec/models/metric/purging_spec.rb
Outdated
FactoryGirl.create(:metric_vm_rt, :resource_id => vm1.id, :timestamp => (hours.hours.ago + 1.minute)) | ||
end | ||
expect(Metric.count).to eq(17) | ||
# keep metric for 02:13 - 22:13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this read 22:13 - 02:13
a1270af
to
b01f774
Compare
@gtanzillo thanks - fixed a few issues with the "keep" comments |
Checked commit kbrock@b01f774 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
test realtime metrics purging (cherry picked from commit 89cd2bc)
Gaprindashvili backport details:
|
test realtime metrics purging (cherry picked from commit 89cd2bc)
Backported to Fine via #17124 |
pulled out of #17017
Was going to introduce change to the metrics purging code.
This sets up tests for the edge cases