describe 'keystone::service' do
describe "with default parameters" do
- it { should contain_service('keystone').with(
- :ensure => 'running',
+ it { is_expected.to contain_service('keystone').with(
+ :ensure => nil,
:enable => true,
:hasstatus => true,
:hasrestart => true
) }
- it { should_not contain_exec('validate_keystone_connection') }
+ it { is_expected.to_not contain_exec('validate_keystone_connection') }
end
describe "with validation on" do
}
end
- it { should contain_service('keystone').with(
- :ensure => 'running',
+ it { is_expected.to contain_service('keystone').with(
+ :ensure => nil,
:enable => true,
:hasstatus => true,
:hasrestart => true
) }
- it { should contain_exec('validate_keystone_connection') }
+ it { is_expected.to contain_exec('validate_keystone_connection') }
end
end