You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by ib...@apache.org on 2021/10/25 20:04:36 UTC

[beam] branch release-2.34.0 updated: [BEAM-12694] Include datetime in dicom test dataset name.

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

ibzib pushed a commit to branch release-2.34.0
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/release-2.34.0 by this push:
     new fd0338c  [BEAM-12694] Include datetime in dicom test dataset name.
     new f3c1a19  Merge pull request #15791 from ibzib/dicom-cp
fd0338c is described below

commit fd0338cf027168a24355bfabbabcfe040f254c7d
Author: Kyle Weaver <kc...@google.com>
AuthorDate: Fri Oct 8 16:11:14 2021 -0700

    [BEAM-12694] Include datetime in dicom test dataset name.
    
    Hopefully this should prevent random collisions. If it doesn't, it will at least give us another clue about what's going on.
---
 sdks/python/apache_beam/io/gcp/dicomio_integration_test.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sdks/python/apache_beam/io/gcp/dicomio_integration_test.py b/sdks/python/apache_beam/io/gcp/dicomio_integration_test.py
index 7970dd5..0a1daae 100644
--- a/sdks/python/apache_beam/io/gcp/dicomio_integration_test.py
+++ b/sdks/python/apache_beam/io/gcp/dicomio_integration_test.py
@@ -25,6 +25,7 @@ in order to check if the connectors are functioning correctly.
 """
 # pytype: skip-file
 
+import datetime
 import random
 import string
 import unittest
@@ -126,7 +127,8 @@ class DICOMIoIntegrationTest(unittest.TestCase):
         METADATA_DIR_PATH + META_DATA_REFINED_NAME)
 
     # create a temp Dicom store based on the time stamp
-    self.temp_dicom_store = "DICOM_store_" + random_string_generator(RAND_LEN)
+    self.temp_dicom_store = "DICOM_store_" + datetime.datetime.now().strftime(
+        '%Y-%m-%d_%H%M%S.%f_') + random_string_generator(RAND_LEN)
     create_dicom_store(self.project, DATA_SET_ID, REGION, self.temp_dicom_store)
 
   def tearDown(self):