Files @ 3c51248b600c
Branch filter:

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

branko
MAR-192: Switch to using go-sendxmpp where possible for testing XMPP server role:

- The sendxmpp in Debian 12 Bookworm is quite broken at this point,
and go-sendxmpp is somewhat close in terms of interface etc.
- Fix a number of tests related to sending messages.
---

dependency: {}

driver:
  name: vagrant
  provider:
    name: virtualbox

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

platforms:


  # Helpers
  # =======

  - name: ldap-server
    box: debian/bookworm64
    memory: 512
    cpus: 1
    provider_raw_config_args:
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
    interfaces:
      - auto_config: true
        ip: 192.168.56.11
        network_name: private_network
        type: static


  # Debian 11 Bullseye
  # ================

  - name: client-bullseye
    groups:
      - clients
      - bullseye
    # Use Bookworm client box for testing Bullseye servers to avoid
    # duplication of test code in test_client.py due to missing
    # functional build of go-sendxmpp for the Bullseye release (glibc
    # mismatch in prebuilt package).
    box: debian/bookworm64
    memory: 256
    cpus: 1
    provider_raw_config_args:
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
    interfaces:
      - auto_config: true
        ip: 192.168.56.41
        network_name: private_network
        type: static

  - name: parameters-mandatory-bullseye
    groups:
      - parameters-mandatory
      - bullseye
    box: debian/bullseye64
    memory: 512
    cpus: 1
    provider_raw_config_args:
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
    interfaces:
      - auto_config: true
        ip: 192.168.56.51
        network_name: private_network
        type: static

  - name: parameters-optional-bullseye
    groups:
      - parameters-optional
      - bullseye
    box: debian/bullseye64
    memory: 512
    cpus: 1
    provider_raw_config_args:
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
    interfaces:
      - auto_config: true
        ip: 192.168.56.52
        network_name: private_network
        type: static


  # Debian 11 Bookworm
  # ==================

  - name: client-bookworm
    groups:
      - clients
      - bookworm
    box: debian/bookworm64
    memory: 256
    cpus: 1
    provider_raw_config_args:
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
    interfaces:
      - auto_config: true
        ip: 192.168.56.21
        network_name: private_network
        type: static

  - name: parameters-mandatory-bookworm
    groups:
      - parameters-mandatory
      - bookworm
    box: debian/bookworm64
    memory: 512
    cpus: 1
    provider_raw_config_args:
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
    interfaces:
      - auto_config: true
        ip: 192.168.56.31
        network_name: private_network
        type: static

  - name: parameters-optional-bookworm
    groups:
      - parameters-optional
      - bookworm
    box: debian/bookworm64
    memory: 512
    cpus: 1
    provider_raw_config_args:
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
    interfaces:
      - auto_config: true
        ip: 192.168.56.32
        network_name: private_network
        type: static


provisioner:
  name: ansible
  playbooks:
    cleanup: cleanup.yml
  config_options:
    defaults:
      force_valid_group_names: "ignore"
      interpreter_python: "/usr/bin/python3"
    ssh_connection:
      pipelining: "True"
  lint:
    name: ansible-lint

scenario:
  name: default

verifier:
  name: testinfra
  lint:
    name: flake8