Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Validating CEDAR Resources

Josef Hardi edited this page Aug 31, 2018 · 1 revision

NOTE: Activate Python 3.4 by typing the command $ source activate py34 in the server

Go to the cedar-util module (goutil) and switch the directory to script/ where you will find a script called cedar-validator.py. There are three options to use the script:

  1. Validate the entire resources by specifying the resource type and the MongoDB database
(py34)$ python cedar-validator.py -t template --input-mongodb=cedar
  1. Validate the entire resources by specifying the resource type and listing the ids in a file
(py34)$ python cedar-validator.py -t template --input-list=template.txt
  1. Validate a resource by specifying the resource type and the JSON document
(py34)$ python cedar-validator.py -t template --input-json=template.json
Clone this wiki locally