This repository has been archived by the owner on Mar 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from danieldreier/beaker_tests
Add basic beaker tests
- Loading branch information
Showing
23 changed files
with
505 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ pkg | |
spec/fixtures | ||
.rspec_system | ||
.vagrant | ||
log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Testing | ||
======= | ||
|
||
Tests on the puppet-puppet module can be run via `rake`. | ||
|
||
Run beaker acceptance tests: | ||
``` | ||
BEAKER_destroy=no BEAKER_provision=no rake acceptance | ||
``` | ||
|
||
Run beaker acceptance tests on debian 7: | ||
``` | ||
BEAKER_set=debian-73-x64 BEAKER_destroy=no BEAKER_provision=no rake acceptance | ||
``` | ||
See spec/acceptance/nodesets for a list of possible node names; use the filename without .yml. | ||
|
||
Run rspec-puppet tests: | ||
(note that these are run automatically by travis CI on pull requests) | ||
``` | ||
rake spec | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
require 'spec_helper_acceptance' | ||
|
||
describe 'agent', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do | ||
context 'with default parameters' do | ||
it 'should run with no errors' do | ||
pp = <<-EOS | ||
class { 'puppet::agent': } | ||
EOS | ||
|
||
# Run it twice and test for idempotency | ||
apply_manifest(pp, :catch_failures => true) | ||
expect(apply_manifest(pp, :catch_failures => true).exit_code).to be_zero | ||
end | ||
end | ||
|
||
# context 'running as service' do | ||
# it 'should run with no errors' do | ||
# pp = <<-EOS | ||
# class { 'puppet::agent': | ||
# method => 'service', | ||
# } | ||
# EOS | ||
|
||
# # Run it twice and test for idempotency | ||
# apply_manifest(pp, :catch_failures => true) | ||
# expect(apply_manifest(pp, :catch_failures => true).exit_code).to be_zero | ||
# end | ||
# | ||
# describe service('puppet') do | ||
# it { | ||
# should be_enabled | ||
# } | ||
# it { | ||
# should be_running | ||
# } | ||
# end | ||
# end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
centos-59-x64: | ||
roles: | ||
- master | ||
platform: el-5-x86_64 | ||
box : centos-59-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-59-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level: debug | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
HOSTS: | ||
centos-64-x64: | ||
roles: | ||
- master | ||
- database | ||
- dashboard | ||
platform: el-6-x86_64 | ||
box : centos-64-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level: debug | ||
type: pe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
centos-64-x64: | ||
roles: | ||
- master | ||
platform: el-6-x86_64 | ||
box : centos-64-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level: debug | ||
type: git |
Oops, something went wrong.