File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
dd-smoke-tests/dynamic-config/src/test/groovy/datadog/smoketest Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -41,5 +41,24 @@ class DynamicServiceMappingSmokeTest extends AbstractSmokeTest {
4141 then :
4242 assert testedProcess. waitFor(TIMEOUT_SECS , SECONDS )
4343 assert testedProcess. exitValue() == 0
44+
45+ // Verify that remote config was sent via telemetry
46+ def telemetry = waitForTelemetryFlat()
47+ assert telemetry. any { it. request_type == " app-configurations" }
48+
49+ def configTelemetry = telemetry. find { it. request_type == " app-configurations" }
50+ assert configTelemetry != null
51+
52+ // Verify that the configuration contains remote config origin
53+ def configurations = configTelemetry. payload. configurations
54+ assert configurations != null
55+ assert configurations. any { it. origin == " remote_config" }
56+
57+ // Verify that the service mapping config is present with remote origin
58+ def serviceMappingConfig = configurations. find {
59+ it. name == " tracing_service_mapping" && it. origin == " remote_config"
60+ }
61+ assert serviceMappingConfig != null
62+ assert serviceMappingConfig. value != null
4463 }
4564}
You can’t perform that action at this time.
0 commit comments