daml/ledger/ledger-api-test-tool
Simon Meier 6c7e33cafe
Add Ledger API feature descriptor for user management. (#12095)
* Add Ledger API feature descriptor for user management.

Includes:
- enabling the UserManagementServiceIT tests by default; and skipping them for ledgers that do not support user management. The correct working of this is tested by the cross-version compatibility checks between the ledger-api-test-tool
- some refactoring wrt the parsing and representation of features the the ledger-api-test tool.

CHANGELOG_BEGIN
- [Ledger API]: introduce a feature descriptor for whether the ledger supports user management
CHANGELOG_END
2021-12-14 11:00:29 +01:00
..
src Add Ledger API feature descriptor for user management. (#12095) 2021-12-14 11:00:29 +01:00
BUILD.bazel [Self-service error codes] Adapt Sandbox classic rejection error codes (#11622) 2021-11-12 16:33:02 +00:00
conformance.bzl bazel-tools: Replace runner with either runner_with_port_check or runner_with_port_file. (#10615) 2021-08-18 15:23:45 +00:00
README.md Command dedup conformance suites readme (#11051) 2021-09-29 19:43:17 -07:00
test-extract.sh Fix --extract option in ledger api test tool (#9029) 2021-03-04 18:32:18 +00:00
util.bzl [Self-service error codes] Enabled by default [DPP-691] (#11685) 2021-11-22 12:26:48 +00:00

Command deduplication test suites

As different ledgers have different support for command deduplication, we provide multiple test suites which try to be as comprehensive as possible for all the various ledgers

  • default - is it a default test suite which does not need to be included explicitly
  • append-only - Requires the schema to be append-only because we use the submission id set in the completion, which is present only for append-only schemas
  • configuration-required - If it requires specific settings to be set for the ledger configuration
Name Default Append only Configuration required Details
CommandDeduplicationIT Yes No No Tests participant deduplication
KVCommandDeduplicationIT No No minSkew set to 1 second. maxDeduplicationDuration has to be < 5s Extends the test cases from CommandDeduplicationIT with committer side test cases. Requires the time model update because KV committer deduplication is based on maxDeduplicationDuration + minSkew
AppendOnlyKVCommandDeduplicationIT No Yes Same as KVCommandDeduplicationIT Same as KVCommandDeduplicationIT but it requires an append-only schema so that we have access to the submission id
AppendOnlyCommandDeduplicationParallelIT No Yes No Requires append only schema so that we have access to the submission id.