Skip to content

Commit

Permalink
[python] update test from bug to missing feature (#3750)
Browse files Browse the repository at this point in the history
  • Loading branch information
avara1986 authored Jan 13, 2025
1 parent db04b2a commit 009bbc9
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions tests/appsec/iast/source/test_parameter_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,21 @@ class TestParameterName(BaseSourceTest):
reason="Tainted as request body",
)
@bug(weblog_variant="resteasy-netty3", reason="APPSEC-55687")
@bug(library="python", reason="APPSEC-55689")
@missing_feature(library="dotnet", reason="Tainted as request body")
@missing_feature(
context.library == "python" and context.weblog_variant in ["django-poc", "python3.12"],
reason="Tainted as request body",
)
def test_source_post_reported(self):
"""for use case where only one is reported, we want to keep a test on the one reported"""
self.validate_request_reported(self.requests["POST"])

setup_source_get_reported = BaseSourceTest.setup_source_reported

@bug(context.library < "[email protected]" and context.weblog_variant == "jersey-grizzly2", reason="APPSEC-55387")
@bug(
context.library < "[email protected]" and context.weblog_variant == "jersey-grizzly2",
reason="APPSEC-55387",
)
@bug(weblog_variant="resteasy-netty3", reason="APPSEC-55687")
def test_source_get_reported(self):
"""for use case where only one is reported, we want to keep a test on the one reported"""
Expand All @@ -44,10 +50,16 @@ def test_source_get_reported(self):
context.library == "nodejs" and context.weblog_variant in ["express4", "express5"],
reason="Tainted as request body",
)
@bug(context.library < "[email protected]" and context.weblog_variant == "jersey-grizzly2", reason="APPSEC-55387")
@bug(
context.library < "[email protected]" and context.weblog_variant == "jersey-grizzly2",
reason="APPSEC-55387",
)
@bug(weblog_variant="resteasy-netty3", reason="APPSEC-55687")
@bug(library="python", reason="APPSEC-55689")
@missing_feature(library="dotnet", reason="Tainted as request body")
@missing_feature(
context.library == "python" and context.weblog_variant in ["django-poc", "python3.12"],
reason="Tainted as request body",
)
def test_source_reported(self):
super().test_source_reported()

Expand Down

0 comments on commit 009bbc9

Please sign in to comment.