Giter Club home page Giter Club logo

puppet-acceptance's Introduction

Running the Distributed Test Harness

Pre-flight checks:

  - You will need at least one System Undet Test (SUT) host, physical or virtual is fine.  The machine will need a properly configured network.
  - On the your SUT, you must configure pass through ssh auth for the root user.
  - The SUT have have the "ntpdate" binary installed
  - GIT installs: installing from a git repository then you must have git, ruby, rdoc installed on your SUT. 
  - PE installs: PE will install git, ruby, rdoc.

  - The harness need not be ran as root.
  - The machine that will drive the tests must have ruby installed, inclduing the following ruby gems:
     rubygems
     net-ssh 
     net-scp
     systemu


Prepare a config file:

The test harness is configuration driven; the config file is yaml formated.  A basic config file sufficent for running tests against a single host:

HOSTS:
  hostname_of_test_machine:
    roles:
      - master
      - agent
    platform: centos-5-i386
CONFIG:
  rubyver: ruby18


Here we have the machine "hostname_of_test_machine", a Centos 5.x 32 bit box,, that will serve as a Pupppet master and Agent.

This represents a very basic config; more complex configs can be found under cfg_examples/.


Steps to run the acceptance tests:


./systest.rb -c your_cfg --type git -p 2.6.next  -f 1.5.8 -t tests/acceptance --debug

Results will be written to log/latest/summary.txt and runlog


Special topic branch checkout:
./systest.rb -c 2centos_64_386 --type git -p https://github.com/SomeDude/puppet/tree/ticket/2.6.next/6856-dangling-symlinks -f 1.5.8 -t tests/acceptance/ticket_6856_manage_not_work_with_symlinks.rb

puppet-acceptance's People

Contributors

bodepd avatar chromatic avatar djm68 avatar haus avatar jamtur01 avatar jes5199 avatar jhelwig avatar justinstoller avatar markusq avatar nanliu avatar nicklewis avatar reinh avatar slippycheeze avatar stahnma avatar

Stargazers

 avatar

Watchers

 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.