Skip to content

Commit

Permalink
Update beaker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
solarkennedy committed Aug 25, 2015
1 parent 8cd0af1 commit 961da04
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 73 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ source "https://rubygems.org"
group :development do
gem "beaker", "> 2.0.0"
gem "beaker-rspec", ">= 5.1.0"
gem "beaker-puppet_install_helper"
gem "pry"
gem "puppet-blacksmith"
gem "serverspec"
Expand Down
90 changes: 57 additions & 33 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (2.2.8)
activesupport (4.2.1)
CFPropertyList (2.3.1)
activesupport (4.2.4)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
Expand All @@ -13,13 +13,14 @@ GEM
addressable (>= 2.3.1)
extlib (>= 0.9.15)
multi_json (>= 1.0.0)
aws-sdk (1.64.0)
aws-sdk-v1 (= 1.64.0)
aws-sdk-v1 (1.64.0)
aws-sdk (1.65.0)
aws-sdk-v1 (= 1.65.0)
aws-sdk-v1 (1.65.0)
json (~> 1.4)
nokogiri (>= 1.4.4)
beaker (2.14.1)
beaker (2.20.0)
aws-sdk (~> 1.57)
beaker-answers (~> 0.0)
docker-api
fission (~> 0.4)
fog (~> 1.25)
Expand All @@ -30,36 +31,43 @@ GEM
minitest (~> 5.4)
net-scp (~> 1.2)
net-ssh (~> 2.9)
open_uri_redirections (~> 0.2.1)
rbvmomi (~> 1.8)
rsync (~> 1.0.9)
stringify-hash (~> 0.0)
unf (~> 0.1)
beaker-rspec (5.1.0)
beaker-answers (0.0.0)
require_all (~> 1.3.2)
stringify-hash (~> 0.0.0)
beaker-puppet_install_helper (0.3.1)
beaker (~> 2.0)
beaker-rspec (5.2.0)
beaker (~> 2.0)
rspec
serverspec (~> 2)
specinfra (~> 2)
builder (3.2.2)
coderay (1.1.0)
diff-lcs (1.2.5)
docker-api (1.21.4)
docker-api (1.22.2)
excon (>= 0.38.0)
json
domain_name (0.5.24)
unf (>= 0.0.5, < 1.0.0)
excon (0.45.3)
excon (0.45.4)
extlib (0.9.16)
facter (2.4.4)
CFPropertyList (~> 2.2.6)
facter (1.7.6)
faraday (0.9.1)
multipart-post (>= 1.2, < 3)
fission (0.5.0)
CFPropertyList (~> 2.2)
fog (1.31.0)
fog (1.33.0)
fog-atmos
fog-aws (~> 0.0)
fog-aws (>= 0.6.0)
fog-brightbox (~> 0.4)
fog-core (~> 1.30)
fog-ecloud
fog-core (~> 1.32)
fog-dynect
fog-ecloud (= 0.1.1)
fog-google (>= 0.0.2)
fog-json
fog-local
Expand All @@ -80,26 +88,30 @@ GEM
fog-atmos (0.1.0)
fog-core
fog-xml
fog-aws (0.4.0)
fog-aws (0.7.5)
fog-core (~> 1.27)
fog-json (~> 1.0)
fog-xml (~> 0.1)
ipaddress (~> 0.8)
fog-brightbox (0.7.1)
fog-brightbox (0.9.0)
fog-core (~> 1.22)
fog-json
inflecto (~> 0.0.2)
fog-core (1.30.0)
fog-core (1.32.1)
builder
excon (~> 0.45)
formatador (~> 0.2)
mime-types
net-scp (~> 1.1)
net-ssh (>= 2.1.3)
fog-ecloud (0.1.2)
fog-dynect (0.0.2)
fog-core
fog-json
fog-xml
fog-ecloud (0.1.1)
fog-core
fog-xml
fog-google (0.0.5)
fog-google (0.0.7)
fog-core
fog-json
fog-xml
Expand All @@ -112,7 +124,7 @@ GEM
fog-core (~> 1.27)
fog-json (~> 1.0)
fog-xml (~> 0.1)
fog-profitbricks (0.0.3)
fog-profitbricks (0.0.5)
fog-core
fog-xml
nokogiri
Expand All @@ -130,7 +142,7 @@ GEM
fog-serverlove (0.1.2)
fog-core
fog-json
fog-softlayer (0.4.6)
fog-softlayer (0.4.7)
fog-core
fog-json
fog-storm_on_demand (0.1.1)
Expand Down Expand Up @@ -160,16 +172,17 @@ GEM
multi_json (~> 1.10)
retriable (~> 1.4)
signet (~> 0.6)
googleauth (0.4.1)
googleauth (0.4.2)
faraday (~> 0.9)
jwt (~> 1.4)
logging (~> 2.0)
memoist (~> 0.12)
multi_json (= 1.11)
multi_json (~> 1.11)
signet (~> 0.6)
hiera (1.3.4)
json_pure
hocon (0.9.0)
hiera-puppet-helper (1.0.1)
hocon (0.9.3)
http-cookie (1.0.2)
domain_name (~> 0.5)
i18n (0.7.0)
Expand All @@ -178,7 +191,7 @@ GEM
ipaddress (0.8.0)
json (1.8.3)
json_pure (1.8.2)
jwt (1.5.0)
jwt (1.5.1)
launchy (2.4.3)
addressable (~> 2.3)
little-plugger (1.1.3)
Expand All @@ -190,17 +203,19 @@ GEM
method_source (0.8.2)
mime-types (2.6.1)
mini_portile (0.6.2)
minitest (5.7.0)
minitest (5.8.0)
mocha (1.1.0)
metaclass (~> 0.0.1)
multi_json (1.11.0)
multi_json (1.11.2)
multipart-post (2.0.0)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (2.9.2)
net-telnet (0.1.1)
netrc (0.10.3)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
open_uri_redirections (0.2.1)
pry (0.10.1)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
Expand All @@ -226,6 +241,7 @@ GEM
builder
nokogiri (>= 1.4.1)
trollop
require_all (1.3.2)
rest-client (1.8.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 3.0)
Expand All @@ -249,36 +265,44 @@ GEM
rspec
rspec-support (3.1.2)
rsync (1.0.9)
serverspec (2.17.1)
serverspec (2.22.0)
multi_json
rspec (~> 3.0)
rspec-its
specinfra (~> 2.32)
specinfra (~> 2.42)
sfl (2.2)
signet (0.6.1)
addressable (~> 2.3)
extlib (~> 0.9)
faraday (~> 0.9)
jwt (~> 1.5)
multi_json (~> 1.10)
slop (3.6.0)
specinfra (2.34.9)
specinfra (2.42.0)
net-scp
net-ssh
net-ssh (~> 2.7)
net-telnet
sfl
stringify-hash (0.0.2)
thread_safe (0.3.5)
trollop (2.1.2)
tzinfo (1.2.2)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.1)
vagrant-wrapper (2.0.2)
vagrant-wrapper (2.0.3)

