Skip to content

pass-by-value/halite-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

###Halite Testing:

SLS files for setting up Halite integration setup. This document describes general steps in running Halite's functional tests.

####What it does:

Install Halite, Salt Master and Salt Cloud related files.

The top file calls salt-cloud.sls (TODO: should be split into multiple files) which installs Salt Master (salt-master) on the minion. Salt Cloud files are also installed on the minion. The provided example (Rackspace) config file sets the master dynamically. A state tree is setup on the newly installed master (currently Halite tests install apache server on the minion) so it can install actual testing deps.

Finally Halite is installed and compiled from source. Any related deps are also installed.

There are more State (sls) files that deal with creation and deletion of minions.

####Installation Steps:

  • Make sure that your /srv/salt has the state tree provided by this project
  • Change authentication credentials as shown by the example pillar data

####Running:

  • There is only one file that needs to run (run_test.sh) that file will
    1. Create the master for test
    2. Install the state tree on the newly created master
    3. Create minion that connects to the newly created master
    4. Runs highstate on the newly created master so that Apache is installed on the minion
    5. Runs tests
    6. Copies the results to $HOME/jenkins
    7. Delete minion
    8. Delete master created for test

About

SLS files needed for automating halite testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published