Skip to content

Compares two yaml files, showing the diffs in a git-style

Notifications You must be signed in to change notification settings

joseblas/app-config-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

app-config-checker

Compares two yaml files to see which keys are present in one file but absent in another. It does not (currently) check for differences between values. It is designed to work only in the context of an HMRC worskspace, with app-config-dev, -qa etc.

Requirements

  • Python
  • pip

Setup

pip install -r requirements.txt

or:

sudo -H pip install -r requirements.txt

Checker

Checks the diff between environments for an app.

Usage

display the help file:

./bin/checker.py -h

compare the staging and production versions of config for the vat-core project:

./bin/checker.py $WORKSPACE vat-core staging prod

Keys present in staging but not in prod will be shows with a '-', keys in prod but not staging will be shown with '+'

Diff

Tells you the value of one key in all the environments for a single project.

Usage

/bin/diff.py $WORKSPACE vat-core hmrc_config.Prod.databases.port

About

Compares two yaml files, showing the diffs in a git-style

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages