-
Notifications
You must be signed in to change notification settings - Fork 0
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
IN-166 Automox XSOAR Unit Tests #4
Conversation
for key_string in excluded_keys_list: | ||
keys = key_string.split(".") | ||
data = remove_key(keys, data) | ||
|
||
return data | ||
|
||
def remove_key(keys_to_traverse, data): | ||
|
||
def remove_key(keys_to_traverse: List[str], data: Dict[str, Any]) -> Dict[str, Any]: |
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.
any concerns with recursion depth here?
|
||
org_id = 1 | ||
|
||
expected_response = util_load_json("./test_data/automox-group-create.json") |
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.
This had to have been annoying 😂
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.
lgtm! I think it would be better to use a stack-based approach to dictionary traversal, but I don't think there's a huge concern presented immediately
* Automox Content Pack for XSOAR (#1) * IN-104 Implemented commands related to Administration and Vulnerability Sync use cases. * [IN-149] Adding Vulnerability Upload Playbook (#2) Added playbook to automate report uploads * [IN-152] Automox XSOAR Documentation (#3) Added documentation for Playbook, Integration, and Pack * IN-166 Automox XSOAR Unit Tests (#4) * Adding unit tests * Reviewed checklist for XSOAR submission * Cleaning up integration test files * Fixed validation issues with playbook * Updated README and Integration yaml to be consistent with args in Python. Fixed issues with fromversion and tests in Integration yaml. * Playbook documentation updates regarding supported csv formats * Present errors in a pleasant and readable way. Handled basic http fail codes * Updated delete commands to update objects in the context with deleted key * Removed test playbook from integration yaml Co-authored-by: MLainer1 <[email protected]> * Added Automox integration instrumentation * Fixed docker image version and schema validation in integration yaml Co-authored-by: MLainer1 <[email protected]> Co-authored-by: Jack Miller <[email protected]> Co-authored-by: MLainer1 <[email protected]>
Contributing to Cortex XSOAR Content
Make sure to register your contribution by filling the contribution registration form
The Pull Request will be reviewed only after the contribution registration form is filled.
Status
Related Issues
fixes: link to the issue
Description
A few sentences describing the overall goals of the pull request's commits.
Screenshots
Paste here any images that will help the reviewer
Minimum version of Cortex XSOAR
Does it break backward compatibility?
Must have