summaryrefslogtreecommitdiff
path: root/spec/acceptance/beaker_helper.rb
diff options
context:
space:
mode:
authorJohn Duarte <john.duarte@puppetlabs.com>2014-05-21 18:17:31 -0700
committerJohn Duarte <john.duarte@puppetlabs.com>2014-05-21 18:17:31 -0700
commit2f875839afe843bd8a9f320d553fb3a28a7420f8 (patch)
tree681e6f1b03ca99eed51ad2bec40b9a3b192ee48f /spec/acceptance/beaker_helper.rb
parent9057fca3a6862e699c153f3607e57f2360552eb7 (diff)
parent0d9e938e92a25673c3712866e2d2108a255b67d5 (diff)
Merge pull request #145 from hunner/fix_beaker_tests
Update specs and fix FM-1361
Diffstat (limited to 'spec/acceptance/beaker_helper.rb')
-rw-r--r--spec/acceptance/beaker_helper.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/acceptance/beaker_helper.rb b/spec/acceptance/beaker_helper.rb
new file mode 100644
index 0000000..2bf663b
--- /dev/null
+++ b/spec/acceptance/beaker_helper.rb
@@ -0,0 +1,18 @@
+test_name "Installing Puppet and vcsrepo module" do
+ step 'install puppet' do
+ if @options[:provision]
+ # This will fail if puppet is already installed, ie --no-provision
+ if hosts.first.is_pe?
+ install_pe
+ else
+ install_puppet
+ end
+ end
+ end
+ step 'install module' do
+ proj_root = File.expand_path(File.join(File.dirname(__FILE__),'..','..'))
+ # Waiting on release of puppet_module_install in beaker
+ #puppet_module_install(:source => proj_root, :module_name => 'vcsrepo')
+ scp_to(hosts, proj_root, File.join(hosts.first['distmoduledir'], 'vcsrepo'))
+ end
+end