Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test procedures and README #38

Merged
merged 4 commits into from
Mar 26, 2020
Merged

Conversation

nhakmiller
Copy link
Contributor

Background

Previously the make test command did not work if any policies or rules actually made use of the aws_globals file. This is because of the way the panther_analysis_tool was being used, it expects to find all files under one root directory and we were not testing it in that way. I've update the Makefile to work first copy all policies/rules into a temporary directory, then run the panther_analysis_tool against that directory.

Changes

  • Updated make test target
  • Updated incorrect line in README (was pointing to a git link when it needed to be an https link)

Testing

  • make test

@nhakmiller nhakmiller added the enhancement New feature or request label Mar 26, 2020
@nhakmiller nhakmiller self-assigned this Mar 26, 2020
README.md Outdated
@@ -233,6 +230,28 @@ The specification file MUST:
- ResourceTypes
- Severity

## Testing
Both policies and tests can define unit tests, which can be used to ensure they are performing as expected on test data before pushing them live to a production environment. This can help guarantee correctness of code, as well as protect against exceptions and unexpected behavior. To run these tests, consider using the `panther_analysis_tool` directly or making use of the `Makefile` provided here. For using the `panther_analysis_tool` directly, please refer to the [documentation](https://github.com/panther-labs/panther_analysis_tool).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both policies and rules?

@nhakmiller nhakmiller merged commit 57ef21c into master Mar 26, 2020
@nhakmiller nhakmiller deleted the nhakmiller-ci-updates branch March 26, 2020 19:22
lindsey-w pushed a commit that referenced this pull request Sep 24, 2020
egibs pushed a commit that referenced this pull request Jan 16, 2024
arielkr256 added a commit that referenced this pull request Jan 16, 2024
Co-authored-by: Ariel Ropek <79653153+arielkr256@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants