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

Fixes #17842 - Adds 'type = compute_resource' to Audit search #4131

Merged
merged 1 commit into from
Dec 26, 2016

Conversation

shlomizadok
Copy link
Member

No description provided.

@mention-bot
Copy link

@shlomizadok, thanks for your PR! By analyzing the history of the files in this pull request, we identified @amirfefer, @isratrade and @orrabin to be potential reviewers.

@tbrisker
Copy link
Member

@shlomizadok How about adding all the missing types?


test "search for type=compute_resource in audit" do
FactoryGirl.create(:ec2_cr)
refute_empty Audit.search_for("type = compute_resource")
Copy link
Member

Choose a reason for hiding this comment

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

assert_empty before the creation please to make sure that it isn't empty because the creation added an entry.

Copy link
Member Author

Choose a reason for hiding this comment

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

I do not care if it is empty... I just want to ensure I have at least one when I search.
The purpose of this test is to ensure I can seach Audit by type=compute_resource

Copy link
Member

Choose a reason for hiding this comment

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

also would be nice to show that you search for different compute resource types ?(e.g. that STI works correctly).

@shlomizadok
Copy link
Member Author

@tbrisker - each type at a time 😄

@tbrisker tbrisker merged commit a503379 into theforeman:develop Dec 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants