Files @ 663c02da41b8
Branch filter:

Location: majic-ansible-roles/roles/php_website/molecule/default/molecule.yml

branko
Noticket: Improve reliability for mail_server tests, detection of running ClamAV daemon:

The fixes mainly help with reliability of tests against the
mail_server role due to ClamAV not becoming available before the tests
get run. This normally is not a real issue in production (since the
daemon will become available farily quickly).

Changes made:

- Wait for ClamAV socket to become available in mail_server
role (otherwise mail delivery failures can happen).
- Increase memory used in mail server instances for testing to avoid
OOM killer kicking-in during tests.
- Introduce slight delay when running local alias tests to avoid race
condition.
- Formating fix in task that waits for ClamAV database to be
available.
---

dependency: {}

driver:
  name: vagrant
  provider:
    name: virtualbox

lint:
  name: yamllint
  options:
    config-file: ../../.yamllint.yml

platforms:

  - name: php-website-jessie64
    groups:
      - parameters-mandatory
      - parameters-optional
      - jessie
    box: debian/contrib-jessie64
    memory: 512
    cpus: 1

  - name: php-website-stretch64
    groups:
      - parameters-mandatory
      - parameters-optional
      - stretch
    box: debian/contrib-stretch64
    memory: 512
    cpus: 1

provisioner:
  name: ansible
  config_options:
    defaults:
      force_valid_group_names: "ignore"
    ssh_connection:
      pipelining: "True"
  lint:
    name: ansible-lint

scenario:
  name: default

verifier:
  name: testinfra
  lint:
    name: flake8