Files @ ef201fa5ec5f
Branch filter:

Location: majic-ansible-roles/testsite/playbooks/roles/wsgihello2/meta/main.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).
---

dependencies:
  - role: wsgi_website
    fqdn: wsgireq.{{ testsite_domain }}
    admin_uid: 3002
    uid: 2002
    wsgi_application: wsgi:application
    static_locations:
      - /static/
    https_tls_key: "{{ lookup('file', inventory_dir + '/tls/wsgireq.' + testsite_domain + '_https.key') }}"
    https_tls_certificate: "{{ lookup('file', inventory_dir + '/tls/wsgireq.' + testsite_domain + '_https.pem') }}"
    environment_variables:
      WEBSITE_NAME: "Majic Ansible Roles Test Site"
    wsgi_requirements:
      - futures==3.1.1
      - gunicorn==19.6.0
  - role: database
    db_name: wsgi_{{ testsite_domain_underscores }}
    db_password: wsgi_{{ testsite_domain_underscores }}