https://github.com/mizzy/rspec-lxc-test-box
https://github.com/mizzy/rspec-lxc-test-box
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mizzy/rspec-lxc-test-box
- Owner: mizzy
- Created: 2013-03-23T13:08:24.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-24T12:10:03.000Z (about 13 years ago)
- Last Synced: 2025-03-30T13:51:14.077Z (about 1 year ago)
- Language: Ruby
- Size: 101 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rspec-lxc-test-box
**Caution!** I've re-writed this as a rubygem "serverspec".
See: https://github.com/mizzy/serverspec
This is an example for testing containers created by [puppet-lxc-test-box](https://github.com/mizzy/puppet-lxc-test-box).
You can write test code like this.
```ruby
require 'container_spec_helper'
describe 'nrpe' do
it { should be_installed }
it { should be_enabled }
it { should be_running }
end
describe 'nagios-plugins-all' do
it { should be_installed }
end
describe '/etc/nagios/nrpe.cfg' do
it { should be_file }
it { should contain 'server_port=5666' }
end
describe '/etc/nrpe.d/01base.cfg' do
it { should be_file }
end
describe 'port 5666' do
it { should be_listening }
end
```