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

Do not scope MBeans queries on list_not_matching_attributes action #102

Merged
merged 1 commit into from
Jun 17, 2016

Conversation

olivielpeau
Copy link
Member

Kudos to @nwillems for finding this bug! (4d9b0fa#commitcomment-17642270)

cc @yannmh

@olivielpeau olivielpeau added the bug label Jun 3, 2016
olivielpeau referenced this pull request Jun 3, 2016
Do not scope MBeans queries on `list_everything` or
`list_not_matching_attributes`.
Fix regression introduced with #63.
@nwillems
Copy link
Contributor

nwillems commented Jun 3, 2016

Thanks for fixing this. The code looks good to me.

I guess this is not easily testable? I'm currently thinking about doing some more testing for this component.

Once again, thank you for taking the time to fix this.

@yannmh yannmh added this to the 0.12.0 milestone Jun 3, 2016
@yannmh
Copy link
Member

yannmh commented Jun 3, 2016

Thanks @nwillems @olivielpeau.

I guess this is not easily testable?

One way I could think of, would be to mock the connection.queryNames and make assertions on the passed argument (i.e. the scope queried). Then, we could test different scenarios based on the user's configuration and the JMX command. The downside is that this would likely require an additional dependency to the project, something like http://mockito.org/.

Still, I think this should go out :shipit:

Yann

@olivielpeau olivielpeau merged commit a20dba9 into master Jun 17, 2016
@olivielpeau olivielpeau deleted the olivielpeau/fix-mbeans-scope-action branch June 17, 2016 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants