Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
[defaults]
host_key_checking = False
retry_files_enabled = False
roles_path = .molecule/roles:../
roles_path = roles:../../
command_warnings = True
deprecation_warnings = True
def test_example(Command):
assert Command('uname').rc == 0
def test_root(Command, Sudo):
with Sudo():
assert Command('whoami').stdout == 'root'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment