Integration testing across API, logs and database
Checkcraft is a desktop app for checking APIs and logs without code, with a free edition. Download, no sign-up →
A request was accepted but the order never appeared downstream. Follow one operation across the integration boundary.
Define the boundary
The illustrative orders service accepts an orderId and a downstream service stores READY. Agree a correlation key and an acceptable propagation delay. This is a testing pattern, not a ready-made connector to a particular CRM or payment service.
Correlate the request and logs
Save the test request and assert its status and fields. Select logs for the same operation. Filtering only for ERROR may hide earlier evidence. Define expected events instead of accepting any matching log.

Verify the downstream state
With authorized database access, Pro can perform a SELECT verification after the API request. Allow an agreed persistence timeout for asynchronous work. A record that has not arrived yet differs from one that never arrives.
Adapt the assertion
An e-commerce check may target an order total, a logistics check a shipment status and an EdTech check access to a lesson. Each needs its own contract. Checking an API gateway endpoint does not audit the gateway. Checking an event-driven outcome does not imply a native message broker client.

Hand the workflow to support
Save the request, expected events, environment and report. Support can repeat that operation after a configuration change. One passing workflow does not certify the whole distributed system.
Integration types and what breaks
| Integration type | Example | What breaks most |
|---|---|---|
| Synchronous REST or gRPC | Orders call the warehouse | Timeouts, partner error codes, date formats |
| SOAP | Exchange with a bank or ERP | Namespaces, encoding, SOAP Fault |
| Queues and events | Kafka, RabbitMQ | Lost and duplicated messages, ordering |
| Files | CSV upload to SFTP | Encoding, delimiters, partial upload |
| Shared database | Two services write one table | Races, locks, different formats |
Integration checklist
- Contract: request and response formats match the spec on both sides.
- Authorization: partner token or certificate, expiry, refresh.
- Timeouts and retries: what happens if the partner answers in 30 seconds or not at all.
- Idempotency: resending the same request does not create a duplicate.
- Partner errors: 4xx, 5xx and an unexpected format are handled, not crashing the service.
- Data mapping: fields, dictionaries, dates, time zones and currencies map correctly.
- Final state: our database and logs hold what they should.
Checking an asynchronous chain
The hardest part of integrations is operations that go through a queue. The first response comes at once, the result appears later in another service.
- Send the request and keep the operation id or traceId.
- Find records with that id in the logs of every participant.
- Wait for the final status with retries and a timeout, not one immediate check.
- Check the final state in the database or with a follow-up GET.
If the id is lost on the queue, the chain cannot be assembled, see what a traceId is.
Stubs and contract tests
| Approach | When | Risk |
|---|---|---|
| Real partner stand | Final check before release | Stand down or holding other people's data |
| Partner mock or stub | Partner not ready or cannot return the needed error | Mock drifts from reality |
| Contract tests (Pact and similar) | Many teams change APIs independently | Both sides must agree |
A quick stub is covered in local API mock.
Frequently asked questions
What should an integration test check?
Contract, authorization, timeouts and retries, idempotency, partner error handling, data mapping and the final state in the database and logs.
How do I test an integration through a queue?
Keep the operation id, find records with it in every participant's logs, wait for the final status with retries and check the end state.
Repeat this on your own API
Checkcraft is a desktop app that saves API response checks without code and shows what did not match. Start with a sample, then use your own sanitized data. Free runs on Windows and Linux with no time limit.
Download FreeDownload and first runNo sign-up or email needed, the archive is ready in a couple of minutes. See the edition limits.
Start with the linked example and compare its result with your own test requirement.