15fb00c9f7
This adds a basic test to run the standard 1 node setup until it succeeds. This also fixes a bug with the connection validation facilities. Before this patch we would keep retrying the connection to PuppetDB until the timeout expired, this patch fixes that bug making provisioning faster and well, more reliable. I've also increased the timeout as some systems take longer than 15 seconds for PuppetDB to start. Signed-off-by: Ken Barber <ken@bob.sh>
23 lines
673 B
Ruby
23 lines
673 B
Ruby
require 'rspec-system/spec_helper'
|
|
require 'rspec-system-puppet/helpers'
|
|
|
|
RSpec.configure do |c|
|
|
# Project root for the firewall code
|
|
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
|
|
|
# Enable colour in Jenkins
|
|
c.tty = true
|
|
|
|
# This is where we 'setup' the nodes before running our tests
|
|
c.system_setup_block = proc do
|
|
# TODO: find a better way of importing this into this namespace
|
|
include RSpecSystemPuppet::Helpers
|
|
|
|
# Install puppet
|
|
puppet_install
|
|
puppet_master_install
|
|
|
|
# Copy this module into the module path of the test node
|
|
puppet_module_install(:source => proj_root, :module_name => 'puppetdb')
|
|
end
|
|
end
|