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/11 21:10:12 UTC

[beam] branch master 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 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 eabfc15  [BEAM-12694] Include datetime in dicom test dataset name.
     new d2b785a  Merge pull request #15697 from ibzib/BEAM-12694
eabfc15 is described below

commit eabfc15673702e360b2ac0beb812154d3f7f3470
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):