-
Notifications
You must be signed in to change notification settings - Fork 567
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 #239 from petems/refactor_to_use_beaker
Refactor acceptance tests to use beaker-rspec
- Loading branch information
Showing
26 changed files
with
217 additions
and
258 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
require 'spec_helper_acceptance' | ||
|
||
describe 'jenkins class' do | ||
|
||
context 'default parameters' do | ||
it 'should work with no errors' do | ||
pp = <<-EOS | ||
class {'jenkins': | ||
cli => true, | ||
} | ||
EOS | ||
|
||
# Run it twice and test for idempotency | ||
apply_manifest(pp, :catch_failures => true) | ||
apply_manifest(pp, :catch_changes => true) | ||
end | ||
|
||
describe port(8080) do | ||
it { | ||
sleep(10) # Jenkins takes a while to start up | ||
should be_listening | ||
} | ||
end | ||
|
||
describe file('/usr/share/jenkins/jenkins-cli.jar') do | ||
it { should be_file } | ||
end | ||
|
||
describe service('jenkins') do | ||
it { should be_running } | ||
it { should be_enabled } | ||
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,10 @@ | ||
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: | ||
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,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-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,10 @@ | ||
HOSTS: | ||
debian-70rc1-x64: | ||
roles: | ||
- master | ||
platform: debian-70rc1-x64 | ||
box : debian-70rc1-x64-vbox4210-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-70rc1-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,11 @@ | ||
HOSTS: | ||
debian-73-x64: | ||
roles: | ||
- master | ||
platform: debian-7-amd64 | ||
box : debian-73-x64-virtualbox-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-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,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 @@ | ||
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 |
16 changes: 16 additions & 0 deletions
16
spec/acceptance/nodesets/ubuntu-server-12.04-am65-fog-aws.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,16 @@ | ||
HOSTS: | ||
ubuntu-12.04-amd64-fog-aws: | ||
roles: | ||
- master | ||
platform: ubuntu-12.04-amd64 | ||
image_id: ami-20bd1f57 # Ubuntu 12.04 | ||
flavor_id: t1.micro | ||
cloud_provider: AWS | ||
# Amazon AMI uses ubuntu user | ||
amazon_user: ubuntu | ||
aws_region: 'eu-west-1' | ||
aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'] | ||
aws_secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'] | ||
hypervisor : fog | ||
CONFIG: | ||
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,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,11 @@ | ||
HOSTS: | ||
ubuntu-server-1404-x64: | ||
roles: | ||
- master | ||
platform: ubuntu-14.04-amd64 | ||
box : puppetlabs/ubuntu-14.04-64-nocm | ||
box_url : https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level : debug | ||
type: git |
Oops, something went wrong.