-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DPP-572] Add ledger API test case for verifying conformance to `--mi…
…n-tls-version` flag. (#10898) Add CLI flag to select minimum enabled TLS version for participant server CHANGELOG_BEGIN Sandbox: Add CLI flag `--min-tls-version` to select minimum enabled TLS version for participant server. CHANGELOG_END
- Loading branch information
Showing
15 changed files
with
304 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...est-tool/src/main/scala/com/daml/ledger/api/testtool/infrastructure/ChannelEndpoint.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package com.daml.ledger.api.testtool.infrastructure | ||
|
||
import io.grpc.Channel | ||
|
||
sealed trait Endpoint | ||
|
||
object Endpoint { | ||
|
||
final case object InProcess extends Endpoint | ||
|
||
final case class Remote(hostname: String, port: Int) extends Endpoint | ||
|
||
} | ||
|
||
final case class ChannelEndpoint(channel: Channel, endpoint: Endpoint) | ||
|
||
object ChannelEndpoint { | ||
|
||
def forRemote(channel: Channel, hostname: String, port: Int): ChannelEndpoint = | ||
ChannelEndpoint(channel, Endpoint.Remote(hostname, port)) | ||
|
||
def forInProcess(channel: Channel): ChannelEndpoint = ChannelEndpoint(channel, Endpoint.InProcess) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.