Skip to content

Commit

Permalink
(BKR-945) Add acceptance tests to beaker-pe
Browse files Browse the repository at this point in the history
Previous to this commit, we relied on tests that existed within the
beaker repo to test functionality that actually resided within
beaker-pe. This change adds those tests to beaker-pe, so they can be
removed beaker itself.
  • Loading branch information
tvpartytonight committed Sep 27, 2016
1 parent 84a5b56 commit cf0bf44
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions acceptance/lib/test_helpers.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'beaker-pe'
1 change: 1 addition & 0 deletions acceptance/pre_suite/install.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
install_pe
21 changes: 21 additions & 0 deletions acceptance/tests/install_smoke_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
test_name "puppet install smoketest"

step 'puppet install smoketest: verify \'facter --help\' can be successfully called on all hosts'
hosts.each do |host|
on host, facter('--help')
end

step 'puppet install smoketest: verify \'hiera --help\' can be successfully called on all hosts'
hosts.each do |host|
on host, hiera('--help')
end

step 'puppet install smoketest: verify \'puppet help\' can be successfully called on all hosts'
hosts.each do |host|
on host, puppet('help')
end

step "puppet install smoketest: can get a configprint of the puppet server setting on all hosts"
hosts.each do |host|
assert(!host.puppet['server'].empty?, "can get a configprint of the puppet server setting")
end

0 comments on commit cf0bf44

Please sign in to comment.