Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class GrpcDatastoreRpcTest {

private static final String PROJECT_ID = "test-project";
private static final String CUSTOM_UNIVERSE_DOMAIN = "s3nsapis.fr";
private static final String CUSTOM_UNIVERSE_DOMAIN = "custom.example.com";

/** Minimal Credentials implementation with a configurable universe domain for unit testing. */
private static class FakeUniverseCredentials extends Credentials {
Expand Down Expand Up @@ -86,12 +86,12 @@ public void testUniverseDomainResolvesEndpointViaGax() throws Exception {
assertEquals(CUSTOM_UNIVERSE_DOMAIN, clientContext.getUniverseDomain());
GrpcTransportChannel transportChannel =
(GrpcTransportChannel) clientContext.getTransportChannel();
assertEquals("datastore.s3nsapis.fr:443", transportChannel.getChannel().authority());
assertEquals("datastore.custom.example.com:443", transportChannel.getChannel().authority());

DatastoreStubSettings stubSettings =
GrpcDatastoreRpc.createDatastoreStubSettings(options, clientContext);
assertEquals(CUSTOM_UNIVERSE_DOMAIN, stubSettings.getUniverseDomain());
assertEquals("datastore.s3nsapis.fr:443", stubSettings.getEndpoint());
assertEquals("datastore.custom.example.com:443", stubSettings.getEndpoint());
} finally {
rpc.close();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
public class HttpDatastoreRpcTest {

private static final String PROJECT_ID = "test-project";
private static final String CUSTOM_UNIVERSE_DOMAIN = "s3nsapis.fr";
private static final String CUSTOM_UNIVERSE_DOMAIN = "custom.example.com";

/** Minimal Credentials implementation with a configurable universe domain for unit testing. */
private static class FakeUniverseCredentials extends Credentials {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public void testExportingIgnoredMetrics() {

@Test
public void testCreateMetricServiceSettings_propagatesUniverseDomain() throws IOException {
String customUniverseDomain = "s3nsapis.fr";
String customUniverseDomain = "custom.example.com";
MetricServiceSettings settings =
DatastoreCloudMonitoringExporter.createMetricServiceSettings(
NoCredentials.getInstance(), customUniverseDomain);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
public class GrpcLoggingRpcTest {

private static final String PROJECT_ID = "test-project";
private static final String CUSTOM_UNIVERSE = "s3nsapis.fr";
private static final String CUSTOM_UNIVERSE = "custom.example.com";
private static final String CUSTOM_HOST = "custom-logging.example.com:443";

/** Creates a dummy {@link GoogleCredentials} instance for testing. */
Expand Down
Loading