Allow running a no-op validation
The idea here is to be able to run a validation called np-op in order to test the framework in the CI. Also we should create a group validation called no-op running only this validation. Change-Id: Ied6eaa4009d624737d2dfac8a61f3a273537ce13
This commit is contained in:
parent
17ddaebabf
commit
6b245770ec
|
@ -96,7 +96,7 @@ def build_detail(group, validations):
|
|||
|
||||
def setup(app):
|
||||
# Seed it with the known groups:
|
||||
groups = set(('prep', 'pre-introspection',
|
||||
groups = set(('no-op', 'prep', 'pre-introspection',
|
||||
'pre-deployment', 'post-deployment',
|
||||
'pre-update', 'pre-upgrade',
|
||||
'post-upgrade', 'openshift-on-openstack'))
|
||||
|
|
|
@ -42,6 +42,11 @@ the deployment stage they're should be run on.
|
|||
|
||||
Validations can belong to multiple groups.
|
||||
|
||||
No op
|
||||
~~~~
|
||||
|
||||
A validation doing nothing for testing the framework
|
||||
|
||||
Prep
|
||||
~~~~
|
||||
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
- hosts: undercloud, overcloud
|
||||
vars:
|
||||
metadata:
|
||||
name: NO-OP validation
|
||||
description: >
|
||||
A simple validation doing nothing in order to test that
|
||||
the validations framework works.
|
||||
groups:
|
||||
- no-op
|
||||
roles:
|
||||
- no-op
|
|
@ -0,0 +1,27 @@
|
|||
galaxy_info:
|
||||
author: TripleO Validations Team
|
||||
company: Red Hat
|
||||
license: Apache
|
||||
min_ansible_version: 2.4
|
||||
|
||||
platforms:
|
||||
- name: CentOS
|
||||
versions:
|
||||
- 7
|
||||
- name: RHEL
|
||||
versions:
|
||||
- 7
|
||||
|
||||
categories:
|
||||
- cloud
|
||||
- baremetal
|
||||
- system
|
||||
galaxy_tags: []
|
||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||
# remove the '[]' above, if you add tags to this list.
|
||||
#
|
||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||
# Maximum 20 tags per role.
|
||||
|
||||
dependencies: []
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- name: Run a no-op validation everywhere
|
||||
debug:
|
||||
msg: "This is a no-op action for testing that the validations framework runs"
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
metadata:
|
||||
name: NO-OP validation
|
||||
description: >
|
||||
A simple validation doing nothing in order to test that
|
||||
the validations framework works.
|
||||
groups:
|
||||
- no-op
|
Loading…
Reference in New Issue