File tree Expand file tree Collapse file tree 4 files changed +15
-12
lines changed
sdks/python/apache_beam/transforms Expand file tree Collapse file tree 4 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 11{
22 "comment" : " Modify this file in a trivial way to cause this test suite to run." ,
3- "modification" : 31
3+ "modification" : 32
44}
55
Original file line number Diff line number Diff line change 1919
2020# pytype: skip-file
2121
22- import random
23- import string
22+ import sys
2423import unittest
24+ from datetime import datetime
2525
2626import pytest
2727
@@ -43,8 +43,9 @@ class GbekIT(unittest.TestCase):
4343 def setUp (self ):
4444 if secretmanager is not None :
4545 self .project_id = 'apache-beam-testing'
46- secret_postfix = '' .join (random .choice (string .digits ) for _ in range (6 ))
47- self .secret_id = 'gbek_secret_tests_' + secret_postfix
46+ py_version = f'_py{ sys .version_info .major } { sys .version_info .minor } '
47+ secret_postfix = datetime .now ().strftime ('%m%d_%H%M%S' ) + py_version
48+ self .secret_id = 'gbekit_secret_tests_' + secret_postfix
4849 self .client = secretmanager .SecretManagerServiceClient ()
4950 self .project_path = f'projects/{ self .project_id } '
5051 self .secret_path = f'{ self .project_path } /secrets/{ self .secret_id } '
Original file line number Diff line number Diff line change 2828import math
2929import random
3030import re
31- import string
31+ import sys
3232import time
3333import unittest
3434import warnings
@@ -319,8 +319,9 @@ class GroupByEncryptedKeyTest(unittest.TestCase):
319319 def setUp (self ):
320320 if secretmanager is not None :
321321 self .project_id = 'apache-beam-testing'
322- secret_postfix = '' .join (random .choice (string .digits ) for _ in range (6 ))
323- self .secret_id = 'gbek_secret_tests_' + secret_postfix
322+ py_version = f'_py{ sys .version_info .major } { sys .version_info .minor } '
323+ secret_postfix = datetime .now ().strftime ('%m%d_%H%M%S' ) + py_version
324+ self .secret_id = 'gbek_util_secret_tests_' + secret_postfix
324325 self .client = secretmanager .SecretManagerServiceClient ()
325326 self .project_path = f'projects/{ self .project_id } '
326327 self .secret_path = f'{ self .project_path } /secrets/{ self .secret_id } '
Original file line number Diff line number Diff line change 5252
5353import logging
5454import os
55- import random
56- import string
55+ import sys
5756import typing
5857import unittest
58+ from datetime import datetime
5959
6060import pytest
6161
@@ -334,8 +334,9 @@ class ValidateRunnerGBEKTest(unittest.TestCase):
334334 def setUp (self ):
335335 if secretmanager is not None :
336336 self .project_id = 'apache-beam-testing'
337- secret_postfix = '' .join (random .choice (string .digits ) for _ in range (6 ))
338- self .secret_id = 'gbek_secret_tests_' + secret_postfix
337+ py_version = f'_py{ sys .version_info .major } { sys .version_info .minor } '
338+ secret_postfix = datetime .now ().strftime ('%m%d_%H%M%S' ) + py_version
339+ self .secret_id = 'gbek_validaterunner_secret_tests_' + secret_postfix
339340 self .client = secretmanager .SecretManagerServiceClient ()
340341 self .project_path = f'projects/{ self .project_id } '
341342 self .secret_path = f'{ self .project_path } /secrets/{ self .secret_id } '
You can’t perform that action at this time.
0 commit comments