File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
dd-smoke-tests/dynamic-config/src/test/groovy/datadog/smoketest Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class DynamicServiceMappingSmokeTest extends AbstractSmokeTest {
23
23
processBuilder. directory(new File (buildDirectory))
24
24
}
25
25
26
- def " Updated service mapping observed " () {
26
+ def " Remote config changes are sent via telemetry with correct origin " () {
27
27
when :
28
28
def newConfig = """
29
29
{
@@ -41,5 +41,21 @@ class DynamicServiceMappingSmokeTest extends AbstractSmokeTest {
41
41
then :
42
42
assert testedProcess. waitFor(TIMEOUT_SECS , SECONDS )
43
43
assert testedProcess. exitValue() == 0
44
+
45
+ // Verify that remote config was sent via telemetry
46
+ def telemetry = waitForTelemetryFlat { it. request_type == " app-client-configuration-change" }
47
+ assert telemetry != null
48
+
49
+ // Verify that the configuration contains remote config origin
50
+ def configurations = telemetry. payload. configuration
51
+ assert configurations != null
52
+ assert configurations. any { it. origin == " remote_config" }
53
+
54
+ // Verify that the service mapping config is present with remote origin
55
+ def serviceMappingConfig = configurations. find {
56
+ it. name == " tracing_service_mapping" && it. origin == " remote_config"
57
+ }
58
+ assert serviceMappingConfig != null
59
+ assert serviceMappingConfig. value != null
44
60
}
45
61
}
You can’t perform that action at this time.
0 commit comments