Skip to content

Commit

Permalink
Merge pull request #55 from petems/fix_beaker_hosts
Browse files Browse the repository at this point in the history
Fixes Beaker hosts and test
  • Loading branch information
tobru committed Feb 18, 2016
2 parents 4a98ff6 + b29147d commit 0953992
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
13 changes: 11 additions & 2 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
# Using puppet_apply as a helper
it 'should work idempotently with no errors' do
pp = <<-EOS
class { 'gitlab': }
class { 'gitlab':
external_url => "http://${::fqdn}",
}
EOS

# Run it twice and test for idempotency
Expand All @@ -19,8 +21,15 @@ class { 'gitlab': }
end

describe service('gitlab') do
it { is_expected.to be_enabled }
it { is_expected.to be_running }
end

it 'allows http connection on port 8080' do
shell 'sleep 15' # give it some time to start up
describe command('curl 0.0.0.0:80/users/sign_in') do
its(:stdout) { should match /GitLab/ }
end
end

end
end
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
HOSTS:
centos-65-x64:
centos-66-x64:
roles:
- master
platform: el-6-x86_64
box: puppetlabs/centos-6.5-64-nocm
box_url: https://vagrantcloud.com/puppetlabs/boxes/centos-6.5-64-nocm
hypervisor: vagrant

box: puppetlabs/centos-6.6-64-nocm
box_url: https://vagrantcloud.com/puppetlabs/boxes/centos-6.6-64-nocm
hypervisor : vagrant
CONFIG:
log_level: verbose
log_level: debug
type: foss
5 changes: 2 additions & 3 deletions spec/acceptance/nodesets/centos-7-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ HOSTS:
roles:
- master
platform: el-7-x86_64
box: chef/centos-7.0
box_url: https://vagrantcloud.com/chef/boxes/centos-7.0
box: puppetlabs/centos-7.0-64-nocm
box_url: https://vagrantcloud.com/puppetlabs/boxes/centos-7.0-64-nocm
hypervisor: vagrant

CONFIG:
log_level: verbose
type: foss

0 comments on commit 0953992

Please sign in to comment.