mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-16 22:40:54 +02:00
16 lines
582 B
Python
16 lines
582 B
Python
import pytest
|
|
|
|
pytestmark = pytest.mark.docker
|
|
|
|
|
|
def test_version_docker_platform(crowdsec, flavor: str) -> None:
|
|
with crowdsec(flavor=flavor) as cs:
|
|
for waiter in cs.log_waiters():
|
|
with waiter as matcher:
|
|
matcher.fnmatch_lines(["*Starting processing data*"])
|
|
res = cs.cont.exec_run("cscli version")
|
|
assert res.exit_code == 0
|
|
assert "Platform: docker" in res.output.decode()
|
|
res = cs.cont.exec_run("crowdsec -version")
|
|
assert res.exit_code == 0
|
|
assert "Platform: docker" in res.output.decode()
|