-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python] update test from bug to missing feature (#3750)
- Loading branch information
Showing
1 changed file
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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""" | ||
|
@@ -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() | ||
|
||
|