PLATFORMS
ruby

DEPENDENCIES
beaker (> 2.0.0)
beaker-puppet_install_helper
beaker-rspec (>= 5.1.0)
hiera
hiera-puppet-helper
json
pry
puppet (~> 3.7.0)
puppet-blacksmith
Expand Down
3 changes: 3 additions & 0 deletions spec/acceptance/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ HOSTS:
platform: ubuntu-12.04-x64
image: solarkennedy/ubuntu-12.04-puppet
hypervisor: docker
#docker_cmd: /usr/sbin/sshd -D
docker_cmd: '["/sbin/init"]'
docker_preserve_image: true
CONFIG:
type: foss
3 changes: 2 additions & 1 deletion spec/acceptance/standard_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
it 'should work with no errors based on the example' do
pp = <<-EOS
class { 'consul':
version => '0.5.2',
config_hash => {
'datacenter' => 'east-aws',
'data_dir' => '/opt/consul',
Expand All @@ -31,7 +32,7 @@ class { 'consul':
end

describe command('consul version') do
it { should return_stdout /Consul v0\.4\.1/ }
its(:stdout) { should match /Consul v0\.5\.2/ }
end

end
Expand Down
7 changes: 3 additions & 4 deletions spec/acceptance/ui_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
it 'should work with no errors based on the UI example' do
pp = <<-EOS
class { 'consul':
version => '0.5.2',
config_hash => {
'datacenter' => 'east-aws',
'data_dir' => '/opt/consul',
Expand All @@ -29,17 +30,15 @@ class { 'consul':
end

describe file('/opt/consul/ui') do
it { should be_linked_to '/opt/consul/0.4.1_web_ui' }
it { should be_linked_to '/opt/consul/0.5.2_web_ui' }
end

describe service('consul') do
it { should be_enabled }
end

it { should contain_service('mysql-server').with_ensure('present') }

describe command('consul version') do
it { should return_stdout /Consul v0\.4\.1/ }
its(:stdout) { should match /Consul v0\.5\.2/ }
end

end
Expand Down
11 changes: 5 additions & 6 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
require 'beaker-rspec'
require 'beaker-rspec/spec_helper'
require 'beaker-rspec/helpers/serverspec'
require 'beaker/puppet_install_helper'

run_puppet_install_helper unless ENV['BEAKER_provision'] == 'no'

#hosts.each do |host|
# # Install Puppet
# install_puppet
#end
#
RSpec.configure do |c|
# Project root
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
Expand Down
16 changes: 0 additions & 16 deletions spec/spec_helper_system.rb

This file was deleted.

13 changes: 0 additions & 13 deletions spec/system/basic_spec.rb

This file was deleted.

0 comments on commit 961da04

Please sign in to comment.