-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/endpoint policy download (#1200)
* phase 1 * download commercial poilcies phase 2 * phase 3 * unescape characters in json metadata * add test data * add test case for conversion * fix variable name * status code check add * add response status code * add comments for exported functions * make empty docker folder to satisfy dir structure * change to use 'environment' keyword * env keyword, %w to wrap errors * add file hader * wrap errors in %w * rm tabsapce const * addressing review comments * use bytes.equal * add method for getType, constructor for newPolicy * changes: 1. save IO operations, avoid overwriting rego code file 2. wrap errors wherever required * invalid policy test cases * add table error cases structure * minor fix * docker error return nil check * no error if response code 404 Co-authored-by: Gaurav Gogia <[email protected]>
- Loading branch information
1 parent
830e079
commit d818b60
Showing
15 changed files
with
822 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.