-
Notifications
You must be signed in to change notification settings - Fork 55
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
Palo alto cortex xdr 4.0.3 release #2904
Conversation
* Add custom config exceptions and update unit tests for errors * Fix bug in get incidents trigger, update version * Update checksum for task schema * Util update, no unit tests for testing * Broken unit test fix 2 * Fix unit tests
…igger (#2903) * Undo change to list split for get incidents trigger * Black formatting * Remove self.maxdiff in unit test * Update spec file
@@ -33,7 +33,7 @@ def run(self, params={}): | |||
) | |||
# Separate the host identifier values | |||
for incident in incidents: | |||
incident["hosts"] = Util.split_list_values(incident.get("hosts", []), ":") | |||
incident["hosts"] = Util.split_list_values(incident.get("hosts", [])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this change also need undone or is it ok to leave in the release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's okay, I kept it in since its not consequential and has the same functionality, it's just one less manual input for that helper method
@@ -27,9 +27,11 @@ def split_list_values(input_list: list, separator: str) -> list: | |||
output_list = [] | |||
for item in input_list: | |||
if isinstance(item, str): | |||
item_split = item.split(separator) | |||
item_split = item.split(":") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this also be undone if we aren't making changes to the triggers?
Proposed Changes
Description
Describe the proposed changes:
PR Requirements
Developers, verify you have completed the following items by checking them off:
Testing
Unit Tests
Review our documentation on generating and writing plugin unit tests
In-Product Tests
If you are an InsightConnect customer or have access to an InsightConnect instance, the following in-product tests should be done:
Style
Review the style guide
USER nobody
in theDockerfile
when possiblerapid7/insightconnect-python-3-38-slim-plugin:{sdk-version-num}
andrapid7/insightconnect-python-3-38-plugin:{sdk-version-num}
insight-plugin validate
which callsicon_validate
to linthelp.md
Functional Checklist
tests/
directory created withinsight-plugin samples
tests/$action_bad.json
insight-plugin run -T tests/example.json --debug --jq
insight-plugin run -T all --debug --jq
(use PR format at end)insight-plugin run -R tests/example.json --debug --jq
insight-plugin run --debug --jq
(use PR format at end)Assessment
You must validate your work to reviewers:
insight-plugin validate
and make sure everything passesinsight-plugin run -A
. For single action validation:insight-plugin run tests/{file}.json -A
insight-plugin ... | pbcopy
) and paste the output in a new post on this PR