forked from redhat-openstack/openstack-puppet-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
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 redhat-openstack#234 from apenney/add-beaker
Add beaker framework.
- Loading branch information
Showing
10 changed files
with
116 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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: | ||
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,10 @@ | ||
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: | ||
type: foss |
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,10 @@ | ||
HOSTS: | ||
centos-65-x64: | ||
roles: | ||
- master | ||
platform: el-6-x86_64 | ||
box : centos-65-x64-vbox436-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: foss |
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 @@ | ||
centos-64-x64.yml |
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,10 @@ | ||
HOSTS: | ||
fedora-18-x64: | ||
roles: | ||
- master | ||
platform: fedora-18-x86_64 | ||
box : fedora-18-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/fedora-18-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: foss |
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,10 @@ | ||
HOSTS: | ||
sles-11-x64.local: | ||
roles: | ||
- master | ||
platform: sles-11-x64 | ||
box : sles-11sp1-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: foss |
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,10 @@ | ||
HOSTS: | ||
ubuntu-server-10044-x64: | ||
roles: | ||
- master | ||
platform: ubuntu-10.04-amd64 | ||
box : ubuntu-server-10044-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: foss |
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,10 @@ | ||
HOSTS: | ||
ubuntu-server-12042-x64: | ||
roles: | ||
- master | ||
platform: ubuntu-12.04-amd64 | ||
box : ubuntu-server-12042-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: foss |
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,10 @@ | ||
require 'spec_helper_acceptance' | ||
|
||
describe 'unsupported distributions and OSes', :if => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do | ||
it 'should fail' do | ||
pp = <<-EOS | ||
class { 'mysql::server': } | ||
EOS | ||
expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/unsupported osfamily/i) | ||
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,33 @@ | ||
require 'beaker-rspec' | ||
|
||
UNSUPPORTED_PLATFORMS = [] | ||
|
||
unless ENV['RS_PROVISION'] == 'no' | ||
hosts.each do |host| | ||
# Install Puppet | ||
if host.is_pe? | ||
install_pe | ||
else | ||
install_package host, 'rubygems' | ||
on host, 'gem install puppet --no-ri --no-rdoc' | ||
on host, "mkdir -p #{host['distmoduledir']}" | ||
end | ||
end | ||
end | ||
|
||
RSpec.configure do |c| | ||
# Project root | ||
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..')) | ||
|
||
# Readable test descriptions | ||
c.formatter = :documentation | ||
|
||
# Configure all nodes in nodeset | ||
c.before :suite do | ||
# Install module and dependencies | ||
puppet_module_install(:source => proj_root, :module_name => 'stdlib') | ||
hosts.each do |host| | ||
shell('/bin/touch /etc/puppet/hiera.yaml') | ||
end | ||
end | ||
end |