Skip to content
Snippets Groups Projects
Commit 9e614caf authored by nimrod's avatar nimrod
Browse files

- Upgraded to a newer version of Molecule (1.12.4) and fixed the following

  issues:
  - Missed a blank line between tests in `tests/test_example.py`.
  - Named the assertions task.
- Updated the OpenBSD Vagrant box to 6.0, updated assertion accordingly.
parent 7e3b6b88
No related branches found
No related tags found
No related merge requests found
......@@ -12,4 +12,4 @@ galaxy_info:
dependencies:
- src: https://www.shore.co.il/git/ansible-role-openbsd-bootstrap
scm: git
name: bootstrap
role: bootstrap
......@@ -14,7 +14,7 @@ vagrant:
type: virtualbox
platforms:
- name: openbsd
box: kaorimatz/openbsd-5.9-amd64
box: kaorimatz/openbsd-6.0-amd64
instances:
- name: ansible-role-example
options:
......
---
# tasks file for ansible-role-example
- assert:
- name: Assertions
assert:
that:
- ansible_os_family == 'OpenBSD'
- ansible_distribution_release == '5.9'
- ansible_distribution_release == '6.0'
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