Skip to content

Commit

Permalink
re-enable expansion service
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedabu98 committed Sep 22, 2023
1 parent 491c1ac commit babff94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdks/python/apache_beam/io/gcp/bigtableio_it_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ def test_read_xlang(self):

@pytest.mark.uses_gcp_java_expansion_service
@pytest.mark.uses_transform_service
# @unittest.skipUnless(
# os.environ.get('EXPANSION_PORT'),
# "EXPANSION_PORT environment var is not provided.")
@unittest.skipUnless(
os.environ.get('EXPANSION_PORT'),
"EXPANSION_PORT environment var is not provided.")
@unittest.skipIf(client is None, 'Bigtable dependencies are not installed')
class TestWriteToBigtableXlangIT(unittest.TestCase):
# These are integration tests for the cross-language write transform.
Expand All @@ -158,7 +158,7 @@ def setUpClass(cls):
cls.test_pipeline = TestPipeline(is_integration_test=True)
cls.project = cls.test_pipeline.get_option('project')
cls.args = cls.test_pipeline.get_full_options_as_args()
cls.expansion_service = None #('localhost:%s' % os.environ.get('EXPANSION_PORT'))
cls.expansion_service = ('localhost:%s' % os.environ.get('EXPANSION_PORT'))

instance_id = '%s-%s-%s' % (
cls.INSTANCE, str(int(time.time())), secrets.token_hex(3))
Expand Down

0 comments on commit babff94

Please sign in to comment.