Files @ 17cf34f73ca6
Branch filter:

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

branko
MAR-28: Implemented additional tests for mail_server role:

- Deploy a number of tools on clients in order to test SMTP, IMAP, and Sieve
services.
- Added one more user to LDAP directory for testing group restrictions.
- Deploy CA certificate on all testing machines for TLS validation purposes.
- Use different custom-configured cipher for mail server ciphers.
- Fixed invalid postmaster address for parameters-optional host.
- Deploy configuration files for use with Imap-CLI on client test machines.
- Updated testing of SMTP server to include checks for users that do not belong
to mail group.
- Extended some SMTP-related tests to cover both test servers.
- Some small fixes in SMTP-related tests for expected output from commands.
- Implemented tests covering Dovecot (IMAP + Sieve) functionality.
- Implemented tests for running/enabled services.
- Implemented tests for ClamAV.
- Implemented tests for firewall and connectivity.
- Implemented tests for Postfix TLS configuration.
- TODO: Tests for Sieve TLS configuration have not been written yet due to
limitation of available tools.
---

dependency: {}

driver:
  name: vagrant

vagrant:

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

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

  instances:

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

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

    - name: client2
      groups:
        - client
      interfaces:
        - network_name: private_network
          type: static
          ip: 10.31.127.21
          auto_config: yes

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

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

verifier:
  name: testinfra