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 #16366 - Add SCAP content validations to policy #208

Merged
merged 1 commit into from Sep 7, 2016

Conversation

shlomizadok
Copy link
Member

No description provided.

assert p.errors[:scap_content_id].include?("can't be blank")
end

test "should not create policy with monthly period" do
Copy link
Member Author

Choose a reason for hiding this comment

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

Typo while copying... Will change once tests are finished

@xprazak2
Copy link
Contributor

xprazak2 commented Sep 7, 2016

Looks good, but there is no error message when I click 'next' without changing the dropdowns. Could you have another look please?

@shlomizadok
Copy link
Member Author

@xprazak2 - fixed

@xprazak2
Copy link
Contributor

xprazak2 commented Sep 7, 2016

Nice. Thanks!

@xprazak2
Copy link
Contributor

xprazak2 commented Sep 7, 2016

Note: I see JSON style hashes, so if all tests pass, then our rubocop is not running.

@shlomizadok
Copy link
Member Author

Oh, I thought it was changed (noticed it has changed in core)

@xprazak2
Copy link
Contributor

xprazak2 commented Sep 7, 2016

I knew there was a rubocop discussion, but I did not notice they actually changed it in core. It is still on in our rubocop.yaml. There was also outdated rule when I tried running rake foreman_openscap:rubocop manually.

Seems like we can merge this and fix rubocop separately if there are no objections.

@shlomizadok
Copy link
Member Author

@xprazak2 - I believe this is ready to merge.
We should : A) Add houndci here and rubocopify it :) & B) Allow ruby19 Hash syntax like in core

@xprazak2
Copy link
Contributor

xprazak2 commented Sep 7, 2016

Sounds like a plan. Merging, thanks!

@xprazak2 xprazak2 merged commit 1d77653 into theforeman:master Sep 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants