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: I175dfd157fb3be842a3c1ed38cf3325ec9283f69
This commit is contained in:
Takashi Kajinami 2022-02-16 00:26:49 +09:00
parent d90a7d8bd2
commit 83f966a850

View File

@ -91,7 +91,10 @@ describe 'openstacklib::db::postgresql' do
facts.merge!(OSDefaults.get_facts())
end
it_behaves_like 'openstacklib::db::postgresql examples'
# TODO(tkajinam): Remove this once puppet-postgresql supports CentOS 9
unless facts[:osfamily] == 'RedHat' and facts[:operatingsystemmajrelease].to_i >= 9
it_behaves_like 'openstacklib::db::postgresql examples'
end
end
end
end