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