Correct rally::settings spec test

This patch aim to fix following issues:
 - wrong spec test filename
 - syntax error
 - wrong local variable

Change-Id: I20d9854caa029af1a30967b380354f9e81f4cb89
This commit is contained in:
Xingchao
2016-05-18 07:34:41 +08:00
committed by Xingchao Yu
parent c8864c0ecf
commit 3cb6b7bd9f

View File

@@ -9,7 +9,7 @@ describe 'rally::settings' do
let :rally_settings_params do
{
:openstack_client_http_timeout => 180.0
:openstack_client_http_timeout => 180.0,
:cirros_img_url => 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img',
:resource_deletion_timeout => 600,
:project_domain => 'default',
@@ -30,7 +30,7 @@ describe 'rally::settings' do
end
shared_examples_for 'with all parameters' do
before { params.merge!( rally_cinder_params ) }
before { params.merge!( rally_settings_params ) }
it 'configures rally settings with all parameters' do
is_expected.to contain_rally_config('DEFAULT/openstack_client_http_timeout').with(:value => 180.0)
is_expected.to contain_rally_config('image/cirros_img_url').with(:value => 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img')