Skip to content

Comments

[Java] Enable tests/appsec/test_span_tags_headers.py#6355

Draft
jandro996 wants to merge 4 commits intomainfrom
alejandro.gonzalez/APPSEC-61289
Draft

[Java] Enable tests/appsec/test_span_tags_headers.py#6355
jandro996 wants to merge 4 commits intomainfrom
alejandro.gonzalez/APPSEC-61289

Conversation

@jandro996
Copy link
Member

Motivation

Enable tests/appsec/test_span_tags_headers.py for java

Changes

Upgrade weblog endpoints endpoints and enable in yml file

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner.
    • Framework is modified, or non obvious usage of it -> get a review from R&P team

🚀 Once your PR is reviewed and the CI green, you can merge it!

🛟 #apm-shared-testing 🛟

Reviewer checklist

  • Anything but tests/ or manifests/ is modified ? I have the approval from R&P team
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added, removed or renamed?

@github-actions
Copy link
Contributor

CODEOWNERS have been resolved as:

manifests/java.yml                                                      @DataDog/asm-java @DataDog/apm-java
utils/build/docker/java/akka-http/src/main/scala/com/datadoghq/akka_http/AppSecRoutes.scala  @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/jersey-grizzly2/src/main/java/com/datadoghq/jersey/MyResource.java  @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/play/app/controllers/AppSecController.scala     @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/ratpack/src/main/java/com/datadoghq/ratpack/Main.java  @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/resteasy-netty3/src/main/java/com/datadoghq/resteasy/MyResource.java  @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/spring-boot-3-native/src/main/java/com/datadoghq/springbootnative/WebController.java  @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/spring-boot/src/main/java/com/datadoghq/system_tests/springboot/App.java  @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/vertx3/src/main/java/com/datadoghq/vertx3/Main.java  @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core
utils/build/docker/java/vertx4/src/main/java/com/datadoghq/vertx4/Main.java  @DataDog/apm-java @DataDog/asm-java @DataDog/system-tests-core

@datadog-datadog-prod-us1-2
Copy link

datadog-datadog-prod-us1-2 bot commented Feb 20, 2026

⚠️ Tests

Fix all issues with BitsAI or with Cursor

⚠️ Warnings

🧪 24 Tests failed

tests.appsec.test_span_tags_headers.Test_Headers_Event_Blocking.test_content_type_event_blocking[akka-http] from system_tests_suite (Datadog) (Fix with Cursor)
AssertionError: Expected content-type, got None
assert None

self = <tests.appsec.test_span_tags_headers.Test_Headers_Event_Blocking object at 0x7f01282df140>

    def test_content_type_event_blocking(self):
        # Send a request that triggers a blocking security event - should have the content-type and content-length tags
        assert self.r.status_code == 403
        interfaces.library.assert_waf_attack(self.r, rule="arachni_rule")
        # content-length is optional on blocking response
...
tests.appsec.test_span_tags_headers.Test_Headers_Event_Blocking.test_content_type_event_blocking[play] from system_tests_suite (Datadog) (Fix with Cursor)
AssertionError: Expected content-type, got None
assert None

self = <tests.appsec.test_span_tags_headers.Test_Headers_Event_Blocking object at 0x7fe761d00980>

    def test_content_type_event_blocking(self):
        # Send a request that triggers a blocking security event - should have the content-type and content-length tags
        assert self.r.status_code == 403
        interfaces.library.assert_waf_attack(self.r, rule="arachni_rule")
        # content-length is optional on blocking response
...
tests.appsec.test_span_tags_headers.Test_Headers_Event_Blocking.test_content_type_event_blocking[ratpack] from system_tests_suite (Datadog) (Fix with Cursor)
AssertionError: Expected content-type, got None
assert None

self = <tests.appsec.test_span_tags_headers.Test_Headers_Event_Blocking object at 0x7f0ee490c290>

    def test_content_type_event_blocking(self):
        # Send a request that triggers a blocking security event - should have the content-type and content-length tags
        assert self.r.status_code == 403
        interfaces.library.assert_waf_attack(self.r, rule="arachni_rule")
        # content-length is optional on blocking response
...
View all

ℹ️ Info

❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 85cd7a0 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant