
This patch aim to update our specs test in order to work with the rspec-puppet release 2.0.0, in the mean time, we update rspec syntax order to be prepared for rspec 3.x move. In details: * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0 * Use shared_examples "a Puppet::Error" for puppet::error tests * * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x) * * Fix spec tests for rspec-puppet 2.0.0 * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper) Change-Id: I172439c6ed185bb38b325b2524cab1475cdc7504
14 lines
681 B
Ruby
14 lines
681 B
Ruby
require 'spec_helper'
|
|
describe 'nova::compute::ironic' do
|
|
|
|
it 'configures ironic in nova.conf' do
|
|
is_expected.to contain_nova_config('ironic/admin_username').with_value('admin')
|
|
is_expected.to contain_nova_config('ironic/admin_password').with_value('ironic')
|
|
is_expected.to contain_nova_config('ironic/admin_url').with_value('http://127.0.0.1:35357/v2.0')
|
|
is_expected.to contain_nova_config('ironic/admin_tenant_name').with_value('services')
|
|
is_expected.to contain_nova_config('ironic/api_endpoint').with_value('http://127.0.0.1:6385/v1')
|
|
is_expected.to contain_nova_config('DEFAULT/compute_driver').with_value('nova.virt.ironic.IronicDriver')
|
|
end
|
|
|
|
end
|