Kevin Carter 1217799b1b
Add molecule testing
This change adds molecule testing using a simple base job and pre|run playbooks.
The test will be executed via a native zuul job and will ensure we're exercising
all of the available code path's as provide by this role.

Two molecule scenarios will be executed whenever any change is made to this role

* default - runs through the typical main code path
* login - tests a secure docker registry ensuring our login capabilities are
          never broken.

Documentation in the readme has been added to show how local testing can be run.

A bindep.txt file has been added to ensure zuul knows how to install our
required base packages.

Closes-Bug: #1835657
Related-Bug: #1833584
Change-Id: I48f74b69c5d29dce4a576fa96e79563a4b484469
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2019-07-10 18:42:16 -05:00

16 lines
442 B
YAML

- job:
description: Base ansible-role-container-registry job
name: ansible-role-container-registry-centos-7-base
nodeset: centos-7
parent: base
pre-run:
- zuul.d/playbooks/pre.yml
timeout: 1800
voting: true
- job:
description: Run molecule testing
name: ansible-role-container-registry-centos-7-molecule
parent: ansible-role-container-registry-centos-7-base
run:
- zuul.d/playbooks/run.yml