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

rules: add some tests to Java and JavaScript rules #677

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

matheusalcantarazup
Copy link
Contributor

Add tests to HS-JAVA-1, HS-JAVASCRIPT-1, HS-JAVASCRIPT-2 and
HS-JAVASCRIPT-2 rules.
This commit also make a improvement on HS-JAVASCRIPT-2 to match the
correct way to set NODE_TLS_REJECT_UNAUTHORIZED env on Nodejs.
Previously the rule was just match with the following code
"NODE_TLS_REJECT_UNAUTHORIZED" = "0"; with the change the rule will
match process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";

Update #630

Signed-off-by: Matheus Alcantara [email protected]

- What I did

- How to verify it

- Description for the changelog

Add tests to HS-JAVA-1, HS-JAVASCRIPT-1, HS-JAVASCRIPT-2 and
HS-JAVASCRIPT-2 rules.
This commit also make a improvement on HS-JAVASCRIPT-2 to match the
correct way to set NODE_TLS_REJECT_UNAUTHORIZED env on Nodejs.
Previously the rule was just match with the following code
`"NODE_TLS_REJECT_UNAUTHORIZED" = "0";` with the change the rule will
match `process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";`

Update #630

Signed-off-by: Matheus Alcantara <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement This issue is not a Bug nor a Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests: create unit tests for rules of horusec-engine
4 participants