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

add some more specs for the hardening code #9

Merged
merged 6 commits into from Dec 11, 2014

Conversation

ehaselwanter
Copy link
Contributor

TelekomLabs-DCO-1.1-Signed-off-by: Edmund Haselwanter me@ehaselwanter.com
(github: ehaselwanter)

TelekomLabs-DCO-1.1-Signed-off-by: Edmund Haselwanter <me@ehaselwanter.com> (github: ehaselwanter)
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 21e098a on ehaselwanter:improve-spec-tests into ba8a052 on TelekomLabs:master.

next unless resource.respond_to? :mode

expect(resource.mode).to eq('0640') if resource.name == 'apache2.conf'
expect(resource.mode).to eq('0640') if resource.name =~ /#{chef_run.node['apache']['dir']}/ && resource.mode == '0755'
Copy link
Member

Choose a reason for hiding this comment

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

@ehaselwanter Maybe I missed something, but from my current understanding, that does not match the requirements here: https://github.com/TelekomLabs/chef-apache-hardening/blob/master/recipes/hardening.rb#L46

TelekomLabs-DCO-1.1-Signed-off-by: Edmund Haselwanter <me@ehaselwanter.com> (github: ehaselwanter)
TelekomLabs-DCO-1.1-Signed-off-by: Edmund Haselwanter <me@ehaselwanter.com> (github: ehaselwanter)
TelekomLabs-DCO-1.1-Signed-off-by: Edmund Haselwanter <me@ehaselwanter.com> (github: ehaselwanter)
…nd 7

TelekomLabs-DCO-1.1-Signed-off-by: Edmund Haselwanter <me@ehaselwanter.com> (github: ehaselwanter)
TelekomLabs-DCO-1.1-Signed-off-by: Edmund Haselwanter <me@ehaselwanter.com> (github: ehaselwanter)
@chris-rock
Copy link
Member

@ehaselwanter great work!

chris-rock added a commit that referenced this pull request Dec 11, 2014
add some more specs for the hardening code
@chris-rock chris-rock merged commit 2d60e99 into dev-sec:master Dec 11, 2014
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 6fe91d6 on ehaselwanter:improve-spec-tests into ba8a052 on TelekomLabs:master.

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.

None yet

3 participants