X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fkeystone%2Fspec%2Fdefines%2Fkeystone_resource_service_identity_spec.rb;h=18979635eb7801ef2d1d97a2d2fbdcc8f9d54a01;hb=71a236efd9f45828d875a0a5fd025108bb1dcada;hp=d7d0a62c5ac771ad5705e2c5fe883545c5249c67;hpb=4631045ebb77ee8622f6fa09277a50c372bcc02e;p=dsa-puppet.git diff --git a/3rdparty/modules/keystone/spec/defines/keystone_resource_service_identity_spec.rb b/3rdparty/modules/keystone/spec/defines/keystone_resource_service_identity_spec.rb index d7d0a62c..18979635 100644 --- a/3rdparty/modules/keystone/spec/defines/keystone_resource_service_identity_spec.rb +++ b/3rdparty/modules/keystone/spec/defines/keystone_resource_service_identity_spec.rb @@ -36,25 +36,25 @@ describe 'keystone::resource::service_identity' do required_params end - it { should contain_keystone_user(title).with( + it { is_expected.to contain_keystone_user(title).with( :ensure => 'present', :password => 'secrete', :email => 'neutron@localhost', :tenant => 'services', )} - it { should contain_keystone_user_role("#{title}@services").with( + it { is_expected.to contain_keystone_user_role("#{title}@services").with( :ensure => 'present', - :roles => 'admin', + :roles => ['admin'], )} - it { should contain_keystone_service(title).with( + it { is_expected.to contain_keystone_service(title).with( :ensure => 'present', :type => 'network', :description => 'neutron service', )} - it { should contain_keystone_endpoint("RegionOne/#{title}").with( + it { is_expected.to contain_keystone_endpoint("RegionOne/#{title}").with( :ensure => 'present', :public_url => 'http://7.7.7.7:9696', :internal_url => 'http://10.0.0.1:9696', @@ -66,7 +66,7 @@ describe 'keystone::resource::service_identity' do let :params do required_params.delete(:password) end - it { expect { should raise_error(Puppet::Error) } } + it { expect { is_expected.to raise_error(Puppet::Error) } } end end