-
Notifications
You must be signed in to change notification settings - Fork 133
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
Integration testing of this cookbook in the CI #142
Comments
I like the idea, especially since not all parameters can be tested properly in a docker container. Do you think we should activate the current kitchen-dokken setup for this cookbook too? |
I'm not sure this will work properly: we change a lot of really system related things, which are probably not covered by kernel namespaces (e.g. some sysctl flags related to tcp/ip) We can try that and see if it works |
it would be cool to be able to switch off the kernel related tests anyways. I run the inspec suite against docker images (as the target) and at the moment I switch dem off with a profile. |
@artem-sidorenko we could add an inspec attribute if required to our baseline tests. Kitchen supports inspec attributes already. Nevertheless, lets split this into two issues:
|
@chris-rock It makes definitely sense to add some flag(s) to the chef-os-hardning and to the linux-baseline, which would allow use-case like @ehaselwanter described and enable a partly testing with containers. However I'm not sure about the short-term perspective of this. What about following suggestion?
|
@artem-sidorenko lets go with that approach. Lets have a discussion, what we expect from a bare container. cc @atomic111 |
sounds good to me :-) |
@chris-rock @ehaselwanter @atomic111 please have a look and review the #144 |
I'll close this as we have now integration tests |
Currently we only run unit tests/lints. Its not easily possible to test this cookbook in the same way like we do with chef-ssh-hardening (kitchen-dokken): we change here tonns of OS parameters.
What about to have a proper integration testing via IaaS?
My suggested way:
Via this way we get following:
@atomic111 @chris-rock opinions?
The text was updated successfully, but these errors were encountered: