Skip to content

Commit 66b7c74

Browse files
authored
Make SpannerChangeStreamPlacementTableIT against Spanner prod. (#36071)
1 parent afeca4e commit 66b7c74

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/it/SpannerChangeStreamPlacementTableIT.java

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,7 @@
7171
+ "For now this test can only be exercised mannually.")
7272
public class SpannerChangeStreamPlacementTableIT {
7373

74-
// TODO change to spanner prod host once ready.
75-
private static final String host = "https://staging-wrenchworks.sandbox.googleapis.com";
76-
77-
@ClassRule
78-
public static final IntegrationTestEnv ENV =
79-
new IntegrationTestEnv(
80-
/*isPostgres=*/ false,
81-
/*isPlacementTableBasedChangeStream=*/ true,
82-
/*host=*/ Optional.of(host));
74+
@ClassRule public static final IntegrationTestEnv ENV = new IntegrationTestEnv();
8375

8476
@Rule public final transient TestPipeline pipeline = TestPipeline.create();
8577

@@ -149,8 +141,7 @@ public void testReadSpannerChangeStreamImpl(TestPipeline testPipeline, String ro
149141
SpannerConfig.create()
150142
.withProjectId(projectId)
151143
.withInstanceId(instanceId)
152-
.withDatabaseId(databaseId)
153-
.withHost(StaticValueProvider.of(host));
144+
.withDatabaseId(databaseId);
154145
if (role != null) {
155146
spannerConfig = spannerConfig.withDatabaseRole(StaticValueProvider.of(role));
156147
}
@@ -210,8 +201,7 @@ public void testReadSpannerChangeStreamFilteredByTransactionTag() {
210201
SpannerConfig.create()
211202
.withProjectId(projectId)
212203
.withInstanceId(instanceId)
213-
.withDatabaseId(databaseId)
214-
.withHost(StaticValueProvider.of(host));
204+
.withDatabaseId(databaseId);
215205

216206
// Filter records to only those from transactions with tag "app=beam;action=update"
217207
final PCollection<String> tokens =

0 commit comments

Comments
 (0)