daml/libs-scala
Samir Talwar 45ed615891
participant-integration-api: Use Scheduler, and add more tests to configuration initialization. [KVL-1046] (#10461)
* participant-integration-api: Use `Scheduler` instead of `Materializer`.

Simpler API, and we can inject a test scheduler to make the tests more
reliable.

CHANGELOG_BEGIN
CHANGELOG_END

* participant-integration-api: Use a test scheduler in tests.

This makes the tests faster and more reliable.

* participant-integration-api: Cancel timeout when the config is found.

* participant-integration-api: Fail properly if config lookup fails.

* participant-integration-api: Handle failures in provisioning config.

* participant-integration-api: Test shutting down the config provisioner.

* participant-integration-api: Use the scheduler cancellations.

More useful than a boolean.

* participant-integration-api: Handle submission ID generation failure.

Unfortunately this is untestable, because the only output is logging,
which we can't test right now.

* resources-akka: Add `ResourceOwner.forCancellable`.

* participant-integration-api: Simplify the config provisioner.

This makes it a set of functions; we don't need a class. There is no
exposed behavior.

* participant-integration-api: Use the services EC to initialize config.

* participant-integration-api: Add comments around `release`.

Co-authored-by: fabiotudone-da <fabio.tudone@digitalasset.com>

* Revert "participant-integration-api: Handle submission ID generation failure."

This reverts commit 72b13771a7.

* participant-integration-api: Factor out a `LedgerConfigProvider` class.

Again.

TBH, it is cleaner than multiple parameter methods.

Also adds more Scaladoc.

* resources-akka: `ResourceOwner.forCancellable` is now generic.

It returns whatever type the `acquire` function returns, to allow for
subtypes of `Cancellable`.

Co-authored-by: fabiotudone-da <fabio.tudone@digitalasset.com>
2021-08-03 14:49:00 +00:00
..
adjustable-clock update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
auth-utils update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
build-info update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
concurrent Switch from @silent to @nowarn. (#9498) 2021-04-26 19:46:14 +00:00
contextualized-logging participant-integration-api: Fix completion debug log output. (#10415) 2021-07-27 12:53:38 +00:00
doobie-slf4j Add //libs-scala/doobie-slf4j and replace usages of jdkLogHandler (#8731) 2021-02-03 10:45:05 +00:00
flyway-testing Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00
fs-utils Example export (#9756) 2021-05-21 09:36:25 +02:00
gatling-utils prepare for upgrade to Scalaz 7.3.3 (#9997) 2021-06-15 14:41:48 -04:00
grpc-reverse-proxy Enhance grpc-test-utils and grpc-reverse-proxy to use Resources (#8606) 2021-01-25 13:27:48 +01:00
grpc-server-reflection-client Enhance grpc-test-utils and grpc-reverse-proxy to use Resources (#8606) 2021-01-25 13:27:48 +01:00
grpc-test-utils Enhance grpc-test-utils and grpc-reverse-proxy to use Resources (#8606) 2021-01-25 13:27:48 +01:00
grpc-utils Enhance grpc-test-utils and grpc-reverse-proxy to use Resources (#8606) 2021-01-25 13:27:48 +01:00
logging-entries Move logging value definitions alongside their objects. (#10439) 2021-07-29 09:21:27 +00:00
nameof Publish nameof library (#9798) 2021-05-26 09:58:02 +00:00
oracle-testing HA PoC behind a feature flag [DPP-426] (#10227) 2021-07-22 00:36:32 +02:00
ports Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00
postgresql-testing Add runner for non-repudiation (#9076) 2021-03-11 10:57:50 +01:00
resources resources: Only mutate test mock objects inside synchronized blocks. (#9869) 2021-06-01 12:50:42 +00:00
resources-akka participant-integration-api: Use Scheduler, and add more tests to configuration initialization. [KVL-1046] (#10461) 2021-08-03 14:49:00 +00:00
resources-grpc Restrict extensibility of ServerResourceOwner (#8660) 2021-01-28 10:47:28 +00:00
scala-utils use a single SQL query for any number of json-api query pairs (#10344) 2021-07-23 17:13:55 +00:00
scalatest-utils Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00
timer-utils Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00