CentOS 9: Disable unit tests dependent on puppet-postgresql

The puppt-postgresql module does not support CentOS 9 yet and requires
some version parameters to be run on CentOS 9. This change disables
unit tests requiring that module, until the module supports CentOS 9.

Change-Id: If26b9d1a31028bb56106a2cce0faadcc7d38757f
This commit is contained in:
Takashi Kajinami
2022-02-16 00:02:28 +09:00
parent af68446b62
commit 62e136b037

View File

@@ -36,7 +36,10 @@ describe 'cloudkitty::db::postgresql' do
facts.merge!(OSDefaults.get_facts({ :concat_basedir => '/var/lib/puppet/concat' }))
end
it_behaves_like 'cloudkitty-db-postgresql'
# TODO(tkajinam): Remove this once puppet-postgresql supports CentOS 9
unless facts[:osfamily] == 'RedHat' and facts[:operatingsystemmajrelease].to_i >= 9
it_behaves_like 'cloudkitty-db-postgresql'
end
end
end
end