Skip to content

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

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

[Java] Enable tests/appsec/test_span_tags_headers.py#6355
jandro996 wants to merge 8 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

🧪 3 Tests failed

tests.appsec.test_span_tags_headers.Test_Headers_Event_Blocking.test_content_type_event_blocking[resteasy-netty3] 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 0x7f25d1308500>

    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_No_Blocking.test_content_type_event[play] from system_tests_suite (Datadog) (Fix with Cursor)
AssertionError: Expected content-type header to be text/plain; charset=UTF-8, got text/plain; charset=UTF-8,text/plain
assert 'text/plain; charset=UTF-8' == 'text/plain; ...-8,text/plain'
  - text/plain; charset=UTF-8,text/plain
  ?                          -----------
  + text/plain; charset=UTF-8

self = <tests.appsec.test_span_tags_headers.Test_Headers_Event_No_Blocking object at 0x7f5f3c7f4d10>

    def test_content_type_event(self):
        # Send a request that triggers a security event but not blocking - should have the content-type and content-length tags
...
tests.appsec.test_span_tags_headers.Test_Headers_No_Event.test_content_type_no_event[play] from system_tests_suite (Datadog) (Fix with Cursor)
AssertionError: Expected content-type header to be text/plain; charset=UTF-8, got text/plain; charset=UTF-8,text/plain
assert 'text/plain; charset=UTF-8' == 'text/plain; ...-8,text/plain'
  - text/plain; charset=UTF-8,text/plain
  ?                          -----------
  + text/plain; charset=UTF-8

self = <tests.appsec.test_span_tags_headers.Test_Headers_No_Event object at 0x7f5f3c7c7ce0>

    def test_content_type_no_event(self):
        # Send a non-malicious request with no triggered rules - should have the content-type and content-length tags
...

ℹ️ Info

❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: e32e747 | 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