Skip to content

Commit

Permalink
Content fix files path's (#11321)
Browse files Browse the repository at this point in the history
* content fix files path's

* fix ut

* fix files path's

* type ignore

* add vulture whitelist
  • Loading branch information
ChanochShayner authored Feb 14, 2021
1 parent cb45dc4 commit 2335263
Show file tree
Hide file tree
Showing 51 changed files with 202 additions and 169 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ script:
- contextPath: Rapid7InsightIDR.Event.timestamp
description: Time when the event was triggered.
type: Number
dockerimage: demisto/python3:3.8.6.14516
dockerimage: demisto/python3:3.9.1.15759
feed: false
isfetch: true
longRunning: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_insight_idr_list_investigations(requests_mock) -> None:
- Ensure key field is correct
- Ensure output is as expected
"""
from insightidr import Client, insight_idr_list_investigations_command
from Rapid7_InsightIDR import Client, insight_idr_list_investigations_command

mock_response = util_load_json('test_data/list_investigations.json')
requests_mock.get(
Expand Down Expand Up @@ -65,7 +65,7 @@ def test_insight_idr_get_investigation(requests_mock) -> None:
- Ensure key field is correct
- Ensure output is as expected
"""
from insightidr import Client, insight_idr_get_investigation_command
from Rapid7_InsightIDR import Client, insight_idr_get_investigation_command

mock_response = util_load_json('test_data/get_investigation.json')
requests_mock.get(
Expand Down Expand Up @@ -100,7 +100,7 @@ def test_close_investigation(requests_mock) -> None:
- Ensure key field is correct
- Ensure the amount of ids that were closed
"""
from insightidr import Client, insight_idr_close_investigations_command
from Rapid7_InsightIDR import Client, insight_idr_close_investigations_command

mock_response = util_load_json('test_data/close_investigations.json')
requests_mock.post(
Expand Down Expand Up @@ -136,7 +136,7 @@ def test_assign_user(requests_mock) -> None:
- Ensure key field is correct
- Ensure email field is as expected
"""
from insightidr import Client, insight_idr_assign_user_command
from Rapid7_InsightIDR import Client, insight_idr_assign_user_command

investigation_id = '174e4f99-2ac7-4481-9301-4d24c34baf06'
email = 'example@test.com'
Expand Down Expand Up @@ -178,7 +178,7 @@ def test_set_status(requests_mock) -> None:
- Ensure key field is correct
- Ensure status field is as expected
"""
from insightidr import Client, insight_idr_set_status_command
from Rapid7_InsightIDR import Client, insight_idr_set_status_command

investigation_id = '174e4f99-2ac7-4481-9301-4d24c34baf06'
status = 'OPEN'
Expand Down Expand Up @@ -221,7 +221,7 @@ def test_insight_idr_add_threat_indicators(requests_mock) -> None:
- Ensure key field is correct
- Ensure output is as expected
"""
from insightidr import Client, insight_idr_add_threat_indicators_command
from Rapid7_InsightIDR import Client, insight_idr_add_threat_indicators_command

mock_response = util_load_json('test_data/add_threat_indicators.json')
requests_mock.post(
Expand Down Expand Up @@ -260,7 +260,7 @@ def test_insight_idr_replace_threat_indicators(requests_mock) -> None:
- Ensure key field is correct
- Ensure output is as expected
"""
from insightidr import Client, insight_idr_replace_threat_indicators_command
from Rapid7_InsightIDR import Client, insight_idr_replace_threat_indicators_command

mock_response = util_load_json('test_data/replace_threat_indicators.json')
requests_mock.post(
Expand Down Expand Up @@ -298,7 +298,7 @@ def test_insight_idr_list_logs(requests_mock) -> None:
- Ensure key field is correct
- Ensure output is as expected
"""
from insightidr import Client, insight_idr_list_logs_command
from Rapid7_InsightIDR import Client, insight_idr_list_logs_command

mock_response = util_load_json('test_data/list_logs.json')
requests_mock.get(
Expand Down Expand Up @@ -335,7 +335,7 @@ def test_insight_idr_list_log_sets(requests_mock) -> None:
- Ensure key field is correct
- Ensure output is as expected
"""
from insightidr import Client, insight_idr_list_log_sets_command
from Rapid7_InsightIDR import Client, insight_idr_list_log_sets_command

mock_response = util_load_json('test_data/list_log_sets.json')
requests_mock.get(
Expand Down Expand Up @@ -372,7 +372,7 @@ def test_insight_idr_download_logs(requests_mock) -> None:
Then:
- Ensure file type
"""
from insightidr import Client, insight_idr_download_logs_command
from Rapid7_InsightIDR import Client, insight_idr_download_logs_command

mock_response = util_load_file('test_data/download_logs.txt')
requests_mock.get(
Expand Down Expand Up @@ -404,7 +404,7 @@ def test_insight_idr_query_log(requests_mock) -> None:
- Ensure key field is correct
- Ensure output is as expected
"""
from insightidr import Client, insight_idr_query_log_command
from Rapid7_InsightIDR import Client, insight_idr_query_log_command

mock_response = util_load_json('test_data/list_log_sets.json')
requests_mock.get(
Expand Down Expand Up @@ -442,7 +442,7 @@ def test_insight_idr_query_log_set(requests_mock) -> None:
- Ensure key field is correct
- Ensure output is as expected
"""
from insightidr import Client, insight_idr_query_log_set_command
from Rapid7_InsightIDR import Client, insight_idr_query_log_set_command

mock_response = util_load_json('test_data/list_log_sets.json')
requests_mock.get(
Expand Down Expand Up @@ -480,7 +480,7 @@ def test_fetch_incidents(requests_mock) -> None:
- Ensure output is as expected
- Ensure timestamp is as expected (+1 Miliseconds)
"""
from insightidr import Client, fetch_incidents
from Rapid7_InsightIDR import Client, fetch_incidents

mock_response = util_load_json('test_data/list_investigations.json')
requests_mock.get(
Expand Down
5 changes: 5 additions & 0 deletions Packs/Rapid7_InsightIDR/ReleaseNotes/1_0_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

#### Integrations
##### Rapid7 InsightIDR
- Maintenance and stability enhancements.
- Upgraded the Docker image to demisto/python3:3.9.1.15759.
2 changes: 1 addition & 1 deletion Packs/Rapid7_InsightIDR/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Rapid7 InsightIDR",
"description": "Rapid7 InsightIDR is a Cloud-Based SIEM that detect and respond to security incidents.",
"support": "xsoar",
"currentVersion": "1.0.0",
"currentVersion": "1.0.1",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
4 changes: 4 additions & 0 deletions Packs/Salesforce/ReleaseNotes/1_0_4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

#### Integrations
##### Salesforce
- Maintenance and stability enhancements.
2 changes: 1 addition & 1 deletion Packs/Salesforce/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Salesforce",
"description": "CRM Services",
"support": "xsoar",
"currentVersion": "1.0.3",
"currentVersion": "1.0.4",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
source_networks # unused variable (SophosXGFirewall.py:996)
source_zones # unused variable (SophosXGFirewall.py:996)
destination_networks # unused variable (SophosXGFirewall.py:997)
destination_zones # unused variable (SophosXGFirewall.py:997)
members # unused variable (SophosXGFirewall.py:998)
services # unused variable (SophosXGFirewall.py:998)
destination_zones # unused variable (SophosXGFirewall.py:1147)
source_zones # unused variable (SophosXGFirewall.py:1147)
rules # unused variable (SophosXGFirewall.py:1148)
host_group # unused variable (SophosXGFirewall.py:1188)
urls # unused variable (SophosXGFirewall.py:1259)
hosts # unused variable (SophosXGFirewall.py:1291)

Loading

0 comments on commit 2335263

Please sign in to comment.