Browse Source

Drop molecule support

This was an experiment to see if using molecule was something we wanted
to do. However, a lot of tihs logic is duplicated by zuul.

Change-Id: Ie59edff5825496bb1f34825ae2f916afdf198593
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/29/681129/1
Paul Belanger 3 years ago
parent
commit
97ee6c828b
  1. 2
      .zuul.yaml
  2. 9
      molecule/default/Dockerfile.j2
  3. 34
      molecule/default/molecule.yml
  4. 7
      tox.ini

2
.zuul.yaml

@ -66,7 +66,6 @@
- ansible-role-nodepool-src-fedora-latest
- ansible-role-nodepool-src-ubuntu-bionic
- tox-linters
- windmill-tox-molecule
gate:
jobs:
- ansible-role-nodepool-docker
@ -75,4 +74,3 @@
- ansible-role-nodepool-src-fedora-latest
- ansible-role-nodepool-src-ubuntu-bionic
- tox-linters
- windmill-tox-molecule

9
molecule/default/Dockerfile.j2

@ -1,9 +0,0 @@
# Molecule managed
{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}
RUN apt-get update && apt-get install -y python sudo bash ca-certificates python-pip python3-pip && apt-get clean;

34
molecule/default/molecule.yml

@ -1,34 +0,0 @@
---
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
platforms:
- name: ubuntu-bionic
image: ubuntu:bionic
provisioner:
name: ansible
config_options:
ssh_connection:
pipelining: true
inventory:
group_vars:
all:
nodepool_service_nodepool_builder_manage: false
nodepool_service_nodepool_launcher_manage: false
lint:
name: ansible-lint
log: true
playbooks:
converge: ../../tests/playbooks/run.yaml
scenario:
name: default
verifier:
name: testinfra
directory: ../tests
options:
verbose: true
lint:
name: flake8

7
tox.ini

@ -34,10 +34,3 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:linters]
commands =
yamllint -s .
[testenv:molecule]
sitepackages = True
setenv =
ANSIBLE_CALLBACK_PLUGINS = {envsitepackagesdir}/ara/plugins/callbacks
commands =
molecule test

Loading…
Cancel
Save