-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Cloud Bigtable Change Stream integration tests (#29127)
* Add Cloud Bigtable Change Stream integration tests Change-Id: I68a877d5686f1898686b18491c6b4aff5e699862 * Add default value to bigtable environment endpoint Change-Id: I490fca7ba2f24b15faa288d6f2c3f209db59f948 * Move Bigtable options to main and register it automatically so we can set instanceId Change-Id: I4d5e5347dbba09a0e1ee170b8aa911d2f0a772ef * Remove bigtableProject from BigtableTestOptions. There was no way to set it explicitly prior to this Change-Id: I5ee3c663d3120ee85970ae5f24a962b9535323b3 * Add comment explaining why we build the test pipeline in a different package Change-Id: I228dc61ca0b27131cd38a3ab24f136d0f924d9f7 * Change instanceID to bigtableInstanceId to clarify the value we're specifying Change-Id: Ic66c4c061ed2f5979f6a530905e3cbbddd238f18 * Change BigtableChangeStreamTestOptions to use more specific field names to avoid conflicts Change-Id: I489850e07812058e8c7ebb3c9878eae9d4bc9f06
- Loading branch information
1 parent
9a97ec8
commit 9fcd0c9
Showing
6 changed files
with
504 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...va/org/apache/beam/sdk/io/gcp/bigtable/changestreams/BigtableChangeStreamTestOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.apache.beam.sdk.io.gcp.bigtable.changestreams; | ||
|
||
import org.apache.beam.sdk.options.Default; | ||
import org.apache.beam.sdk.options.Description; | ||
import org.apache.beam.sdk.testing.TestPipelineOptions; | ||
|
||
public interface BigtableChangeStreamTestOptions extends TestPipelineOptions { | ||
@Description("Instance ID for Bigtable Change Stream") | ||
@Default.String("beam-test") | ||
String getBigtableChangeStreamInstanceId(); | ||
|
||
void setBigtableChangeStreamInstanceId(String value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.