Skip to content

Commit 6f77853

Browse files
committed
test(libdatadog): Add test for phase 1
1 parent ca62de8 commit 6f77853

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

tests/internal/test_native.py

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
from ddtrace.internal.native import get_configuration_from_disk
22

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"}
316

4-
def test_get_configuration_from_disk(tmp_path):
17+
def test_get_configuration_from_disk__service_selector(tmp_path):
518
# First test -- config matches & should be returned
619
config_1 = tmp_path / "config_1.yaml"
720
config_1.write_text(

0 commit comments

Comments
 (0)