
1) Already have the cloudkitty package in RedHat system, so we can add the acceptance test to deploy the service now. 2) Add auth_section and keystone_version in group "keystone_fetcher" to load plugin specific options and use specific keystone version. 3) Change the collector valume to 'ceilometer' by default 4) Update releated to test. Change-Id: Ic2f8fafba1664273d89bd706768416da4d9b93e1
37 lines
1.0 KiB
Ruby
37 lines
1.0 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe 'cloudkitty::storage' do
|
|
|
|
shared_examples_for 'cloudkitty-storage-init' do
|
|
|
|
it 'runs cloudkitty-storage-init' do
|
|
is_expected.to contain_exec('cloudkitty-storage-init').with(
|
|
:command => 'cloudkitty-storage-init --config-file /etc/cloudkitty/cloudkitty.conf',
|
|
:path => '/usr/bin',
|
|
:refreshonly => 'true',
|
|
:user => 'cloudkitty',
|
|
:logoutput => 'on_failure',
|
|
:subscribe => ['Anchor[cloudkitty::install::end]',
|
|
'Anchor[cloudkitty::config::end]',
|
|
'Anchor[cloudkitty::dbsync::end]',
|
|
'Anchor[cloudkitty::storageinit::begin]'],
|
|
:notify => 'Anchor[cloudkitty::storageinit::end]',
|
|
)
|
|
end
|
|
|
|
end
|
|
|
|
on_supported_os({
|
|
:supported_os => OSDefaults.get_supported_os
|
|
}).each do |os,facts|
|
|
context "on #{os}" do
|
|
let (:facts) do
|
|
facts.merge(OSDefaults.get_facts())
|
|
end
|
|
|
|
it_configures 'cloudkitty-storage-init'
|
|
end
|
|
end
|
|
|
|
end
|