# Integration testing across API, logs and database

Source: https://checkcraft.ru/en/guides/integration-testing-workflow.html · updated 2026-11-24

Verify an HTTP request, correlated logs and a database record for one operation. A workflow for integration engineers and architects.

Practical workflow

Checkcraft is a desktop app for checking APIs and logs without code, with a free edition. [Download, no sign-up →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

A request was accepted but the order never appeared downstream. Follow one operation across the integration boundary.

Checkcraft · 10 October 2026

Get help with your first test →

## 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.

Repeating checks like this by hand? Checkcraft saves them and reruns them in one click. [Download Free →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

## 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

1. Contract: request and response formats match the spec on both sides.
2. Authorization: partner token or certificate, expiry, refresh.
3. Timeouts and retries: what happens if the partner answers in 30 seconds or not at all.
4. Idempotency: resending the same request does not create a duplicate.
5. Partner errors: 4xx, 5xx and an unexpected format are handled, not crashing the service.
6. Data mapping: fields, dictionaries, dates, time zones and currencies map correctly.
7. 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.

1. Send the request and keep the operation id or traceId.
2. Find records with that id in the logs of every participant.
3. Wait for the final status with retries and a timeout, not one immediate check.
4. 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](https://checkcraft.ru/en/guides/trace-id.html).

## 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](https://checkcraft.ru/en/guides/local-api-mock.html).

Next step

## 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 Free](https://checkcraft.ru/en/download-checkcraft.html#free-download) · [Download and first run](https://checkcraft.ru/en/download-checkcraft.html)

No sign-up or email needed, the archive is ready in a couple of minutes. See the [edition limits](https://checkcraft.ru/en/pricing.html).

## Continue with a related task

[Automate API and log checks with Kibana](https://checkcraft.ru/en/guides/api-kibana-workflow.html) · [Chain API requests with extracted variables](https://checkcraft.ru/en/guides/api-request-chains.html) · [Verify database persistence after an API request](https://checkcraft.ru/en/guides/api-database-verification.html)

Start with the linked example and compare its result with your own test requirement.

Ask a person

## Get help with your first test

Tell us what you want to test or where you got stuck. We can help you start Checkcraft, choose an example and understand your first run. You can ask before downloading.

[Ask in Telegram](https://t.me/checkcraftchat)Send an email

The Telegram group is public: do not post passwords, tokens or confidential work data. A description of your task is enough to start.

You can also email us support@checkcraft.ru

Page card: /ai/pages/en/guides/integration-testing-workflow.md
