puppet-horizon/spec/spec_helper.rb
Marcos Fermin Lobo 7385841442 OPENSTACK_KEYSTONE_BACKEND should be configurable
In local_settings.py.erb, OPENSTACK_KEYSTONE_BACKEND is hardcoded.

We needed a new parameter in the module in order to change this to be
configurable.

Change-Id: I3f0859cd0e73012f444191797afc076beb68d7e9
Closes-Bug: #1575227
2016-07-18 20:32:45 +03:00

19 lines
600 B
Ruby

require 'puppetlabs_spec_helper/module_spec_helper'
require 'shared_examples'
require 'puppet-openstack_spec_helper/defaults'
require 'rspec-puppet-facts'
include RspecPuppetFacts
RSpec.configure do |c|
c.alias_it_should_behave_like_to :it_configures, 'configures'
c.alias_it_should_behave_like_to :it_raises, 'raises'
end
def verify_concat_fragment_contents(subject, title, expected_lines)
content = subject.resource('concat::fragment', title).send(:parameters)[:content]
expect(expected_lines & content.split("\n")).to eq(expected_lines)
end
at_exit { RSpec::Puppet::Coverage.report! }