mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 17:28:46 +03:00
12599e7f06
* participant-integration-api: Move test constants to a companion object. TelemetrySpecBase doesn't need to expose those through inheritance. * Avoid mocks in the configuration management service test. * Add tests for `ConfigManagementService.GetTimeModel`. * Add tests for `ConfigManagementService.SetTimeModel`. * Disable configuration management until the ledger has a configuration. CHANGELOG_BEGIN - [API Server] The configuration management service previously returned the participant-specified default configuration if none was found on the ledger. This can be misleading, and so the ``GetTimeModel`` endpoint now returns a gRPC ``NOT_FOUND`` error if no configuration has been found yet. Similarly, the ``SetTimeModel`` endpoint returns a gRPC ``UNAVAILABLE`` error. This should only happen if the participant gives up waiting for the ledger to provide a configuration, which is very unlikely in a production setting. In this case, the ledger will also not respond to command submissions. CHANGELOG_END * participant-integration-api: Extract some test variables for clarity. In ApiConfigManagementServiceSpec. * sandbox: Improve some variable and parameter names in tests for clarity. * Improve the error message in case of a missing ledger configuration. Co-authored-by: Robert Autenrieth <31539813+rautenrieth-da@users.noreply.github.com> * ledger-api-common: Improve an error status constructor name. Co-authored-by: fabiotudone-da <fabio.tudone@digitalasset.com> Co-authored-by: Robert Autenrieth <31539813+rautenrieth-da@users.noreply.github.com> Co-authored-by: fabiotudone-da <fabio.tudone@digitalasset.com> |
||
---|---|---|
.. | ||
collectd | ||
collection | ||
src | ||
BUILD.bazel |