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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,4 +12,4 @@ galaxy_info:
dependencies:
    - src: https://www.shore.co.il/git/ansible-role-openbsd-bootstrap
      scm: git
      name: bootstrap
      role: bootstrap
+1 −1
Original line number Diff line number Diff line
@@ -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:
+3 −2
Original line number Diff line number Diff line
---
# 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'
+1 −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'