@@ -8,10 +8,10 @@ import spock.lang.Specification
8
8
import spock.lang.Timeout
9
9
10
10
@Timeout (30 )
11
- @IgnoreIf (reason = " SecurityManager is permanently disabled as of JDK 24" , value = {
12
- JavaVirtualMachine .isJavaVersionAtLeast(24 )
13
- })
14
11
class InitializationTelemetryTest extends Specification {
12
+ @IgnoreIf (reason = " SecurityManager is permanently disabled as of JDK 24" , value = {
13
+ JavaVirtualMachine .isJavaVersionAtLeast(24 )
14
+ })
15
15
def " block agent start-up" () {
16
16
// In this case, the SecurityManager blocks loading of the Premain Class,
17
17
// so the JVM is expected to terminate with an error
@@ -53,6 +53,9 @@ class InitializationTelemetryTest extends Specification {
53
53
agent. close()
54
54
}
55
55
56
+ @IgnoreIf (reason = " SecurityManager is permanently disabled as of JDK 24" , value = {
57
+ JavaVirtualMachine .isJavaVersionAtLeast(24 )
58
+ })
56
59
def " incomplete agent start-up" () {
57
60
// In this case, the SecurityManager blocks a custom permission that is checked by bytebuddy causing
58
61
// agent initialization to fail. However, we should catch the exception allowing the application
@@ -66,6 +69,9 @@ class InitializationTelemetryTest extends Specification {
66
69
result. telemetryJson. contains(' error_type:java.lang.IllegalStateException' )
67
70
}
68
71
72
+ @IgnoreIf (reason = " SecurityManager is permanently disabled as of JDK 24" , value = {
73
+ JavaVirtualMachine .isJavaVersionAtLeast(24 )
74
+ })
69
75
def " block forwarder env var" () {
70
76
// In this case, the SecurityManager blocks access to the forwarder environment variable,
71
77
// so the tracer is unable to report initialization telemetry
@@ -78,6 +84,9 @@ class InitializationTelemetryTest extends Specification {
78
84
result. telemetryJson == null
79
85
}
80
86
87
+ @IgnoreIf (reason = " SecurityManager is permanently disabled as of JDK 24" , value = {
88
+ JavaVirtualMachine .isJavaVersionAtLeast(24 )
89
+ })
81
90
def " block forwarder execution" () {
82
91
// In this case, the SecurityManager blocks access to process execution, so the tracer is
83
92
// unable to invoke the forwarder executable
0 commit comments