assert_data_count
Assert the number of records matching a filter in the data layer via read-only OData, comparing count to expected to validate data integrity or detect orphans.
Instructions
DEPRECATED for a test-client-held base — a «Клиент тестирования» holds the infobase under an
EXCLUSIVE lock, so OData cannot read it; verify via the same client's protocol value-read (read_record /
read_form_descriptor) instead. Assert the NUMBER of records matching a filter in the DATA LAYER. op =
eq|ne|gt|lt|ge|le; e.g. assert a posting created exactly N register rows, or that no orphan remains (op='eq',
expected=0). Read-only OData; valid only against a separately published, non-exclusive endpoint. Returns {ok,
count, expected, op, deprecated, deprecation, ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | eq | |
| user | No | ||
| filter | No | ||
| base_url | No | ||
| expected | Yes | ||
| password | No | ||
| entity_set | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||