From d8067ab5a2d97a1d2431b199da36df04a469c518 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 15 Feb 2022 23:59:24 +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: Icff8be15e0180d620488a80504208c12b8be6aac --- spec/classes/barbican_db_postgresql_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/classes/barbican_db_postgresql_spec.rb b/spec/classes/barbican_db_postgresql_spec.rb index 0d7bd354..2cdc542d 100644 --- a/spec/classes/barbican_db_postgresql_spec.rb +++ b/spec/classes/barbican_db_postgresql_spec.rb @@ -59,7 +59,10 @@ describe 'barbican::db::postgresql' do })) end - it_configures 'barbican::db::postgresql' + # TODO(tkajinam): Remove this once puppet-postgresql supports CentOS 9 + unless facts[:osfamily] == 'RedHat' and facts[:operatingsystemmajrelease].to_i >= 9 + it_configures 'barbican::db::postgresql' + end end end