From a14fa7cb9a1548d7f893c044c476316d49a49cc0 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 16 Feb 2022 00:06:46 +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: I325b309188b3664c9d569b3080eb597e52fe5461 --- spec/classes/designate_db_postgresql_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/classes/designate_db_postgresql_spec.rb b/spec/classes/designate_db_postgresql_spec.rb index b9f42451..5bbb9d9d 100644 --- a/spec/classes/designate_db_postgresql_spec.rb +++ b/spec/classes/designate_db_postgresql_spec.rb @@ -39,7 +39,10 @@ describe 'designate::db::postgresql' do })) end - it_configures 'designate::db::postgresql' + # TODO(tkajinam): Remove this once puppet-postgresql supports CentOS 9 + unless facts[:osfamily] == 'RedHat' and facts[:operatingsystemmajrelease].to_i >= 9 + it_configures 'designate::db::postgresql' + end end end -end \ No newline at end of file +end