]> git.openstreetmap.org Git - chef.git/blob - test/integration/dev/inspec/mysql_spec.rb
dev: Add podman and eatmydata
[chef.git] / test / integration / dev / inspec / mysql_spec.rb
1 mysql_variant = if os.name == "ubuntu"
2                   "mysql"
3                 else
4                   "mariadb"
5                 end
6
7 describe package("#{mysql_variant}-server") do
8   it { should be_installed }
9 end
10
11 describe service("#{mysql_variant}") do
12   it { should be_enabled }
13   it { should be_running }
14 end
15
16 describe port(3306) do
17   it { should be_listening }
18   its("protocols") { should cmp "tcp" }
19 end