Skip to content

Resource Graph Explorer (local branch)#167

Merged
ianhelle merged 13 commits intomasterfrom
RGDriver
Jun 9, 2021
Merged

Resource Graph Explorer (local branch)#167
ianhelle merged 13 commits intomasterfrom
RGDriver

Conversation

@petebryan
Copy link
Contributor

This is a local branch of PR 163 - created to work with our Pipeline.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@petebryan petebryan requested a review from ianhelle June 4, 2021 23:59
ianhelle
ianhelle previously approved these changes Jun 8, 2021
from msticpy.data.drivers.mdatp_driver import MDATPDriver
from msticpy.data.drivers.security_graph_driver import SecurityGraphDriver

from msticpy.data.drivers.resource_graph_driver import ResourceGraphDriver
Copy link
Contributor

Choose a reason for hiding this comment

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

You might want to surround this with a try/except ImportError.
Not strictly necessary but I did this in other places - and then if the import fails have a pytest.mark.skip that causes the whole test to be skipped.
The advantage to this is that all the tests pass or are skipped even if all the extras are not installed. Otherwise you get a test error.
Looks like I didn't do this consistently - maybe I ended up thinking that test errors were OK and only did it where there were test files with some cases that worked with core install and some didn't.
If you want to see an example look at data/test_query_source and look for the import statements and @pytest.mark.skipif(not _SPLUNK_IMP_OK, reason="Partial msticpy install")
lines.
I don't think it's worth doing here - I didn't do it for the azure_data test and a bunch of others.

@ianhelle ianhelle merged commit 3ab31ad into master Jun 9, 2021
@ianhelle ianhelle deleted the RGDriver branch June 9, 2021 23:19
This was referenced Jun 10, 2021
juju4 pushed a commit to juju4/msticpy that referenced this pull request Jun 5, 2022
* Resource Graph Driver

* Fix auth_method kwargs

* Documentation, tests, minor fixes

* Updated extras error message

* requirements update and black formatting

* updated setup

* linting fixes

* Docs update

* version increase

* Make test contingent on install

Co-authored-by: Ryan Cobb <rcobb@secureworks.com>
Co-authored-by: Ian Hellen <ianhelle@microsoft.com>
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.

3 participants