diff --git a/Packs/GreyNoise/Integrations/GreyNoise/GreyNoise_test.py b/Packs/GreyNoise/Integrations/GreyNoise/GreyNoise_test.py index ef540601920a..24f625df1f67 100644 --- a/Packs/GreyNoise/Integrations/GreyNoise/GreyNoise_test.py +++ b/Packs/GreyNoise/Integrations/GreyNoise/GreyNoise_test.py @@ -1,3 +1,4 @@ +import freezegun import pytest import json import GreyNoise @@ -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): """ diff --git a/Packs/GreyNoise/Integrations/GreyNoise/test_data/input_data.py b/Packs/GreyNoise/Integrations/GreyNoise/test_data/input_data.py index ed63279122e2..ed0b18ef0cee 100644 --- a/Packs/GreyNoise/Integrations/GreyNoise/test_data/input_data.py +++ b/Packs/GreyNoise/Integrations/GreyNoise/test_data/input_data.py @@ -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"), diff --git a/poetry.lock b/poetry.lock index 5158238345bf..830bf829e70c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2,13 +2,13 @@ [[package]] name = "astroid" -version = "3.3.5" +version = "3.3.8" description = "An abstract syntax tree for Python with inference support." optional = false python-versions = ">=3.9.0" files = [ - {file = "astroid-3.3.5-py3-none-any.whl", hash = "sha256:a9d1c946ada25098d790e079ba2a1b112157278f3fb7e718ae6a9252f5835dc8"}, - {file = "astroid-3.3.5.tar.gz", hash = "sha256:5cfc40ae9f68311075d27ef68a4841bdc5cc7f6cf86671b49f00607d30188e2d"}, + {file = "astroid-3.3.8-py3-none-any.whl", hash = "sha256:187ccc0c248bfbba564826c26f070494f7bc964fd286b6d9fff4420e55de828c"}, + {file = "astroid-3.3.8.tar.gz", hash = "sha256:a88c7994f914a4ea8572fac479459f4955eeccc877be3f2d959a33273b0cf40b"}, ] [package.dependencies] @@ -709,13 +709,13 @@ reference = "pypi-public" [[package]] name = "demisto-sdk" -version = "1.33.2" +version = "1.33.3" description = "\"A Python library for the Demisto SDK\"" optional = false python-versions = ">=3.9,<3.13" files = [ - {file = "demisto_sdk-1.33.2-py3-none-any.whl", hash = "sha256:ffa9cbe1f3aeec2fa9af749d3a53ed4b766ba520e167b0767aa6b125e08676ac"}, - {file = "demisto_sdk-1.33.2.tar.gz", hash = "sha256:ee7d1af2d572f4172c3bf3ecd24eaf6e83fdd3860951e3213eb8d20453bbfa36"}, + {file = "demisto_sdk-1.33.3-py3-none-any.whl", hash = "sha256:527bbc13cecd2672cd8ae22ae19e09c7c5b502fb78e450e0850b81c9052fcdc4"}, + {file = "demisto_sdk-1.33.3.tar.gz", hash = "sha256:3f1a79c9bb45e0d69a8e90d034e0f172c50da8c6e64b1cae50f55c5086b3dc98"}, ] [package.dependencies] @@ -762,7 +762,7 @@ prettytable = ">=3.2.0,<4.0.0" pydantic = ">=1.10,<2.0" pygithub = ">=2.2.0,<3.0.0" pykwalify = ">=1.8.0,<2.0.0" -pylint = ">=3.3.1,<4.0.0" +pylint = ">=3.3.2,<4.0.0" PyPDF2 = ">=1.28.6,<2.0.0" pyspellchecker = ">=0.6.3,<0.7.0" pytest-freezegun = ">=0.4.2,<0.5.0" @@ -2687,17 +2687,17 @@ reference = "pypi-public" [[package]] name = "pylint" -version = "3.3.1" +version = "3.3.3" description = "python code static checker" optional = false python-versions = ">=3.9.0" files = [ - {file = "pylint-3.3.1-py3-none-any.whl", hash = "sha256:2f846a466dd023513240bc140ad2dd73bfc080a5d85a710afdb728c420a5a2b9"}, - {file = "pylint-3.3.1.tar.gz", hash = "sha256:9f3dcc87b1203e612b78d91a896407787e708b3f189b5fa0b307712d49ff0c6e"}, + {file = "pylint-3.3.3-py3-none-any.whl", hash = "sha256:26e271a2bc8bce0fc23833805a9076dd9b4d5194e2a02164942cb3cdc37b4183"}, + {file = "pylint-3.3.3.tar.gz", hash = "sha256:07c607523b17e6d16e2ae0d7ef59602e332caa762af64203c24b41c27139f36a"}, ] [package.dependencies] -astroid = ">=3.3.4,<=3.4.0-dev0" +astroid = ">=3.3.8,<=3.4.0-dev0" colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} dill = {version = ">=0.2", markers = "python_version < \"3.11\""} isort = ">=4.2.5,<5.13.0 || >5.13.0,<6" @@ -4553,4 +4553,4 @@ reference = "pypi-public" [metadata] lock-version = "2.0" python-versions = "^3.9,<3.11" -content-hash = "1071f1d17abe29ad0bc7d62d29a212894f10a76e9519240f18372d1634ab9e82" +content-hash = "456f9b85fbae6a1ff461346a3a8d80e40488b38546304491f8560605c973e924" diff --git a/pyproject.toml b/pyproject.toml index de36e9341d55..9eb52bacb242 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"