Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql"

This reverts commit 83f966a850.

Reason for revert:
puppet-postgresql 8.1.0 was released and now the module supports RHEL 9
(and CentOS 9 effectively).

Note:
This change adds the service_provider fact in test fact data because
it is required by puppet-postgresql.

Depends-on: https://review.opendev.org/850705
Change-Id: I2845d25c5f2de57e104d09284f0c5aedcd5d0362
This commit is contained in:
Takashi Kajinami
2022-07-24 00:53:41 +09:00
parent 380d7fc986
commit aff3a53d49

View File

@@ -88,13 +88,14 @@ describe 'openstacklib::db::postgresql' do
}).each do |os,facts|
context "on #{os}" do
let (:facts) do
facts.merge!(OSDefaults.get_facts())
facts.merge!(OSDefaults.get_facts({
# puppet-postgresql requires the service_provider fact provided by
# puppetlabs-postgresql.
:service_provider => 'systemd'
}))
end
# 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
it_behaves_like 'openstacklib::db::postgresql examples'
end
end
end