Repos with recipes to deploy some infrastructure services
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

24 строки
577 B

  1. debian_os = ['debian', 'ubuntu']
  2. rhel_os = ['redhat', 'centos']
  3. def test_package(host):
  4. p = None
  5. if host.system_info.distribution.lower() in debian_os:
  6. p = host.package('pdns-backend-sqlite3')
  7. if host.system_info.distribution.lower() in rhel_os:
  8. p = host.package('pdns-backend-sqlite')
  9. assert p.is_installed
  10. def test_database_exists(host):
  11. f = host.file('/var/lib/powerdns/pdns.db')
  12. assert f.exists
  13. assert f.user == 'pdns'
  14. assert f.group == 'pdns'
  15. assert f.mode == 416
  16. assert f.size > 10000