Browse Source

wekan: transition from molecule to pytest

keep-around/be27015c20574507418ba259d6bbe1783e6a264b
Loïc Dachary 1 year ago
committed by Loic Dachary
parent
commit
5aa4cd713c
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 0
      inventory/group_vars/wekan-service-group.yml
  2. 14
      molecule/wekan/conftest.py
  3. 1
      molecule/wekan/create.yml
  4. 1
      molecule/wekan/destroy.yml
  5. 4
      molecule/wekan/inventory/host_vars/wekan-host.yml
  6. 12
      molecule/wekan/inventory/test-hosts.yml
  7. 37
      molecule/wekan/molecule.yml
  8. 2
      molecule/wekan/wekan-playbook.yml
  9. 2
      tox.ini

0
inventory/group_vars/wekan-group.yml → inventory/group_vars/wekan-service-group.yml

14
molecule/wekan/conftest.py

@ -0,0 +1,14 @@
def pytest_addoption(parser):
parser.addoption(
"--enough-hosts",
action="store",
default="bind-host,icinga-host,wekan-host",
help="list of hosts"
)
parser.addoption(
"--enough-service-directory",
action="store",
default="wekan",
help="service directory"
)

1
molecule/wekan/create.yml

@ -1 +0,0 @@
../infrastructure/create.yml

1
molecule/wekan/destroy.yml

@ -1 +0,0 @@
../infrastructure/destroy.yml

4
molecule/wekan/inventory/host_vars/wekan-host.yml

@ -0,0 +1,4 @@
---
openstack_volumes:
- name: wekan-volume
size: 10

12
molecule/wekan/inventory/test-hosts.yml

@ -0,0 +1,12 @@
---
all-hosts:
hosts:
wekan-host:
firewall_web_server_group:
hosts:
wekan-host:
wekan-service-group:
hosts:
wekan-host:

37
molecule/wekan/molecule.yml

@ -1,37 +0,0 @@
---
driver:
name: delegated
lint:
name: yamllint
platforms:
- name: bind-host
- name: icinga-host
- name: wekan-host
provisioner:
name: ansible
options:
i: ../../development-inventory
limit: bind-host,icinga-host,wekan-host,localhost
lint:
name: ansible-lint
env:
ANSIBLE_ROLES_PATH: roles:../infrastructure/roles:../firewall/roles:../bind/roles:../icinga/roles:../jdauphant.nginx/roles:../enough-nginx/roles:../certificate/roles
inventory:
links:
group_vars: ../../inventory/group_vars
host_vars: ../../inventory/host_vars
scenario:
name: wekan
test_sequence:
- destroy
- create
- converge
- verify
- destroy
verifier:
name: testinfra
options:
v: True
s: True
lint:
name: flake8

2
molecule/wekan/wekan-playbook.yml

@ -34,4 +34,4 @@
http_vhost_name: Wekan
http_vhost_fqdn: "{{ wekan_vhost_fqdn }}"
http_vhost_uri: "/"
http_vhost_string: "wekan-favicon"
http_vhost_string: "wekan"

2
tox.ini

@ -19,7 +19,7 @@ commands = coverage run --source=enough {envbindir}/py.test -vvv --durations 10
[testenv:flake8]
commands = flake8 {posargs}
[testenv:{infrastructure,bind,authorized_keys,backup,certificate,postfix,icinga,openvpn}]
[testenv:{infrastructure,bind,authorized_keys,backup,certificate,postfix,icinga,openvpn,wekan}]
passenv =
ENOUGH_API_TOKEN
PYTEST_ADDOPTS

Loading…
Cancel
Save