Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@ This are the integration tests for the projects
- https://github.com/hardening-io/puppet-os-hardening
- https://github.com/hardening-io/chef-os-hardening
- https://github.com/hardening-io/ansible-os-hardening
-
they start at `integration` level

They start at `integration` level.

you can use the gem `kitchen-sharedtests`

- https://github.com/ehaselwanter/kitchen-sharedtests/

to make them available to your project. Use `thor kitchen:fetch-remote-tests` to put the repo into `test/integration`
to make them available to your project. Use `thor kitchen:fetch-remote-tests` to put the repo into `test/integration`.

## Standalone Usage

you can target the integration tests to any host were you have ssh access
You can target the integration tests to any host where you have ssh access.

rake -T gives you a list of suites you can run (well ignore directories which are obviously not suites for now)
`rake -T` gives you a list of suites you can run (we'll ignore directories which are obviously not suites for now)

```
± rake -T
rake serverspec:data_bags # Run serverspec suite data_bags
rake serverspec:default # Run serverspec suite default
```

run it with:
Run it with:

```
bundle install
Expand All @@ -41,5 +41,5 @@ bundle exec rake serverspec:default target_host=<name-or-ip-of-target-server>
ASK_LOGIN_PASSWORD=true bundle exec rake serverspec:default target_host=192.168.1.222 user=stack
```

add `format=html|json` to get a report.html or report.json document
Add `format=html|json` to get a report.html or report.json document.