cfn-guard-test is a wrapper for cfn-guard that allows you to run unit tests for your cfn-guard rules.
Project description
cfn-guard-test
This tool allows you to easily run your cfn-guard tests against your cfn-guard rules.
cfn-guard-test
is a tool that converts various reports into the JUnit format.
Installation
You can install the cfn-guard-test
tool by running the following command:
pip install cfn_guard_test
Usage
To use cfn-guard-test
you just execute the following command:
cfn-guard-test
This will (by default) look for a test file in tests/reports
and it there is a yaml file that matches the same name in
the reports
folder. It will then validate the rules defined in the reports
folder against the test definition.
If you use a different folder structure you can define the rules and test paths as followed:
cfn-guard-test \
--rules-path reports \
--test-path tests/reports
When you do not have the cfn-guard
binary installed, and you need to supply an alternative path you can do that with
the following command:
cfn-guard-test \
--cfn-guard-path "/my/customm/path/cfn-guard"
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
File details
Details for the file cfn-guard-test-0.1.0.tar.gz
.
File metadata
- Download URL: cfn-guard-test-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db91df75aae92416f6989a7190056a0d192684637606c80810a2f3d58fade6b6 |
|
MD5 | fc1b2c15f5e4887c07af485c0d3eee5b |
|
BLAKE2b-256 | 95fa44b9a8bb900b9b3297c22eb42617675873610705e7a177f4cc043d6e8890 |