if os.debian?
  if os.name == 'debian'
    describe apt('http://mirrors.up.pt/pub/mariadb/repo/10.4/debian') do
      it { should exist }
      it { should be_enabled }
    end
  elsif os.name == 'ubuntu'
    describe apt('http://mirrors.up.pt/pub/mariadb/repo/10.4/ubuntu') do
      it { should exist }
      it { should be_enabled }
    end
  end

  describe package('mariadb-client-10.4') do
    it { should be_installed }
  end

  describe package('mariadb-server-10.4') do
    it { should be_installed }
  end

  describe service('mariadb') do
    it { should be_installed }
    it { should be_enabled }
    it { should be_running }
  end
end
