GithubHelp home page GithubHelp logo

tritondatacenter / lx-brand-image-tests Goto Github PK

View Code? Open in Web Editor NEW
2.0 16.0 4.0 185 KB

Serverspec tests used to validate lx-brand images

Home Page: https://docs.joyent.com/images/container-native-linux

License: Mozilla Public License 2.0

Ruby 80.96% Shell 19.04%

lx-brand-image-tests's Introduction

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

lx-brand-image-tests's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lx-brand-image-tests's Issues

Test basic package commands

This relates to TritonDataCenter/smartos-live#596

We should create some tests to ensure basic package commands work.

For Debian and Ubuntu:

  • apt-get update
  • apt-get upgrade
  • apt-get install foo
  • apt-get remove foo

CentOS:

  • yum update
  • yum install
  • etc.

Also tests for Alpine using apk

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.