We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca62de8 commit 6f77853Copy full SHA for 6f77853
tests/internal/test_native.py
@@ -1,7 +1,20 @@
1
from ddtrace.internal.native import get_configuration_from_disk
2
3
+def test_get_configuration_from_disk__host_selector(tmp_path):
4
+ # First test -- config matches & should be returned
5
+ config_1 = tmp_path / "config_1.yaml"
6
+ config_1.write_text(
7
+ """
8
+apm_configuration_default:
9
+ DD_RUNTIME_METRICS_ENABLED: true
10
+""",
11
+ encoding="utf-8",
12
+ )
13
+
14
+ config = get_configuration_from_disk(file_override=str(config_1))
15
+ assert config == {"DD_RUNTIME_METRICS_ENABLED": "true"}
16
-def test_get_configuration_from_disk(tmp_path):
17
+def test_get_configuration_from_disk__service_selector(tmp_path):
18
# First test -- config matches & should be returned
19
config_1 = tmp_path / "config_1.yaml"
20
config_1.write_text(
0 commit comments