Skip to content

Commit 519659d

Browse files
Test disabling TLS for proxy
1 parent 9013ffb commit 519659d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/run.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"io"
1111
"net"
1212
"os"
13-
"os/exec"
1413
"os/signal"
1514
"path/filepath"
1615
"runtime"
@@ -170,7 +169,6 @@ type Runner struct {
170169
rootDir string
171170
createTime time.Time
172171
program sdkbuild.Program
173-
proxy *exec.Cmd
174172
}
175173

176174
// NewRunner creates a new runner for the given config.

harness/java/io/temporal/sdkfeatures/Runner.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,11 @@ public static class Config {
7676
.setMetricsScope(config.metricsScope);
7777
if (feature.initiatorUsesProxy()) {
7878
serviceBuild.setTarget(config.proxyListenHostPort);
79+
serviceBuild.setSslContext(null);
7980
}
8081
feature.workflowServiceOptions(serviceBuild);
8182
final var serviceOptions = serviceBuild.build();
82-
final var directServiceOptions = serviceBuild.setTarget(config.serverHostPort).build();
83+
final var directServiceOptions = serviceBuild.setTarget(config.serverHostPort).setSslContext(config.sslContext).build();
8384

8485
service = WorkflowServiceStubs.newConnectedServiceStubs(serviceOptions, Duration.ofSeconds(10));
8586
// Shutdown service on failure

0 commit comments

Comments
 (0)