Skip to content
Snippets Groups Projects
Select Git revision
  • b2c2e9ab3d5da044c231ed0666465f8028804506
  • main default
  • v0.5.2
  • v0.5.1
  • v0.5.0
  • v0.4.0
  • v0.3.0
  • v0.2.0
  • v0.1.0
9 results

setup.py

Blame
    • nimrod's avatar
      b2c2e9ab
      A whole lot of stuff. · b2c2e9ab
      nimrod authored
      - A bunch of hooks, some copied from previous repos, some improvements
        on previous attempts, some new.
      - README, CI, etc.
      - A Python utilities module for helping with Python hooks.
      b2c2e9ab
      History
      A whole lot of stuff.
      nimrod authored
      - A bunch of hooks, some copied from previous repos, some improvements
        on previous attempts, some new.
      - README, CI, etc.
      - A Python utilities module for helping with Python hooks.
    test_dhcp.py 515 B
    from testinfra.utils.ansible_runner import AnsibleRunner
    
    testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all')
    
    
    def test_dhcp_service(Service, Socket, SystemInfo):
        if SystemInfo.type == 'openbsd':
            service = Service('dhcpd')
        elif SystemInfo.type == 'linux':
            service = Service('isc-dhcp-server')
        assert service.is_running
        try:
            assert service.is_enabled
        except NotImplementedError:
            pass
        assert Socket('udp://0.0.0.0:67').is_listening