2014-03-21 16:24:00 +11:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'keystone::service' do
|
|
|
|
|
|
|
|
describe "with default parameters" do
|
2015-03-15 16:32:35 +01:00
|
|
|
it { is_expected.to contain_service('keystone').with(
|
2014-03-21 16:24:00 +11:00
|
|
|
:ensure => 'running',
|
|
|
|
:enable => true,
|
|
|
|
:hasstatus => true,
|
|
|
|
:hasrestart => true
|
|
|
|
) }
|
2015-03-15 16:32:35 +01:00
|
|
|
it { is_expected.to_not contain_exec('validate_keystone_connection') }
|
2014-03-21 16:24:00 +11:00
|
|
|
end
|
|
|
|
|
|
|
|
describe "with validation on" do
|
|
|
|
let :params do
|
|
|
|
{
|
|
|
|
:validate => 'true',
|
|
|
|
:admin_token => 'admintoken'
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2015-03-15 16:32:35 +01:00
|
|
|
it { is_expected.to contain_service('keystone').with(
|
2014-03-21 16:24:00 +11:00
|
|
|
:ensure => 'running',
|
|
|
|
:enable => true,
|
|
|
|
:hasstatus => true,
|
|
|
|
:hasrestart => true
|
|
|
|
) }
|
2015-03-15 16:32:35 +01:00
|
|
|
it { is_expected.to contain_exec('validate_keystone_connection') }
|
2014-03-21 16:24:00 +11:00
|
|
|
end
|
|
|
|
end
|