You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by tv...@apache.org on 2025/10/22 22:19:43 UTC

(beam) branch master updated: Make SpannerChangeStreamPlacementTableIT against Spanner prod. (#36071)

This is an automated email from the ASF dual-hosted git repository.

tvalentyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 66b7c7476ce Make SpannerChangeStreamPlacementTableIT against Spanner prod. (#36071)
66b7c7476ce is described below

commit 66b7c7476ce4e9147bc7a53c215c74298e2efc99
Author: changliiu <ch...@google.com>
AuthorDate: Wed Oct 22 15:19:36 2025 -0700

    Make SpannerChangeStreamPlacementTableIT against Spanner prod. (#36071)
---
 .../it/SpannerChangeStreamPlacementTableIT.java          | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/it/SpannerChangeStreamPlacementTableIT.java b/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/it/SpannerChangeStreamPlacementTableIT.java
index 63c1f5c4103..13e10395568 100644
--- a/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/it/SpannerChangeStreamPlacementTableIT.java
+++ b/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/it/SpannerChangeStreamPlacementTableIT.java
@@ -71,15 +71,7 @@ import org.junit.runners.JUnit4;
         + "For now this test can only be exercised mannually.")
 public class SpannerChangeStreamPlacementTableIT {
 
-  // TODO change to spanner prod host once ready.
-  private static final String host = "https://staging-wrenchworks.sandbox.googleapis.com";
-
-  @ClassRule
-  public static final IntegrationTestEnv ENV =
-      new IntegrationTestEnv(
-          /*isPostgres=*/ false,
-          /*isPlacementTableBasedChangeStream=*/ true,
-          /*host=*/ Optional.of(host));
+  @ClassRule public static final IntegrationTestEnv ENV = new IntegrationTestEnv();
 
   @Rule public final transient TestPipeline pipeline = TestPipeline.create();
 
@@ -149,8 +141,7 @@ public class SpannerChangeStreamPlacementTableIT {
         SpannerConfig.create()
             .withProjectId(projectId)
             .withInstanceId(instanceId)
-            .withDatabaseId(databaseId)
-            .withHost(StaticValueProvider.of(host));
+            .withDatabaseId(databaseId);
     if (role != null) {
       spannerConfig = spannerConfig.withDatabaseRole(StaticValueProvider.of(role));
     }
@@ -210,8 +201,7 @@ public class SpannerChangeStreamPlacementTableIT {
         SpannerConfig.create()
             .withProjectId(projectId)
             .withInstanceId(instanceId)
-            .withDatabaseId(databaseId)
-            .withHost(StaticValueProvider.of(host));
+            .withDatabaseId(databaseId);
 
     // Filter records to only those from transactions with tag "app=beam;action=update"
     final PCollection<String> tokens =