X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fkeystone%2Fspec%2Fclasses%2Fkeystone_cron_token_flush_spec.rb;h=88e1fd519347593f99035c70676419d89c556faf;hb=b0c5fa1bf27e28d72c80d56c0c84f7d301aaaac6;hp=597042b363c6b70807f9a5d3e2aa0e230bde6fa0;hpb=4631045ebb77ee8622f6fa09277a50c372bcc02e;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/keystone/spec/classes/keystone_cron_token_flush_spec.rb b/3rdparty/modules/keystone/spec/classes/keystone_cron_token_flush_spec.rb index 597042b36..88e1fd519 100644 --- a/3rdparty/modules/keystone/spec/classes/keystone_cron_token_flush_spec.rb +++ b/3rdparty/modules/keystone/spec/classes/keystone_cron_token_flush_spec.rb @@ -8,7 +8,7 @@ describe 'keystone::cron::token_flush' do describe 'with default parameters' do it 'configures a cron' do - should contain_cron('keystone-manage token_flush').with( + is_expected.to contain_cron('keystone-manage token_flush').with( :ensure => 'present', :command => 'keystone-manage token_flush >>/var/log/keystone/keystone-tokenflush.log 2>&1', :environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh', @@ -30,7 +30,7 @@ describe 'keystone::cron::token_flush' do end it 'configures a cron with delay' do - should contain_cron('keystone-manage token_flush').with( + is_expected.to contain_cron('keystone-manage token_flush').with( :ensure => 'present', :command => 'sleep `expr ${RANDOM} \\% 600`; keystone-manage token_flush >>/var/log/keystone/keystone-tokenflush.log 2>&1', :environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh', @@ -52,7 +52,7 @@ describe 'keystone::cron::token_flush' do end it 'configures a cron with delay' do - should contain_cron('keystone-manage token_flush').with( + is_expected.to contain_cron('keystone-manage token_flush').with( :ensure => 'absent', :command => 'keystone-manage token_flush >>/var/log/keystone/keystone-tokenflush.log 2>&1', :environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh',