Skip to content

Commit

Permalink
demisto-sdk-release 1.33.3 (#37890)
Browse files Browse the repository at this point in the history
* poetry files

* greynoise unit test fix

---------

Co-authored-by: Content Bot <[email protected]>
Co-authored-by: RotemAmit <[email protected]>
  • Loading branch information
3 people authored Jan 2, 2025
1 parent c559b15 commit cf55dbd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
2 changes: 2 additions & 0 deletions Packs/GreyNoise/Integrations/GreyNoise/GreyNoise_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import freezegun
import pytest
import json
import GreyNoise
Expand Down Expand Up @@ -55,6 +56,7 @@ def test_get_ip_reputation_score(input_data, expected_output):
assert response == expected_output


@freezegun.freeze_time("2024-12-30 00:00:00")
@pytest.mark.parametrize("api_key, api_response, status_code, expected_output", test_module_data)
def test_test_module(api_key, api_response, status_code, expected_output, mocker):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

# api_key, api_response, status_code, expected_output
test_module_data = [
("true_key", {"expiration": "2025-01-01", "message": "pong", "offering": "vip"}, 200, "ok"),
("true_key", {"expiration": "2026-01-01", "message": "pong", "offering": "vip"}, 200, "ok"),
("dummy_key", "forbidden", 401, "Unauthenticated. Check the configured API Key."),
("dummy_key", "", 429, "API Rate limit hit. Try after sometime."),
("dummy_key", "Dummy message", 405, "Failed to execute command.\n Error: Dummy message"),
Expand Down
24 changes: 12 additions & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sendgrid = "^6.11"
slack_sdk = "^3.31.0"

[tool.poetry.group.dev.dependencies]
demisto-sdk = "1.33.2" # Only affects GitHub Actions. To control the SDK version elsewhere, modify the infra repo's pyproject file
demisto-sdk = "1.33.3" # Only affects GitHub Actions. To control the SDK version elsewhere, modify the infra repo's pyproject file
pytest = ">=7.1.2"
requests-mock = ">=1.9.3"
pytest-mock = ">=3.7.0"
Expand Down

0 comments on commit cf55dbd

Please sign in to comment.