Fix RSpec 3.x syntax
- 7 conversions
from: it { should ... }
to: it { is_expected.to ... }
Change-Id: I1e148b1a457e720e2ef61172cad477917d6498b4
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
@@ -15,7 +15,7 @@ describe 'cinder::volume::pure' do
|
||||
end
|
||||
|
||||
it 'configure pure volume driver' do
|
||||
should contain_cinder__backend__pure('DEFAULT')
|
||||
is_expected.to contain_cinder__backend__pure('DEFAULT')
|
||||
end
|
||||
end
|
||||
|
||||
@@ -28,7 +28,7 @@ describe 'cinder::volume::pure' do
|
||||
end
|
||||
|
||||
it 'configure pure volume driver' do
|
||||
should contain_cinder__backend__pure('DEFAULT').with({
|
||||
is_expected.to contain_cinder__backend__pure('DEFAULT').with({
|
||||
:pure_storage_protocol => 'iSCSI',
|
||||
:use_chap_auth => 'true'
|
||||
})
|
||||
@@ -41,7 +41,7 @@ describe 'cinder::volume::pure' do
|
||||
end
|
||||
|
||||
it 'configure pure volume driver' do
|
||||
should contain_cinder__backend__pure('DEFAULT').with({
|
||||
is_expected.to contain_cinder__backend__pure('DEFAULT').with({
|
||||
:pure_storage_protocol => 'FC'
|
||||
})
|
||||
end
|
||||
@@ -53,7 +53,7 @@ describe 'cinder::volume::pure' do
|
||||
end
|
||||
|
||||
it 'configure pure volume with additional configuration' do
|
||||
should contain_cinder__backend__pure('DEFAULT').with({
|
||||
is_expected.to contain_cinder__backend__pure('DEFAULT').with({
|
||||
:extra_options => {'pure_backend/param1' => {'value' => 'value1'}}
|
||||
})
|
||||
end
|
||||
|
||||
@@ -61,7 +61,7 @@ describe 'cinder::backend::pure' do
|
||||
end
|
||||
|
||||
it 'configure pure volume with additional configuration' do
|
||||
should contain_cinder__backend__pure('pure').with({
|
||||
is_expected.to contain_cinder__backend__pure('pure').with({
|
||||
:extra_options => {'pure_backend/param1' => {'value' => 'value1'}}
|
||||
})
|
||||
end
|
||||
|
||||
@@ -19,7 +19,7 @@ describe 'cinder::type_set' do
|
||||
describe 'by default' do
|
||||
let(:params){ default_params }
|
||||
it 'should have its execs' do
|
||||
should contain_exec('cinder type-key sith set monchichi=hippo').with(
|
||||
is_expected.to contain_exec('cinder type-key sith set monchichi=hippo').with(
|
||||
:command => 'cinder type-key sith set monchichi=hippo',
|
||||
:unless => "cinder extra-specs-list | grep -Eq '\\bsith\\b.*\\bmonchichi\\b.*\\bhippo\\b'",
|
||||
:environment => [
|
||||
@@ -36,7 +36,7 @@ describe 'cinder::type_set' do
|
||||
default_params.merge({:value => 'hippi'})
|
||||
}
|
||||
it 'should have its execs' do
|
||||
should contain_exec('cinder type-key sith set monchichi=hippi').with(
|
||||
is_expected.to contain_exec('cinder type-key sith set monchichi=hippi').with(
|
||||
:command => 'cinder type-key sith set monchichi=hippi',
|
||||
:unless => "cinder extra-specs-list | grep -Eq '\\bsith\\b.*\\bmonchichi\\b.*\\bhippi\\b'",
|
||||
:environment => [
|
||||
|
||||
Reference in New Issue
Block a user