File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 1
1
from ddtrace .internal .native import get_configuration_from_disk
2
2
3
3
4
- def test_get_configuration_from_disk (tmp_path ):
4
+ 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 ):
5
20
# First test -- config matches & should be returned
6
21
config_1 = tmp_path / "config_1.yaml"
7
22
config_1 .write_text (
You can’t perform that action at this time.
0 commit comments