Resolve placeholders in channel address

This commit is contained in:
Dave Syer
2024-10-14 10:39:08 +01:00
parent b92fd43664
commit d2ec311d07
3 changed files with 26 additions and 17 deletions

View File

@@ -79,7 +79,8 @@ class GrpcServerIntegrationTests {
}
@Nested
@SpringBootTest(properties = "spring.grpc.client.channels.test-channel.address=static://0.0.0.0:9090")
@SpringBootTest(properties = { "spring.grpc.server.port=0",
"spring.grpc.client.channels.test-channel.address=static://0.0.0.0:${local.grpc.port}" })
@DirtiesContext
class ServerConfiguredWithStaticClientChannel {
@@ -103,7 +104,8 @@ class GrpcServerIntegrationTests {
}
@Nested
@SpringBootTest(properties = { "spring.grpc.client.channels.test-channel.address=static://0.0.0.0:9090",
@SpringBootTest(properties = { "spring.grpc.server.port=0",
"spring.grpc.client.channels.test-channel.address=static://0.0.0.0:${local.grpc.port}",
"spring.grpc.client.channels.test-channel.negotiation-type=TLS",
"spring.grpc.client.channels.test-channel.secure=false" })
@ActiveProfiles("ssl")