mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
14 lines
484 B
Python
14 lines
484 B
Python
import pytest
|
|
|
|
pytestmark = pytest.mark.docker
|
|
|
|
|
|
# XXX this is redundant, already tested in pytest_cs
|
|
def test_crowdsec(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('sh -c "echo $CI_TESTING"')
|
|
assert res.exit_code == 0
|
|
assert res.output.decode().strip() == "true"
|