Update tested platforms (#175)

* Update tested platforms

- Remove CentOS 8, Debian 9 & Ubuntu 16.04
- Add CentOS Stream 8, Alma Linux 8, Rocky Linux 8, Debian 11
- Remove SmartOS from ChefSpec as the platform will deprecated soon

Signed-off-by: Lance Albertson <lance@osuosl.org>

* Switch to using lint-unit job instead of chef-delivery

Signed-off-by: Lance Albertson <lance@osuosl.org>

* Remove delivery and move to calling RSpec directly via a reusable workflow

Signed-off-by: Lance Albertson <lance@osuosl.org>
This commit is contained in:
Lance Albertson
2022-02-02 09:31:55 -08:00
committed by GitHub
parent 8bd2b1745a
commit be94e35b22
6 changed files with 36 additions and 72 deletions

View File

@@ -19,23 +19,9 @@ describe 'postfix::default' do
end
end
context 'on SmartOS' do
context 'on Ubuntu 20.04' do
cached(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'smartos', version: '5.11').converge(described_recipe)
end
it '[COOK-4423] renders file main.cf without smtp_use_tls' do
expect(chef_run).to render_file('/opt/local/etc/postfix/main.cf').with_content(/smtp_use_tls += +no/)
end
it '[COOK-4619] does not set recipient_delimiter' do
expect(chef_run).to_not render_file('/etc/postfix/main.cf').with_content('recipient_delimiter')
end
end
context 'on Ubuntu 16.04' do
cached(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: 16.04).converge(described_recipe)
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: 20.04).converge(described_recipe)
end
it '[COOK-4423] renders file main.cf with /etc/postfix/cacert.pem' do