chef-partners/busser-serverspec-cisco

Name: busser-serverspec-cisco

Owner: Chef Partners

Description: A fork of busser-serverspec with support for Cisco platforms

Created: 2015-09-16 20:34:00.0

Updated: 2015-09-16 20:56:51.0

Pushed: 2015-09-28 20:08:40.0

Homepage: null

Size: 208

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Busser::RunnerPlugin::Serverspec

Gem Version Build Status Dependency Status Code Climate

A Busser runner plugin for Serverspec

Installation and Setup

Please read the Busser plugin usage page for more details.

Usage

Please put test files into [COOKBOOK]/test/integration/[SUITES]/serverspec/

test
`-- integration
    `-- default
        `-- serverspec
            |-- Gemfile
            |-- localhost
            |   `-- httpd_spec.rb
            `-- spec_helper.rb

Gemfile is optional. You can specify installing Serverspec version and install gems you need.

Note
File Matching

Globbing pattern to match files is "serverspec/*/*_spec.rb". You need to use "_spec.rb" (underscore), not "-spec.rb" (minus).

Specify Serverspec version

If you have to specify Serverspec version, you can use Gemfile. Example Gemfile:

ce 'https://rubygems.org'
'serverspec', '< 2.0'
Serverspec backend

It runs on a target server for testing after ssh log in it. So you need to specify set :backend, :exec not set :backend, :ssh (Serverspec v2). If you use Serverspec v1, you need to specify include SpecInfra::Helper::Exec not include SpecInfra::Helper::Ssh.

Development

Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make. For example:

  1. Fork the repo
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Authors

Created and maintained by HIGUCHI Daisuke (d-higuchi@creationline.com)

License

Apache 2.0 (see LICENSE)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.