Skip to content
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

Merged
merged 1 commit into from
Feb 26, 2018
Merged

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Feb 26, 2018

pulled out of #17017

Was going to introduce change to the metrics purging code.

This sets up tests for the edge cases

@kbrock
Copy link
Member Author

kbrock commented Feb 26, 2018

kicking

@kbrock kbrock closed this Feb 26, 2018
@kbrock kbrock reopened this Feb 26, 2018
@kbrock kbrock removed the wip label Feb 26, 2018
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
Copy link
Member

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

@kbrock
Copy link
Member Author

kbrock commented Feb 26, 2018

@gtanzillo thanks - fixed a few issues with the "keep" comments

@miq-bot
Copy link
Member

miq-bot commented Feb 26, 2018

Checked commit kbrock@b01f774 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@gtanzillo gtanzillo added this to the Sprint 80 Ending Feb 26, 2018 milestone Feb 26, 2018
@gtanzillo gtanzillo merged commit 89cd2bc into ManageIQ:master Feb 26, 2018
@kbrock kbrock deleted the metrics_tests branch February 27, 2018 02:21
simaishi pushed a commit that referenced this pull request Mar 7, 2018
test realtime metrics purging
(cherry picked from commit 89cd2bc)
@simaishi
Copy link
Contributor

simaishi commented Mar 7, 2018

Gaprindashvili backport details:

$ git log -1
commit 9ab36e484632724b4c405ac52e75c10f6b1184e5
Author: Gregg Tanzillo <gtanzill@redhat.com>
Date:   Mon Feb 26 17:38:21 2018 -0500

    Merge pull request #17050 from kbrock/metrics_tests
    
    test realtime metrics purging
    (cherry picked from commit 89cd2bce982315da2146304658548dcd71aa0010)

gtanzillo added a commit to gtanzillo/manageiq that referenced this pull request Mar 8, 2018
test realtime metrics purging
(cherry picked from commit 89cd2bc)
@simaishi
Copy link
Contributor

Backported to Fine via #17124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants