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: I1bec5608159cfbdb5d8a10d836370cd8ed462b46
This commit is contained in:
Takashi Kajinami 2022-02-16 00:10:13 +09:00
parent d31ab72120
commit f4a4d65822
2 changed files with 8 additions and 2 deletions

View File

@ -37,7 +37,10 @@ describe 'ironic::db::postgresql' do
}))
end
it_behaves_like 'ironic::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 'ironic::db::postgresql'
end
end
end

View File

@ -34,7 +34,10 @@ describe 'ironic::inspector::db::postgresql' do
facts.merge(OSDefaults.get_facts())
end
it_behaves_like 'ironic::inspector::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 'ironic::inspector::db::postgresql'
end
end
end