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
This commit is contained in:
Takashi Kajinami 2022-02-15 23:59:24 +09:00
parent 12a5b23668
commit d8067ab5a2
1 changed files with 4 additions and 1 deletions

View File

@ -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