Files @ 8278ff584984
Branch filter:

Location: majic-ansible-roles/testsite/playbooks/roles/wsgihello/meta/main.yml - annotation

branko
MAR-128: Upgraded tests for database 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).
- Updated backup_server and backup_client configuration in order to
make the backup testing more generic (and easier to update for
future).
---

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