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

Cybereason driver query return instance name in dataframe #804

Merged
merged 8 commits into from
Nov 23, 2024
2 changes: 1 addition & 1 deletion msticpy/data/drivers/cybereason_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def query(
)
else:
df_result = self._format_result_to_dataframe(result=response)

df_result["instance"] = self.instance
return df_result

def _exec_paginated_queries(
Expand Down
1 change: 1 addition & 0 deletions tests/data/drivers/test_cybereason_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ def test_query(driver):
check.is_true(connect.called or driver.connected)
check.is_true(query.called)
check.is_instance(data, pd.DataFrame)
check.is_true("instance" in data.columns)

@respx.mock
def test_partial_success_query(driver):
Expand Down