https://github.com/tritondatacenter/freebsd-image-tests
Test suite for FreeBSD kvm images
https://github.com/tritondatacenter/freebsd-image-tests
freebsd serverspec
Last synced: 20 days ago
JSON representation
Test suite for FreeBSD kvm images
- Host: GitHub
- URL: https://github.com/tritondatacenter/freebsd-image-tests
- Owner: TritonDataCenter
- License: mpl-2.0
- Created: 2014-11-05T19:56:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-26T14:20:48.000Z (almost 8 years ago)
- Last Synced: 2024-04-12T04:14:37.799Z (about 1 year ago)
- Topics: freebsd, serverspec
- Language: Ruby
- Size: 40 KB
- Stars: 1
- Watchers: 14
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Overview
These are the tests used to validate FreeBSD KVM images before being released to the images.joyent.com and the Joyent Public Cloud and images.joyent.com.
These tests are are based on [Serverspec](http://serverspec.org).
This test suite is used in conjunction with [mi-freebsd-10](https://github.com/joyent/mi-freebsd-10)
**Note**: These tests are not yet compatible with Serverspec V2
## 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:
freebsd-10:
:roles:
- freebsd
:name: FreeBSD 10
:base_version: 20141105
:doc_url: http://wiki.joyent.com/jpc2/FreebsdAnd an example `~/.ssh/config` file:
freebsd-10
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