Skip to content

Commit

Permalink
test(packages): update for ubuntu-22.04 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed May 10, 2022
1 parent 2d81240 commit 6e2433e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions test/integration/default/controls/packages_spec.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# frozen_string_literal: true

# Override by OS.
package_name = 'mariadb-server'
if (os[:name] == 'suse') || (os[:name] == 'opensuse')
package_name = 'mariadb'
elsif os[:release].start_with?('8') && %w[debian centos].include?(os[:name])
package_name = 'mysql-server'
end
# Override by platform.
package_name =
case system.platform[:finger]
when 'opensuse-tumbleweed', 'opensuse-15'
'mariadb'
when 'debian-8', 'centos-8', 'ubuntu-22.04'
'mysql-server'
else
'mariadb-server'
end

control 'mysql package' do
title 'should be installed'
Expand Down

0 comments on commit 6e2433e

Please sign in to comment.