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

IN-166 Automox XSOAR Unit Tests #4

Merged
merged 5 commits into from
Mar 31, 2022
Merged

Conversation

ax-jmiller
Copy link
Owner

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

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

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

  • 6.0.0
  • 6.1.0
  • 6.2.0
  • 6.5.0

Does it break backward compatibility?

  • Yes
    • Further details:
  • No

Must have

  • Tests
  • Documentation

@ax-jmiller ax-jmiller self-assigned this Mar 31, 2022
@ax-jmiller ax-jmiller marked this pull request as ready for review March 31, 2022 15:40
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]:
Copy link
Collaborator

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")
Copy link
Collaborator

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 😂

Copy link
Collaborator

@ax-tschmidtke ax-tschmidtke left a 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

@ax-jmiller ax-jmiller merged commit de50e8f into master Mar 31, 2022
@ax-jmiller ax-jmiller deleted the IN-166-automox-xsoar-tests branch March 31, 2022 22:13
ax-jmiller added a commit that referenced this pull request May 23, 2022
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants