Skip to content

Commit 06d676b

Browse files
authored
Merge branch 'contrib/munna-metron_SentinelOne-V2-3.2.37' into SentinelOne-V2-3.2.37
2 parents 6ea399f + 9e3773e commit 06d676b

File tree

277 files changed

+14081
-3412
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

277 files changed

+14081
-3412
lines changed

.github/github_workflow_scripts/parse_junit_per_pack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def parse_pack_name(class_name: str):
2424
return parsed_pack_name
2525

2626

27-
def parse_xml(path: Path = Path(".report_pytest.xml")) -> dict[str, float]:
27+
def parse_xml(path: Path = Path("report_pytest.xml")) -> dict[str, float]:
2828
pack_times: defaultdict[str, float] = defaultdict(int)
2929

3030
for suite in ET.parse(path).getroot().findall("testsuite"):

.github/workflows/pre-commit-reuse.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
id: check-pytest-junit-exists
7777
uses: andstor/file-existence-action@v2
7878
with:
79-
files: ".report_pytest.xml"
79+
files: "report_pytest.xml"
8080

8181
- name: Create pack-wise pytest report
8282
run: poetry run python .github/github_workflow_scripts/parse_junit_per_pack.py
@@ -86,7 +86,7 @@ jobs:
8686
github.event.pull_request.head.repo.fork == false
8787
8888
- name: Upload junit & pack-wise pytest report
89-
uses: actions/upload-artifact@v4
89+
uses: PaloAltoNetworks/upload-secure-artifact@v1.0.5
9090
if: |
9191
always() &&
9292
steps.check-pytest-junit-exists.outputs.files_exists == 'true' &&
@@ -95,7 +95,7 @@ jobs:
9595
name: pytest
9696
path: |
9797
packwise_pytest_time.csv
98-
.report_pytest.xml
98+
report_pytest.xml
9999
if-no-files-found: error
100100

101101
- name: Pytest coverage comment
@@ -108,7 +108,7 @@ jobs:
108108
continue-on-error: true # may fail on output > 65k chars
109109
with:
110110
pytest-xml-coverage-path: coverage_report/coverage.xml
111-
junitxml-path: .report_pytest.xml
111+
junitxml-path: report_pytest.xml
112112

113113
- uses: actions/cache/save@v3
114114
if: always()

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Packs/Whois/Integrations/Whois/test_data/microsocks
8484
.pre-commit-config-content.yaml
8585
.report.json
8686
.report_pytest.xml
87+
report_pytest.xml
8788
.report_mypy.xml
8889
coverage.xml
8990
Packs/**/Integrations/**/.pytest.ini

.pre-commit-config_template.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ repos:
154154
- -v
155155
- --override-ini='asyncio_mode=auto'
156156
- --rootdir=/src
157-
- --junitxml=/src/.pre-commit/pytest-junit/.report_pytest.xml
157+
- --junitxml=/src/.pre-commit/pytest-junit/report_pytest.xml
158158
- --color=yes
159159
- --files
160160
args:docker_autoupdate:
@@ -163,7 +163,7 @@ repos:
163163
- -v
164164
- --override-ini='asyncio_mode=auto'
165165
- --rootdir=/src
166-
- --junitxml=/src/.pre-commit/pytest-junit/.report_pytest.xml
166+
- --junitxml=/src/.pre-commit/pytest-junit/report_pytest.xml
167167
- --color=yes
168168
- --files
169169
copy_files:
@@ -193,7 +193,7 @@ repos:
193193
- -v
194194
- --override-ini='asyncio_mode=auto'
195195
- --rootdir=/src
196-
- --junitxml=/src/.pre-commit/pytest-junit/.report_pytest.xml
196+
- --junitxml=/src/.pre-commit/pytest-junit/report_pytest.xml
197197
- --color=yes
198198
copy_files:
199199
- Tests/scripts/dev_envs/pytest/conftest.py

Documentation/common_server_docs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"BaseHTTPClient", "DemistoHandler", "DebugLogger", "FeedIndicatorType", "Indicator",
3232
"IndicatorType", "EntryType", "EntryFormat", "abstractmethod",
3333
"HTTPAdapter", "Retry", "Common", "randint", "GetDemistoVersion", "get_demisto_version",
34-
"BaseWidget", "UTC", "WarningsHandler", "__line__", "_find_relevant_module"]
34+
"BaseWidget", "UTC", "WarningsHandler", "__line__", "_find_relevant_module", "register_module_line",
35+
"fix_traceback_line_numbers"]
3536

3637
PY_IRREGULAR_FUNCS = {"LOG": {"argList": ["message"]}}
3738

Packs/Akamai_SIEM/Integrations/Akamai_SIEM/Akamai_SIEM.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ def fetch_events_command(
550550
"please run 'akamai-siem-reset-offset' on the specific instance.\n" \
551551
'For more information, please refer to the Troubleshooting section in the integration documentation.\n' \
552552
f'original error: [{e}]'
553+
reset_offset_command(client)
553554
raise DemistoException(err_msg)
554555
else:
555556
raise DemistoException(e)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Integrations
3+
4+
##### Akamai WAF SIEM
5+
6+
- Fixed an issue where auto offset reset didn't work for **fetch-events**.

Packs/Akamai_SIEM/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Akamai WAF SIEM",
33
"description": "Use the Akamai WAF SIEM integration to retrieve security events from Akamai Web Application Firewall (WAF) service.",
44
"support": "xsoar",
5-
"currentVersion": "1.2.2",
5+
"currentVersion": "1.2.3",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

Packs/ApiModules/Scripts/CoreIRApiModule/CoreIRApiModule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2459,7 +2459,7 @@ def form_powershell_command(unescaped_string: str) -> str:
24592459
else:
24602460
escaped_string += char
24612461

2462-
return f"powershell -Command '{escaped_string}'"
2462+
return f"powershell -Command \"{escaped_string}\""
24632463

24642464

24652465
def run_script_execute_commands_command(client: CoreClient, args: Dict) -> CommandResults:

Packs/ApiModules/Scripts/CoreIRApiModule/CoreIRApiModule_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
POWERSHELL_COMMAND_CASES = [
2525
pytest.param(
2626
"Write-Output 'Hello, world, it`s me!'",
27-
"powershell -Command 'Write-Output ''Hello, world, it`s me!'''",
27+
"powershell -Command \"Write-Output ''Hello, world, it`s me!''\"",
2828
id='Hello World message',
2929
),
3030
pytest.param(
3131
r"New-Item -Path 'C:\Users\User\example.txt' -ItemType 'File'",
32-
"powershell -Command 'New-Item -Path ''C:\\Users\\User\\example.txt'' -ItemType ''File'''",
32+
"powershell -Command \"New-Item -Path ''C:\\Users\\User\\example.txt'' -ItemType ''File''\"",
3333
id='New file in path with backslashes',
3434
),
3535
pytest.param(
3636
"$message = 'This is a test with special chars: `&^%$#@!'; Write-Output $message",
37-
"powershell -Command '$message = ''This is a test with special chars: `&^%$#@!''; Write-Output $message'",
37+
"powershell -Command \"$message = ''This is a test with special chars: `&^%$#@!''; Write-Output $message\"",
3838
id='Special characters message',
3939
),
4040
pytest.param(
@@ -46,11 +46,11 @@
4646
"$sessionId = $sessionInfo[2]; if ($users -contains $username) { logoff $sessionId } } }"
4747
),
4848
(
49-
"powershell -Command '$users = @(JohnDoe) -split '';''; query user | Select-Object -Skip 1 | "
49+
"powershell -Command \"$users = @(JohnDoe) -split '';''; query user | Select-Object -Skip 1 | "
5050
"ForEach-Object { $sessionInfo = $_ -split ''\\s+'' | "
5151
"Where-Object { $_ -ne '''' -and $_ -notlike ''Disc'' }; "
5252
"if ($sessionInfo.Length -ge 6) { $username = $sessionInfo[0].TrimStart(''>''); "
53-
"$sessionId = $sessionInfo[2]; if ($users -contains $username) { logoff $sessionId } } }'"
53+
"$sessionId = $sessionInfo[2]; if ($users -contains $username) { logoff $sessionId } } }\""
5454
),
5555
id='End RDP session for users',
5656
),

0 commit comments

Comments
 (0)