Commit 217622fc authored by nimrod's avatar nimrod
Browse files

- Corrected location of roles for newer versions of Molecule, updated README on

  how to install roles.
- Corrected privilege escalation in tests, added example.
parent 5614665d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ To install the dependencies:

.. code:: shell

    ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD)
    ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles

To run the full test suite:

+1 −1
Original line number Diff line number Diff line
[defaults]
host_key_checking = False
retry_files_enabled = False
roles_path = .molecule/roles:../
roles_path = roles:../../
command_warnings = True
deprecation_warnings = True
+4 −0
Original line number Diff line number Diff line
def test_example(Command):
    assert Command('uname').rc == 0

def test_root(Command, Sudo):
    with Sudo():
        assert Command('whoami').stdout == 'root'