From 1e36ec00e51c66c93a9e93983189a964a0c95c30 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 16 Feb 2022 00:31:34 +0900 Subject: [PATCH] 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: I7093330bdbae4965954d4a2a5f5d6a2c56fd15e1 --- spec/classes/zaqar_db_postgresql_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/classes/zaqar_db_postgresql_spec.rb b/spec/classes/zaqar_db_postgresql_spec.rb index b57d4ef..8bc5ec6 100644 --- a/spec/classes/zaqar_db_postgresql_spec.rb +++ b/spec/classes/zaqar_db_postgresql_spec.rb @@ -37,7 +37,10 @@ describe 'zaqar::db::postgresql' do facts.merge!(OSDefaults.get_facts({ :concat_basedir => '/var/lib/puppet/concat' })) end - it_configures 'zaqar::db::postgresql' + # TODO(tkajinam): Remove this once puppet-postgresql supports CentOS 9 + unless facts[:osfamily] == 'RedHat' and facts[:operatingsystemmajrelease].to_i >= 9 + it_configures 'zaqar::db::postgresql' + end end end