|
1 | 1 | tests-os-hardening |
2 | 2 | ================== |
3 | 3 |
|
4 | | -This are the integration tests for the projects |
| 4 | +This Compliance Profile ensures, that all hardening projects keep the same quality. |
5 | 5 |
|
6 | 6 | - https://github.com/hardening-io/puppet-os-hardening |
7 | 7 | - https://github.com/hardening-io/chef-os-hardening |
8 | 8 | - https://github.com/hardening-io/ansible-os-hardening |
9 | | - |
10 | | -They start at `integration` level. |
11 | | - |
12 | | -you can use the gem `kitchen-sharedtests` |
13 | | - |
14 | | -- https://github.com/ehaselwanter/kitchen-sharedtests/ |
15 | | - |
16 | | -to make them available to your project. Use `thor kitchen:fetch-remote-tests` to put the repo into `test/integration`. |
17 | 9 |
|
18 | 10 | ## Standalone Usage |
19 | 11 |
|
20 | | -You can target the integration tests to any host where you have ssh access. |
21 | | - |
22 | | -`rake -T` gives you a list of suites you can run (we'll ignore directories which are obviously not suites for now) |
| 12 | +This Compliance Profile requires [InSpec](https://github.com/chef/inspec) for execution: |
23 | 13 |
|
24 | 14 | ``` |
25 | | -± rake -T |
26 | | -rake serverspec:data_bags # Run serverspec suite data_bags |
27 | | -rake serverspec:default # Run serverspec suite default |
| 15 | +$ git clone https://github.com/hardening-io/tests-os-hardening |
| 16 | +$ inspec exec tests-os-hardening |
28 | 17 | ``` |
29 | 18 |
|
30 | | -Run it with: |
| 19 | +You can also execute the profile directly from Github: |
31 | 20 |
|
32 | 21 | ``` |
33 | | -bundle install |
| 22 | +$ inspec exec https://github.com/hardening-io/tests-os-hardening |
| 23 | +``` |
34 | 24 |
|
35 | | -# default user and ssh-key |
| 25 | +## License and Author |
36 | 26 |
|
37 | | -bundle exec rake serverspec:default target_host=<name-or-ip-of-target-server> |
| 27 | +* Author:: Patrick Muench <patrick.meier111@googlemail.com> |
| 28 | +* Author:: Dominik Richter <dominik.richter@googlemail.com> |
| 29 | +* Author:: Christoph Hartmann <chris@lollyrock.com> |
| 30 | +* Author:: Edmund Haselwanter <me@ehaselwanter.com> |
38 | 31 |
|
39 | | -# or with user, host, password |
| 32 | +* Copyright 2014-2016, The Hardening Framework Team |
40 | 33 |
|
41 | | -ASK_LOGIN_PASSWORD=true bundle exec rake serverspec:default target_host=192.168.1.222 user=stack |
42 | | -``` |
| 34 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 35 | +you may not use this file except in compliance with the License. |
| 36 | +You may obtain a copy of the License at |
43 | 37 |
|
44 | | -Add `format=html|json` to get a report.html or report.json document. |
| 38 | + http://www.apache.org/licenses/LICENSE-2.0 |
45 | 39 |
|
| 40 | +Unless required by applicable law or agreed to in writing, software |
| 41 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 42 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 43 | +See the License for the specific language governing permissions and |
| 44 | +limitations under the License. |
0 commit comments