15 Commits

Author SHA1 Message Date
Zuul
a0c7a3e00a Merge "Normalizing VF metadata" 2022-05-27 16:50:44 +00:00
Jiri Podivin
786e55d717 Normalizing VF metadata
Added Framework and Development status classifiers.[0]

Added python_requires clause to indicate compatibility with runtime.[1]

Removed unnecessary level of indentation in the files section.

[0] https://pypi.org/classifiers/
[1] https://setuptools.pypa.io/en/latest/userguide/dependency_management.html?highlight=python_requires#python-requirement

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I8e3392a143ac9fe2c983f4b2c5b1f05b94a72835
2022-05-05 09:26:20 +00:00
Jiri Podivin
9a9b011b86 Removing references to Babel
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: If57653f20b23cecdb7514514191264ad3f37391b
2022-05-02 14:34:15 +02:00
Jiri Podivin
9163d8bcbc Moving callbacks to validations-libs
Callback plugins were transferred from validations-common
repository to validations-libs.

Necessary adjustments were made to the module structure,
requierements, as well as installation and documentation generator config.

Associated tests were moved as well, with removal of superfluous inheritance
and imports included.

Demonstration http server module for communication with `http_json`
callback was moved with directory structure preserved.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I31768375430a2f29da71aae8f3db3882c373ced5
2022-03-10 08:59:40 +00:00
Gael Chamoulaud (Strider)
1bbf282356
Add new CLI sub command to create community validations
Presently, the operator(s) can only execute the official and supported
validations coming from tripleo-validations and validations-common.
Community validations enable a sysadmin to create and execute
validations unique to their environment.

This patch introduces the new Command Line Interface sub command to
create a new community validation skeleton. First, this latter will
check if there is an existing role or a playbook either in the community
validations catalog or the official validations catalog.  And it will
create an Ansible role (with ansible-galaxy[1]) and a playbook in the
~/community-validations directory.

By default, the community validations feature is enabled but may be
disabled by setting [DEFAULT].enable_community_validations to ``False``
in the validation configuration file.

Example:

[stack@localhost]$ validation init my-new-validation
Validation config file found: /etc/validation.cfg
New role created successfully in /home/stack/community-validations/roles/my_new_validation
New playbook created successfully in /home/stack/community-validations/playbooks/my-new-validation.yaml

For a full demo of this new CLI sub command, please take a look at this
asciinema[2].

[1] - https://docs.ansible.com/ansible/latest/cli/ansible-galaxy.html
[2] - https://asciinema.org/a/445105

Change-Id: I8fb16e3456696187d4a9d3820740a7639a96e315
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-10-29 15:39:39 +02:00
matbu
11488cd88d Add validation config file mechanism
Introduce validation config file.
The config default location of the config file will be stored
in /etc/validation.cfg

The variables precedence will be the following:
* user's cli args
* config file
* default interval values

Change-Id: I05c54a43bc0a03878793cca3f51e23f4a8b63a23
2021-08-20 08:12:16 +00:00
XinxinShen
5815fb3c61 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I7be73e3e6d4cda3aa009a80dfa81b2c9bd961b48
2021-05-08 15:37:41 +08:00
Jiri Podivin
135478c426 Version bumps for rhel9 transition
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ic3618668190dd9700b4d84551377464bac5c893b
2021-04-27 15:40:04 +02:00
matbu
5fad1a4d18 Create dedicated CLI for the Validation Framework
This review adds a CLI for the Validation Framework which will become
the only entry point to run the Validation Framework.

It will deprecate the tripleo_validatior.py CLI and the
validation.py script.

This patch uses python cliff library to provide nice helpers, shell
and output formats.

Change-Id: I66800ad51cc50f4eb37efabe85fb553dce008101
2021-04-20 11:52:35 +02:00
Jiri Podivin
bcd6d6e857 Moving doc structure closer to that in validations-commons.
After merge of 723586 anyway.

Specific changes include:
new readme.rst in doc structure
tox adjustment
license info
bugtracking and source links
date update
badges
CONTRIBUTING.rst
ansible_autodoc.py
release notes infrastructure

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ia3db253e05d0f8d754259ff841a783f29cd6a70f
2021-02-25 13:11:34 +01:00
Mathieu Bultel
2c2b71a3fa Remove CI roles from validations-libs
The CI roles are stored on both repos:
validations-common and validations-libs.
We need to stored those roles only in one place.

This review removed the roles from validations-libs
and used it from validations-common

Change-Id: Ia343509716f0a7769c8edcd502a678927935b419
2020-10-21 07:50:29 +00:00
Mathieu Bultel
96a5d41422 Install CI roles into ansible roles dir
Change-Id: Icceff5a52857784dd331c337947ca24f54d60638
2020-09-30 20:06:00 +02:00
Sean McGinnis
6f26733301
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I853112437e2e9610d421cc48e16f1386a0967788
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:22 -05:00
Gael Chamoulaud (Strider)
76d6a95bb5
Adding the foundation files
* tox linters tests
* Adds requirements files
* Adds bindep.txt
* Adds gitignore file
* Adds pre-commit configuration file

Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2020-02-28 14:47:28 +01:00
Mathieu Bultel
dcfe6e627f Init python project structure 2020-02-28 11:20:15 +01:00