Skip to content
Serverspec tests used to validate lx-brand images
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE
README.md Updated README based on recent restructuring Mar 16, 2015
Rakefile
properties_example.yml
run-cassandra-centos.sh
run-common-lx.sh
run-image-config-tests.sh

README.md

lx-brand-image-tests

These are the Serverspec tests used to validate lx-brand images.

These tests are are based on Serverspec "Serverspec.org").

Installation and Setup

To run the tests you will need ruby (1.9.3+ or 2.0.0 should work) and rubygems installed.

Install serverspec with:

gem install serverspec

Copy the properties_example.yml file to properties.yml

Modify properties.yml with the name and properties you want to test.

Next, edit your ~/.ssh/config file with the host information of the virtual machines you want to test. The name you chose for Host in ~/.ssh/config should match what you have in properties.yml.

For example, here's a properties.yml file:

centos-6:
  :roles:
    - common
    - centos

And an example ~/.ssh/config file:

Host centos-6
  User root
  HostName xxx.xxx.xxx.xx

Running the tests

To run the tests, run the following command (within this directory):

rake serverspec

or just

rake

More information on how to create serverspec tests can be found here:

http://serverspec.org/tutorial.html

There's a list of useful Resource Types here that you can use for testing:

http://serverspec.org/resource_types.html

You can’t perform that action at this time.