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

[nagios] review tests #1493

Merged
merged 1 commit into from
Apr 7, 2015
Merged

[nagios] review tests #1493

merged 1 commit into from
Apr 7, 2015

Conversation

yannmh
Copy link
Member

@yannmh yannmh commented Mar 31, 2015

No description provided.

@yannmh yannmh self-assigned this Mar 31, 2015
@yannmh yannmh added this to the 5.3.0 milestone Mar 31, 2015
@@ -245,12 +244,15 @@ def _candidates_size_assert(self, candidates, count=None, at_least=1):
self.print_current_state()
raise

def assertMetric(self, metric_name, value=None, tags=None, count=None, at_least=1):
def assertMetric(self, metric_name, value=None, tags=None, additional_attr=None, count=None, at_least=1):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not 100% convinced that we should add something as generic as that. We should just handle the device_name attribute through a named kwarg which seems reasonable because we do it exactly like the same way in the AgentCheck metrics submitting methods.
Also, it's still handled differently in the backend code.

@yannmh yannmh force-pushed the yann/nagios-review branch from 9d7d4a6 to 347af1f Compare April 7, 2015 15:39
@yannmh
Copy link
Member Author

yannmh commented Apr 7, 2015

Thanks for your feedback @LeoCavaille. I brought some changes to my PR.

@LeoCavaille
Copy link
Member

👍

LeoCavaille added a commit that referenced this pull request Apr 7, 2015
@LeoCavaille LeoCavaille merged commit 881ead0 into master Apr 7, 2015
@LeoCavaille LeoCavaille deleted the yann/nagios-review branch April 7, 2015 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants