Skip to content

isabella232/centos-image-tests

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

These are the tests used to validate images before being released to the Joyent Public Cloud.

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:
    - centos
  :name: CentOS 6.6
  :version: 20150128
  :doc_url: https://docs.joyent.com/images/linux/centos

centos-7:
  :roles:
    - centos
  :name: CentOS 7.0-1406
  :version: 20150128
  :doc_url: https://docs.joyent.com/images/linux/centos

And an example ~/.ssh/config file:

Host centos-7
  HostName XX.X.XXX.XXX
  User root

Host centos-6
  HostName XX.X.XXX.XXX
  User root

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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 67.7%
  • Shell 32.3%