Git Product home page Git Product logo

centos-image-tests's Introduction

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

centos-image-tests's People

Contributors

chorrell avatar nohyunho avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.