Files @ ef201fa5ec5f
Branch filter:

Location: majic-ansible-roles/roles/mail_forwarder/molecule.yml

branko
MAR-128: Upgraded tests for backup_server role:

- Switch to new Molecule configuration.
- Updated set-up playbook to use become: yes.
- Moved some preparatory steps outside of the main playbook (eases
idempotence tests).
- Updated tests to reference the yml inventory file.
- Updated tests to use new fixture (host instead of individual ones).
- Switched to extracting IP address instead of hard-coding it in a
couple of tests.
- Moved test for checking available authentication mechanisms for
backup SSH server to be part of testing of parameters_optional only
for now (it was hard coded to that IP, and fails on
parameters-mandatory due to iptables not opening correct ports).
---

ansible:
  ansiblecfg_ssh_connection:
    pipelining: True

dependency: {}

driver:
  name: vagrant

vagrant:
  platforms:
    - name: debian-jessie64
      box: debian/contrib-jessie64
    - name: debian-stretch64
      box: debian/stretch64

  providers:
    - name: virtualbox
      type: virtualbox
      options:
        memory: 768
        cpus: 1

  instances:

    - name: mail-server
      interfaces:
        - network_name: private_network
          type: static
          ip: 10.31.127.10
          auto_config: yes

    - name: client1
      interfaces:
        - network_name: private_network
          type: static
          ip: 10.31.127.20
          auto_config: yes

    - name: parameters-mandatory
      interfaces:
        - network_name: private_network
          type: static
          ip: 10.31.127.30
          auto_config: yes

    - name: parameters-optional
      interfaces:
        - network_name: private_network
          type: static
          ip: 10.31.127.31
          auto_config: yes

    - name: parameters-no-incoming
      interfaces:
        - network_name: private_network
          type: static
          ip: 10.31.127.32
          auto_config: yes

verifier:
  name: testinfra