16 lines
602 B
Python
16 lines
602 B
Python
|
|
from pathlib import Path
|
||
|
|
|
||
|
|
|
||
|
|
REPO_ROOT = Path(__file__).resolve().parents[2]
|
||
|
|
DOCKER_COMPOSE = REPO_ROOT / "docker-compose.yml"
|
||
|
|
|
||
|
|
|
||
|
|
def test_lsfx_mock_service_receives_ccdi_db_defaults():
|
||
|
|
compose_text = DOCKER_COMPOSE.read_text(encoding="utf-8")
|
||
|
|
|
||
|
|
assert 'CCDI_DB_HOST: ${CCDI_DB_HOST:-192.168.0.111}' in compose_text
|
||
|
|
assert 'CCDI_DB_PORT: ${CCDI_DB_PORT:-40627}' in compose_text
|
||
|
|
assert 'CCDI_DB_NAME: ${CCDI_DB_NAME:-ccdi}' in compose_text
|
||
|
|
assert 'CCDI_DB_USERNAME: ${CCDI_DB_USERNAME:-root}' in compose_text
|
||
|
|
assert 'CCDI_DB_PASSWORD: ${CCDI_DB_PASSWORD:-Kfcx@1234}' in compose_text
|