Skip to content

Commit

Permalink
add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
smola committed Jun 28, 2024
1 parent 3e22b2c commit 931b2e7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ class SpringBootSmokeTest extends AbstractAppSecServerSmokeTest {
waitForTraceCount(1)

then:
rootSpans.size() == 1
rootSpans.each {
assert it.meta.get('appsec.blocked') == null, 'appsec.blocked is set'
assert it.meta.get('_dd.appsec.json') != null, '_dd.appsec.json is not set'
Expand Down Expand Up @@ -290,6 +291,7 @@ class SpringBootSmokeTest extends AbstractAppSecServerSmokeTest {
waitForTraceCount(1)

then:
rootSpans.size() == 1
rootSpans.each {
assert it.meta.get('appsec.blocked') == 'true', 'appsec.blocked is not set'
assert it.meta.get('_dd.appsec.json') != null, '_dd.appsec.json is not set'
Expand Down

0 comments on commit 931b2e7

Please sign in to comment.