Validation tools and tests for IDEM resources
Project description
Resources schemas validation plugin tool.
About
idem-resources-validation performs different validations on the IDEM plugins’ schemas using idem.
What is POP?
This project is built with pop, a Python-based implementation of Plugin Oriented Programming (POP). POP seeks to bring together concepts and wisdom from the history of computing in new ways to solve modern computing problems.
For more information:
What is Idem?
This project is built with idem, an idempotent, imperatively executed, declarative programming language written in Python. This project extends idem!
For more information:
Getting Started
Prerequisites
Python 3.7+
git (if installing from source, or contributing to the project)
Installation
If wanting to use idem-resources-validation, you can do so by either installing from PyPI or from source.
Install from PyPI
pip install idem-resources-validation
Install from source
Clone the idem-resources-validation repository.
git clone git@gitlab.com:vmware/idem/idem-resources-validation.git
cd idem-resources-validation
Create a virtual environment, and then activate it:
python3 -m venv .venv
source .venv/bin/activate
Install idem-resources-validation and other base requirements:
pip3 install -e .
pip3 install -r requirements/base.txt
Install the following packages in order to run the tests:
pip3 install -r requirements/py3.10/tests.txt
NOTE: Change py3.10 if needed with your Python version. There is support for py3.8, py3.9, py3.10 and py3.11.
Setup
After installation the validations execution module will be accessible to the pop hub. You can provide your custom config file with the specific plugin properties. Plugin config properties file can be found in the idem-resources-validation repo under tests/plugins dir.
export PLUGIN_CONFIG_FILE=./tests/plugins/idem-aws-example.json
idem exec resources_validator.schema.checkers.validate_schema
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file idem-resources-validation-1.0.0.tar.gz
.
File metadata
- Download URL: idem-resources-validation-1.0.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.3 tqdm/4.65.0 importlib-metadata/6.7.0 keyring/24.0.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a038681eb896a4ada84daab8d1c619b32125fe90804b882f20337b0203ae0f3 |
|
MD5 | dd42339768a5bb3dd18239744d3cb136 |
|
BLAKE2b-256 | 7b5d3a14f2549ac6d5660715ebfc8e76431720a2360009922e340c098bb9799f |
File details
Details for the file idem_resources_validation-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: idem_resources_validation-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.3 tqdm/4.65.0 importlib-metadata/6.7.0 keyring/24.0.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 844bd88ae11d7c14d76873d788e5d7e9de3ab0b617b24f4b198553593fcf3693 |
|
MD5 | 6cf74113fe2bbd103fe2aa30bd053f36 |
|
BLAKE2b-256 | 2ffd7e0f452f8e53ff1e99099052ffe1040321cd03a0b13d2cd44565210e4912 |