Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sandbox: Remove PostgreSQL conformance tests. #11434

Merged
2 commits merged into from
Nov 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 17 additions & 28 deletions ledger/sandbox/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# SPDX-License-Identifier: Apache-2.0

load("//bazel_tools:scala.bzl", "da_scala_binary", "da_scala_library", "da_scala_test_suite")
load("//ledger/ledger-api-test-tool:conformance.bzl", "server_conformance_test")
load("@os_info//:os_info.bzl", "is_windows")
load("//ledger/ledger-api-test-tool:conformance.bzl", "conformance_test")
load("@build_environment//:configuration.bzl", "mvn_version")
load("@os_info//:os_info.bzl", "is_windows")

alias(
name = "sandbox",
Expand Down Expand Up @@ -257,35 +257,20 @@ reset_service_pattern = "src/test/suite/**/*ResetService*.scala"
]
]

NEXT_SERVERS = {
"memory": {
"binary": ":sandbox-binary",
"server_args": [
"--contract-id-seeding=testing-weak",
"--port=6865",
],
},
"postgresql": {
"binary": ":sandbox-ephemeral-postgresql",
"server_args": [
"--contract-id-seeding=testing-weak",
"--port=6865",
],
},
}

# Full conformance test
server_conformance_test(
name = "next-conformance-test",
conformance_test(
name = "conformance-test",
lf_versions = [
"default",
"latest",
"preview",
],
server = ":sandbox-binary",
server_args = [
"--contract-id-seeding=testing-weak",
"--port=6865",
"--max-deduplication-duration=PT5S",
],
servers = NEXT_SERVERS,
test_tool_args = [
"--open-world",
"--additional=CommandDeduplicationParallelIT",
Expand All @@ -299,26 +284,30 @@ server_conformance_test(
)

# Feature test: --implicit-party-allocation=false (closed world mode)
server_conformance_test(
name = "next-conformance-test-closed-world",
conformance_test(
name = "conformance-test-closed-world",
server = ":sandbox-binary",
server_args = [
"--port=6865",
"--contract-id-seeding=testing-weak",
"--implicit-party-allocation=false",
],
servers = NEXT_SERVERS,
test_tool_args = [
"--verbose",
"--include=ClosedWorldIT",
],
)

# Feature test: --static-time
server_conformance_test(
name = "next-conformance-test-static-time",
conformance_test(
name = "conformance-test-static-time",
server = ":sandbox-binary",
server_args = [
"--port=6865",
"--contract-id-seeding=testing-weak",
"--static-time",
"--max-deduplication-duration=PT5S",
],
servers = NEXT_SERVERS,
test_tool_args = [
"--static-time",
"--open-world",
Expand Down