Skip to content

Commit

Permalink
Add stop propagation test
Browse files Browse the repository at this point in the history
  • Loading branch information
jandro996 committed Jun 7, 2024
1 parent 5dff8ed commit ce7a934
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,26 @@ class CorePropagationTest extends DDCoreSpecification {
root.finish()
tracer.close()
}

def 'test ASM standalone billing stop propagation'() {
setup:
injectSysConfig("experimental.appsec.standalone.enabled", "true")
def tracer = tracerBuilder().build()
def span = tracer.buildSpan('test', 'operation').start()
def setter = Mock(AgentPropagation.Setter)
def carrier = new Object()

when:
propagation.inject(span, carrier, setter)

then:
0 * datadogInjector.inject(_, carrier, setter)
0 * b3Injector.inject(_, carrier, setter)
0 * traceContextInjector.inject(_, carrier, setter)
0 * dataStreamContextInjector.injectPathwayContext(_, carrier, setter, _)

cleanup:
span.finish()
tracer.close()
}
}

0 comments on commit ce7a934

Please sign in to comment.