Skip to content

Commit ececaab

Browse files
authored
fix: Need to be able to specify different host for gRPC in TCK (a2aproject#877)
1 parent 02c58ed commit ececaab

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tck/src/main/java/org/a2aproject/sdk/sut/TckAgentCardProducer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
*/
2020
@ApplicationScoped
2121
public class TckAgentCardProducer {
22-
23-
private static final String host = getEnvOrDefault("SUT_HOST", "localhost:9999");
22+
private static final String HOST = getEnvOrDefault("SUT_HOST", "localhost:9999");
23+
private static final String GRPC_HOST = getEnvOrDefault("SUT_GRPC_HOST", HOST);
2424

2525
@Produces
2626
@PublicAgentCard
2727
public AgentCard agentCard() {
28-
String sutJsonRpcUrl = String.format("http://%s", host);
28+
String sutJsonRpcUrl = String.format("http://%s", HOST);
2929
String sutRestUrl = sutJsonRpcUrl;
30-
String sutGrpcUrl = host;
30+
String sutGrpcUrl = GRPC_HOST;
3131

3232
return AgentCard.builder()
3333
.name("A2A Java SDK System Under Test (SUT)")

0 commit comments

Comments
 (0)