derrickaw commented on code in PR #35435:
URL: https://github.com/apache/beam/pull/35435#discussion_r2167667675
##########
sdks/python/apache_beam/yaml/integration_tests.py:
##########
@@ -143,6 +174,67 @@ def temp_bigquery_table(project, prefix='yaml_bq_it_'):
logging.info("Deleting dataset %s in project %s", dataset_id, project)
bigquery_client.client.datasets.Delete(request)
+def instance_prefix(instance):
+ datestr = "".join(filter(str.isdigit,
str(datetime.now(timezone.utc).date())))
+ instance_id = '%s-%s-%s' % (instance, datestr, secrets.token_hex(4))
+ assert len(instance_id) < 34, "instance id length needs to be within [6,
33]"
+ return instance_id
+
[email protected]
+def temp_bigtable_table(project, prefix='yaml_bt_it_'):
+ INSTANCE = "bt-write-tests"
+ TABLE_ID = "test-table"
+ # test_pipeline = TestPipeline(is_integration_test=True)
+ # args = test_pipeline.get_full_options_as_args()
+ # project = test_pipeline.get_option('project')
Review Comment:
delete if not necessary anymore
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]