Skip to content

Commit

Permalink
Run ledger-api-test-tool tests on ledger-on-sql with PostgreSQL (#12616)
Browse files Browse the repository at this point in the history
changelog_begin
changelog_end
  • Loading branch information
tudor-da authored Jan 27, 2022
1 parent 89ce7d0 commit f396da5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions ledger/ledger-api-test-tool/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ conformance_test(
],
lf_versions = lf_version_configuration_versions,
ports = [6865],
server = "//ledger/ledger-on-memory:app",
server = "//ledger/ledger-on-sql:test-server-postgresql-bin",
server_args = [
"--contract-id-seeding=testing-weak",
"--participant=participant-id=example,port=6865",
Expand Down Expand Up @@ -259,7 +259,7 @@ conformance_test(
],
lf_versions = lf_version_configuration_versions,
ports = [6865],
server = "//ledger/ledger-on-memory:app",
server = "//ledger/ledger-on-sql:test-server-postgresql-bin",
server_args = [
"--contract-id-seeding=testing-weak",
"--participant=participant-id=example,port=6865",
Expand Down
18 changes: 9 additions & 9 deletions ledger/ledger-on-sql/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ da_scala_test_suite(
[
(
da_scala_binary(
name = "conformance-test-{}-bin".format(db["name"]),
name = "test-server-{}-bin".format(db["name"]),
main_class = db.get("conformance_test_server_main", "com.daml.ledger.on.sql.Main"),
visibility = ["//visibility:public"],
runtime_deps = db.get("runtime_deps", []),
Expand All @@ -235,7 +235,7 @@ da_scala_test_suite(
"preview",
],
ports = [6865],
server = ":conformance-test-{}-bin".format(db["name"]),
server = ":test-server-{}-bin".format(db["name"]),
server_args = [
"--contract-id-seeding=testing-weak",
"--participant participant-id=conformance-test,port=6865",
Expand All @@ -248,7 +248,7 @@ da_scala_test_suite(
conformance_test(
name = "benchmark-performance-envelope-{}".format(db["name"]),
ports = [6865],
server = ":conformance-test-{}-bin".format(db["name"]),
server = ":test-server-{}-bin".format(db["name"]),
server_args = [
"--contract-id-seeding=testing-weak",
"--participant participant-id=example,port=6865",
Expand All @@ -266,7 +266,7 @@ da_scala_test_suite(
]

da_scala_binary(
name = "conformance-test-oracle-bin",
name = "test-server-oracle-bin",
main_class = "com.daml.ledger.on.sql.MainWithEphemeralOracleUser",
visibility = ["//visibility:public"],
runtime_deps = [
Expand All @@ -283,7 +283,7 @@ da_scala_binary(
conformance_test(
name = "conformance-test-postgres",
ports = [6865],
server = ":conformance-test-postgresql-bin",
server = ":test-server-postgresql-bin",
server_args = [
"--contract-id-seeding=testing-weak",
"--participant participant-id=conformance-test,port=6865,contract-state-cache-max-size=1,contract-key-state-cache-max-size=1",
Expand All @@ -298,7 +298,7 @@ conformance_test(
conformance_test(
name = "conformance-test-oracle",
ports = [6865],
server = ":conformance-test-oracle-bin",
server = ":test-server-oracle-bin",
server_args = [
"--contract-id-seeding=testing-weak",
"--participant participant-id=conformance-test,port=6865,contract-state-cache-max-size=1,contract-key-state-cache-max-size=1",
Expand All @@ -313,7 +313,7 @@ conformance_test(
conformance_test(
name = "conformance-test-in-memory-fan-out-postgres",
ports = [6865],
server = ":conformance-test-postgresql-bin",
server = ":test-server-postgresql-bin",
server_args = [
"--contract-id-seeding=testing-weak",
"--participant participant-id=conformance-test,port=6865,contract-state-cache-max-size=1,contract-key-state-cache-max-size=1,ledger-api-transactions-buffer-max-size=10",
Expand All @@ -329,7 +329,7 @@ conformance_test(
conformance_test(
name = "conformance-test-in-memory-fan-out-oracle",
ports = [6865],
server = ":conformance-test-oracle-bin",
server = ":test-server-oracle-bin",
server_args = [
"--contract-id-seeding=testing-weak",
"--participant participant-id=conformance-test,port=6865,contract-state-cache-max-size=1,contract-key-state-cache-max-size=1,ledger-api-transactions-buffer-max-size=10",
Expand All @@ -347,7 +347,7 @@ conformance_test(
conformance_test(
name = "conformance-test-contract-ids",
ports = [6865],
server = ":conformance-test-sqlite-memory-bin",
server = ":test-server-sqlite-memory-bin",
server_args = [
"--contract-id-seeding=testing-weak",
"--participant participant-id=conformance-test,port=6865,contract-state-cache-max-size=1,contract-key-state-cache-max-size=1",
Expand Down

0 comments on commit f396da5

Please sign in to comment.