Remove deprecated cloudkitty::ui

This class was deprecated during Yoga cycle[1].

[1] 0f89c9ab8f

Change-Id: I703934b1b5dcecb01cef100a512a4c30fbf63522
This commit is contained in:
Takashi Kajinami 2022-06-20 19:48:53 +09:00
parent 52f40f4a2e
commit 71ad6471e9
3 changed files with 4 additions and 72 deletions

View File

@ -1,27 +0,0 @@
# == Class: cloudkitty::ui
#
# DEPRECATED !!
# Installs & configure the cloudkitty ui component
#
# === Parameters
#
# [*package_ensure*]
# (Optional) Ensure state for package.
# Defaults to 'present'.
#
class cloudkitty::ui (
$package_ensure = 'present',
) {
include cloudkitty::deps
include cloudkitty::params
warning('The cloudkitty::ui class is deprecated. Use horizon::dashboard instead.')
package { 'cloudkitty-ui':
ensure => $package_ensure,
name => $::cloudkitty::params::ui_package_name,
tag => ['openstack', 'cloudkitty-package'],
}
}

View File

@ -0,0 +1,4 @@
---
upgrade:
- |
The ``cloudkitty::ui`` class has been removed.

View File

@ -1,45 +0,0 @@
require 'spec_helper'
describe 'cloudkitty::ui' do
let :params do
{ :package_ensure => 'present' }
end
shared_examples_for 'cloudkitty-ui' do
context 'when enabled' do
it { is_expected.to contain_class('cloudkitty::params') }
it { is_expected.to contain_class('cloudkitty::deps') }
it 'installs cloudkitty-ui package' do
is_expected.to contain_package('cloudkitty-ui').with(
:name => platform_params[:ui_package_name],
:ensure => 'present',
:tag => ['openstack', 'cloudkitty-package']
)
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
let(:platform_params) do
case facts[:osfamily]
when 'Debian'
{ :ui_package_name => 'cloudkitty-dashboard' }
when 'RedHat'
{ :ui_package_name => 'openstack-cloudkitty-ui' }
end
end
it_configures 'cloudkitty-ui'
end
end
end