File tree 1 file changed +9
-0
lines changed
dd-smoke-tests/iast-util/src/testFixtures/groovy/datadog/smoketest
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import java.util.concurrent.TimeoutException
18
18
abstract class AbstractIastServerSmokeTest extends AbstractServerSmokeTest {
19
19
20
20
private static final String TAG_NAME = ' _dd.iast.json'
21
+ private static final String IAST_STARTED_MSG = ' IAST started'
21
22
22
23
@Shared
23
24
private final JsonSlurper jsonSlurper = new JsonSlurper ()
@@ -32,6 +33,14 @@ abstract class AbstractIastServerSmokeTest extends AbstractServerSmokeTest {
32
33
return {} // force traces decoding
33
34
}
34
35
36
+ def setupSpec () {
37
+ try {
38
+ processTestLogLines { it. contains(IAST_STARTED_MSG ) }
39
+ } catch (TimeoutException toe) {
40
+ throw new AssertionError (" '$IAST_STARTED_MSG ' not found in logs" , toe)
41
+ }
42
+ }
43
+
35
44
protected static String withSystemProperty (final String config , final Object value ) {
36
45
return " -Ddd.${ config} =${ value} "
37
46
}
You can’t perform that action at this time.
0 commit comments