From b127278fbaf6b034e836c111e75ccf12c09396d8 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 24 Jul 2022 00:47:29 +0900 Subject: [PATCH] Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql" This reverts commit c81789d4c77f570247b1d7e82f9049aabc185c7f. 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: I49370fa9c9fab9b95e8f7217c8cc63a9ec55e347 --- spec/classes/mistral_db_postgresql_spec.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/spec/classes/mistral_db_postgresql_spec.rb b/spec/classes/mistral_db_postgresql_spec.rb index 3b27aee..36ed1ab 100644 --- a/spec/classes/mistral_db_postgresql_spec.rb +++ b/spec/classes/mistral_db_postgresql_spec.rb @@ -35,15 +35,13 @@ describe 'mistral::db::postgresql' do context "on #{os}" do let (:facts) do facts.merge(OSDefaults.get_facts({ - :os_workers => 8, - :concat_basedir => '/var/lib/puppet/concat' + # 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_configures 'mistral::db::postgresql' - end + it_configures 'mistral::db::postgresql' end end