Class AbstractMultiTenantServerTest
java.lang.Object
org.a2aproject.sdk.extras.multitenancy.tests.AbstractMultiTenantServerTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected static final intPort every subclass's Quarkus test server and client URL/target must agree on. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected abstract voidconfigureTransport(ClientBuilder builder) Wire the transport-specificClient(channel/http-client factory).voidvoidvoidvoidprotected Clientprotected Clientprotected abstract Stringe.g.protected abstract StringBase URL/target the client uses to reach the server.voidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
TEST_PORT
protected static final int TEST_PORTPort every subclass's Quarkus test server and client URL/target must agree on.- See Also:
-
serverPort
protected final int serverPort
-
-
Constructor Details
-
AbstractMultiTenantServerTest
protected AbstractMultiTenantServerTest(int serverPort)
-
-
Method Details
-
getTransportProtocol
e.g. "JSONRPC", "GRPC", "HTTP+JSON". -
getTransportUrl
Base URL/target the client uses to reach the server. Must encode the same port passed to this class's constructor (e.g."http://localhost:" + TEST_PORT, or"localhost:" + TEST_PORTfor gRPC's schemeless target) — the two are not derived from each other. -
configureTransport
Wire the transport-specificClient(channel/http-client factory). -
knownTenantRoutesToAcmeExecutor
-
secondTenantRoutesToBetaExecutor
-
unknownTenantFallsBackToDefault
-
nullTenantUsesDefault
-
streamingWithKnownTenant
-
streamingWithUnknownTenantUsesDefault
-
concurrentRequestsForDifferentTenants
-
extendedCardKnownTenantResolvesToAcme
-
extendedCardSecondTenantResolvesToBeta
-
extendedCardUnknownTenantFallsBackToDefault
-
extendedCardNullTenantUsesDefault
-
publicCardWithoutTenantReturnsDefault
@Test public void publicCardWithoutTenantReturnsDefault() -
publicCardWithAcmeTenant
@Test public void publicCardWithAcmeTenant() -
publicCardWithBetaTenant
@Test public void publicCardWithBetaTenant() -
publicCardUnknownTenantReturns404
@Test public void publicCardUnknownTenantReturns404() -
closeClients
@AfterEach public void closeClients() -
getStreamingClient
-
getNonStreamingClient
-