Skip to content

Commit 16a25d4

Browse files
committed
drop
1 parent 90130a2 commit 16a25d4

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

datadog_checks_dev/tests/test_docker.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
assert_all_discovery_candidates_stable,
1717
compose_file_active,
1818
docker_run,
19-
get_e2e_discovery_metadata,
2019
)
2120
from datadog_checks.dev.subprocess import run_command
2221

@@ -50,31 +49,6 @@ def _container_inspect(*, restart_count=0, running=True, health='healthy', ports
5049
}
5150

5251

53-
def test_get_e2e_discovery_metadata(tmp_path):
54-
check_root = tmp_path / 'test_check'
55-
check_package_root = check_root / 'datadog_checks' / 'test_check'
56-
data_dir = check_package_root / 'data'
57-
data_dir.mkdir(parents=True)
58-
(data_dir / 'auto_conf.yaml').write_text(
59-
'ad_identifiers:\n - test\ndiscovery: {}\ninit_config:\ninstances: []\n',
60-
encoding='utf-8',
61-
)
62-
63-
metadata = get_e2e_discovery_metadata(check_root)
64-
65-
assert metadata == {
66-
'docker_volumes': [
67-
f'{check_package_root}/data/auto_conf.yaml:/etc/datadog-agent/conf.d/test_check.d/auto_conf.yaml:ro',
68-
'/var/run/docker.sock:/var/run/docker.sock:ro',
69-
],
70-
'env_vars': {
71-
'DD_DISCOVERY_SERVICE_COLLECTION_INTERVAL': '10s',
72-
'DD_DISCOVERY_SERVICE_COLLECTION_MIN_PROCESS_AGE': '1s',
73-
},
74-
'cap_add': ['SYS_PTRACE', 'DAC_READ_SEARCH'],
75-
}
76-
77-
7852
class TestComposeFileActive:
7953
def test_down(self):
8054
compose_file = os.path.join(DOCKER_DIR, 'test_default.yaml')

0 commit comments

Comments
 (0)