Skip to content

CICD-338 · Message queue integration testing ​

Encyclopedia · Distributed systems and reliability testing · All snippets

Previous · CICD-337 · Next · CICD-339

1. Where it fits ​

  • Placement CI run step.
  • Prerequisites disposable integration environment, synthetic traffic and controlled test faults.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
docker compose up -d --wait queue
pytest -q tests/test_queue_delivery.py

3. How it works ​

Compose starts the selected project services. With --wait, completion depends on running or healthy state under its project configuration. Pytest discovers the selected test files or markers and returns a process exit status reflecting the test outcome.

4. Verify the result ​

Exercise publish, consume and acknowledgement against a disposable broker. Verify redelivery after a consumer exits before ack.

Validation syntax-validated (Bash parse). Status definitions.