Metadata-Version: 2.1
Name: rh-ocp-build-data-validator
Version: 0.1.18
Summary: Validation of ocp-build-data Image & RPM declarations
Home-page: https://github.com/openshift/ocp-build-data-validator
Author: AOS ART Team
Author-email: aos-team-art@redhat.com
License: Apache License, Version 2.0
Platform: UNKNOWN
Description-Content-Type: text/x-rst
Requires-Dist: pyyaml
Requires-Dist: schema
Requires-Dist: requests

ocp-build-data-validator
========================

.. image:: https://badge.fury.io/py/rh-ocp-build-data-validator.svg
  :target: https://badge.fury.io/py/rh-ocp-build-data-validator
.. image:: https://codecov.io/gh/openshift/ocp-build-data-validator/branch/master/graph/badge.svg
  :target: https://codecov.io/gh/openshift/ocp-build-data-validator

Validation of `ocp-build-data <https://gitlab.cee.redhat.com/openshift-art/ocp-build-data>`__
Image & RPM declarations

Installation
------------

::

    $ pip install rh-ocp-build-data-validator

Usage
-----

Validating a single file:

::

    $ validate-ocp-build-data path/to/ocp-build-data/images/or/rpms.yml

Validating the whole `ocp-build-data <https://gitlab.cee.redhat.com/openshift-art/ocp-build-data>`__
repository:

::

    $ validate-ocp-build-data path/to/ocp-build/data/{images,rpms}/*

Validations
-----------

-  YAML Format
-  YAML Schema (supported schemas: **Image** and **RPM**)
-  Presence of corresponding `DistGit <http://pkgs.devel.redhat.com>`__ repository
   (needs to match YAML filename)

   -  Presence of corresponding **branch** on `DistGit <http://pkgs.devel.redhat.com>`__

-  Presence of `GitHub <https://github.com>`__ repository (if declared)

   -  Presence of **branch** on `GitHub <https://github.com>`__ (if declared)
   -  Presence of **dockerfile** on `GitHub <https://github.com>`__ (if declared)
   -  Presence of **manifests-dir** on `GitHub <https://github.com>`__ (if declared)

-  Stream is supported (if declared, value must match one of the entries in ``streams.yml``)
-  Member exists (if declared, member must be another existing declaration under ``images/``)


