Use new openstackclient tag

The new openstackclient tag was added so that we can get all resources
about openstack CLI more easily. This adds this tag to octaviaclient
because the package provides some sub-commands.

Change-Id: I37c2447ea94085739702f65c0347843a6a6097d1
This commit is contained in:
Takashi Kajinami 2023-11-20 01:20:13 +09:00
parent 30c6ddbdfa
commit f1087e1992
2 changed files with 3 additions and 14 deletions

View File

@ -17,7 +17,7 @@ class octavia::client (
package { 'python-octaviaclient':
ensure => $ensure,
name => $::octavia::params::client_package_name,
tag => 'openstack',
tag => ['openstack', 'openstackclient'],
}
include openstacklib::openstackclient
}

View File

@ -2,18 +2,7 @@ require 'spec_helper'
describe 'octavia::client' do
let :params do
{}
end
let :default_params do
{ :package_ensure => 'present' }
end
shared_examples_for 'octavia client' do
let :p do
default_params.merge(params)
end
it { is_expected.to contain_class('octavia::deps') }
it { is_expected.to contain_class('octavia::params') }
@ -21,8 +10,8 @@ describe 'octavia::client' do
it 'installs octavia client package' do
is_expected.to contain_package('python-octaviaclient').with(
:name => platform_params[:client_package_name],
:ensure => p[:package_ensure],
:tag => 'openstack'
:ensure => 'present',
:tag => ['openstack', 'openstackclient']
)
end