Sha256: 0d2c8516715eafab50903e0c61a4d7e60f2ff32ce88953278d48b2a902baa37b
Contents?: true
Size: 988 Bytes
Versions: 2
Compression:
Stored size: 988 Bytes
Contents
require 'pathname' require 'beaker-rspec' require 'beaker/puppet_install_helper' run_puppet_install_helper RSpec.configure do |c| proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..')) modules_dir = Pathname.new("#{proj_root}/spec/fixtures/modules") c.before :suite do hosts.each do |host| # copy all fixtures module dirs to host (if any) modules_dir.each_child do |module_dir| unless File.symlink?(module_dir) copy_module_to(host, :source => module_dir.to_s, :module_name => module_dir.basename.to_s) end end # copy this main module to host copy_module_to(host, :source => proj_root, :module_name => '<%= module_name %>') end end end shared_examples "a idempotent resource" do it 'should apply without errors' do apply_manifest(manifest, :catch_failures => true) end it 'should apply a second time without changes' do apply_manifest(manifest, :catch_changes => true) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-magnum-4.1.1 | generator_files/spec/spec_helper_acceptance.rb.erb |
puppet-magnum-4.0.4 | generator_files/spec/spec_helper_acceptance.rb.erb |