Merge "Enable molecule placeholder test"
This commit is contained in:
commit
cfb5d862d2
@ -1,3 +1,22 @@
|
|||||||
---
|
---
|
||||||
|
galaxy_info:
|
||||||
|
author: Red Hat
|
||||||
|
description: |
|
||||||
|
An Ansible role for generating custom RPMSs from upstream Gerrit changes in
|
||||||
|
the TripleO project using DLRN. This repo then can be injected in the tested
|
||||||
|
environment, a repo file created and a yum update should start using the
|
||||||
|
built RPMs.
|
||||||
|
license: Apache
|
||||||
|
platforms:
|
||||||
|
- name: CentOS
|
||||||
|
versions:
|
||||||
|
- 7
|
||||||
|
- 8
|
||||||
|
- name: EL
|
||||||
|
versions:
|
||||||
|
- 7
|
||||||
|
- 8
|
||||||
|
min_ansible_version: 2.8
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- extras-common
|
- extras-common
|
||||||
|
21
roles/build-test-packages/molecule/default/molecule.yml
Normal file
21
roles/build-test-packages/molecule/default/molecule.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
driver:
|
||||||
|
name: docker
|
||||||
|
log: true
|
||||||
|
lint:
|
||||||
|
enabled: false
|
||||||
|
platforms:
|
||||||
|
- name: instance
|
||||||
|
image: centos:7
|
||||||
|
provisioner:
|
||||||
|
name: ansible
|
||||||
|
log: true
|
||||||
|
env:
|
||||||
|
# ANSIBLE_STDOUT_CALLBACK: yaml
|
||||||
|
# hack to make it find 'common' role from tq
|
||||||
|
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH}:${MOLECULE_SCENARIO_DIRECTORY}/../../../../../tripleo-quickstart/roles"
|
||||||
|
|
||||||
|
verifier:
|
||||||
|
name: ansible
|
||||||
|
lint:
|
||||||
|
name: ansible-lint
|
3
roles/build-test-packages/molecule/default/playbook.yml
Normal file
3
roles/build-test-packages/molecule/default/playbook.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
- name: Converge
|
||||||
|
hosts: all
|
3
roles/build-test-packages/molecule/default/verify.yml
Normal file
3
roles/build-test-packages/molecule/default/verify.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
- name: Verify
|
||||||
|
hosts: all
|
@ -48,3 +48,7 @@ skip_changelog = True
|
|||||||
show-source = True
|
show-source = True
|
||||||
ignore = E123,E125,E501,F403,H303,F405
|
ignore = E123,E125,E501,F403,H303,F405
|
||||||
builtins = _
|
builtins = _
|
||||||
|
|
||||||
|
[tool:pytest]
|
||||||
|
# these break pytest collection due to missing imports
|
||||||
|
norecursedirs = .tox .eggs roles/validate-tempest/files
|
||||||
|
15
tox.ini
15
tox.ini
@ -49,3 +49,18 @@ commands =
|
|||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
|
[testenv:molecule]
|
||||||
|
deps =
|
||||||
|
ansible
|
||||||
|
ansi2html # GPL (soft-dependency of pytest-html)
|
||||||
|
docker
|
||||||
|
paramiko>=2.5.0 # LGPL (soft-dependency of docker that enables ssh protocol)
|
||||||
|
pytest-cov # MIT
|
||||||
|
pytest-html # MPL 2.0
|
||||||
|
pytest-molecule<=1.2.3 # MIT
|
||||||
|
selinux # MIT
|
||||||
|
mock
|
||||||
|
molecule>=3.0a4
|
||||||
|
commands =
|
||||||
|
python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html -rA --molecule-unavailable-driver=fail {tty:-s} {posargs:-k 'molecule and docker'}
|
||||||
|
@ -11,6 +11,9 @@
|
|||||||
jobs:
|
jobs:
|
||||||
- tripleo-ci-centos-7-standalone
|
- tripleo-ci-centos-7-standalone
|
||||||
- openstack-tox-linters
|
- openstack-tox-linters
|
||||||
|
- openstack-tox-molecule:
|
||||||
|
required-projects:
|
||||||
|
- openstack/tripleo-quickstart
|
||||||
- tripleo-ci-centos-7-containers-undercloud-minion:
|
- tripleo-ci-centos-7-containers-undercloud-minion:
|
||||||
files:
|
files:
|
||||||
- ^roles/.*minion.*$
|
- ^roles/.*minion.*$
|
||||||
@ -19,3 +22,6 @@
|
|||||||
queue: tripleo
|
queue: tripleo
|
||||||
jobs:
|
jobs:
|
||||||
- openstack-tox-linters
|
- openstack-tox-linters
|
||||||
|
- openstack-tox-molecule:
|
||||||
|
required-projects:
|
||||||
|
- openstack/tripleo-quickstart
|
||||||
|
Loading…
Reference in New Issue
Block a user