No description
Find a file
Christoph Hartmann 2801dd6072 Merge pull request #35 from atomic111/master
removed serverspec support and created all inspec tests
2015-12-08 21:46:44 +01:00
default again some more rubocop fixing 2015-11-26 20:38:12 +01:00
lockdown/inspec again some more rubocop fixing 2015-11-26 20:38:12 +01:00
playbooks Improve Ansible tests 2015-09-22 19:04:45 +02:00
.gitignore add lockfiles and delete them from tree 2014-06-02 13:05:57 +02:00
.rubocop.yml updating common files 2014-12-12 01:57:20 +01:00
.travis.yml add travis config, add default task to rakefile 2014-06-23 12:03:15 +02:00
CHANGELOG.md 1.0.0 2014-08-13 11:11:08 +02:00
Gemfile added complete inspec tests 2015-11-26 10:13:00 +01:00
Rakefile add json format option 2015-01-14 13:37:40 +01:00
README.md Fix typos 2015-06-23 14:28:02 +00:00

tests-os-hardening

This are the integration tests for the projects

They start at integration level.

you can use the gem kitchen-sharedtests

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 where you have ssh access.

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:

bundle install

# default user and ssh-key

bundle exec rake serverspec:default target_host=<name-or-ip-of-target-server>

# or with user, host, password

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.