Skip to content
Snippets Groups Projects
Select Git revision
  • e418a60763772d961112b798d2d01266f7c77c70
  • master default
2 results

test_mod-php7.py

Blame
  • test_example.py 310 B
    from testinfra.utils.ansible_runner import AnsibleRunner
    
    testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all')
    
    
    def test_example(Command):
        assert Command('uname').rc == 0
    
    
    def test_root(Command, Sudo):
        with Sudo():
            assert Command('whoami').stdout.strip() == 'root'