From c12186f850af136659ce0f4c0d82dfcebca16385 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 16 Feb 2022 00:07:26 +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: Ifbdbb09a4bf036421bd2bbe0eedb8dc929423738 --- spec/classes/ec2api_db_postgresql_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/classes/ec2api_db_postgresql_spec.rb b/spec/classes/ec2api_db_postgresql_spec.rb index 1fe7d9e..8d31925 100644 --- a/spec/classes/ec2api_db_postgresql_spec.rb +++ b/spec/classes/ec2api_db_postgresql_spec.rb @@ -36,7 +36,11 @@ describe 'ec2api::db::postgresql' do :concat_basedir => '/var/lib/puppet/concat' })) end - it_behaves_like 'ec2api::db::postgresql' + + # TODO(tkajinam): Remove this once puppet-postgresql supports CentOS 9 + unless facts[:osfamily] == 'RedHat' and facts[:operatingsystemmajrelease].to_i >= 9 + it_behaves_like 'ec2api::db::postgresql' + end end end