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
Branches
No related tags found
No related merge requests found
...@@ -12,4 +12,4 @@ galaxy_info: ...@@ -12,4 +12,4 @@ galaxy_info:
dependencies: dependencies:
- src: https://www.shore.co.il/git/ansible-role-openbsd-bootstrap - src: https://www.shore.co.il/git/ansible-role-openbsd-bootstrap
scm: git scm: git
name: bootstrap role: bootstrap
...@@ -14,7 +14,7 @@ vagrant: ...@@ -14,7 +14,7 @@ vagrant:
type: virtualbox type: virtualbox
platforms: platforms:
- name: openbsd - name: openbsd
box: kaorimatz/openbsd-5.9-amd64 box: kaorimatz/openbsd-6.0-amd64
instances: instances:
- name: ansible-role-example - name: ansible-role-example
options: options:
......
--- ---
# tasks file for ansible-role-example # tasks file for ansible-role-example
- assert: - name: Assertions
assert:
that: that:
- ansible_os_family == 'OpenBSD' - ansible_os_family == 'OpenBSD'
- ansible_distribution_release == '5.9' - ansible_distribution_release == '6.0'
def test_example(Command): def test_example(Command):
assert Command('uname').rc == 0 assert Command('uname').rc == 0
def test_root(Command, Sudo): def test_root(Command, Sudo):
with Sudo(): with Sudo():
assert Command('whoami').stdout == 'root' assert Command('whoami').stdout == 'root'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment