Skip to content

Commit 33ce250

Browse files
committed
Create activation origin config for telemetry
Signed-off-by: sezen.leblay <[email protected]>
1 parent 46d0949 commit 33ce250

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

dd-smoke-tests/dynamic-config/src/test/groovy/datadog/smoketest/DynamicServiceMappingSmokeTest.groovy

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)