badly formed hexadecimal UUID string search by Google
/usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments ▶)
- @contextlib.contextmanager
- def testPartExecutor(self, test_case, isTest=False):
- old_success = self.success
- self.success = True
- try:
- yield
- except KeyboardInterrupt:
- raise
- except SkipTest as e:
- self.success = False
/usr/local/lib/python3.7/unittest/case.py in run (arguments ▶)
- with outcome.testPartExecutor(self):
- self.setUp()
- if outcome.success:
- outcome.expecting_failure = expecting_failure
- with outcome.testPartExecutor(self, isTest=True):
- testMethod()
- outcome.expecting_failure = False
- with outcome.testPartExecutor(self):
- self.tearDown()
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/s3/acl.py in test_upload_key_anonymous_user (arguments ▶)
- # In croc cloud we use uuid4 as id of projects and as id of RGW users (s3 users)
- # In this test we check that S3 returns id string (uuid4) of S3 user
- # who is owner of this bucket.
- # We only check that id string is valid uuid4,
- # we dont't check that id is correct id of this cloud/s3 user.
- uuid.UUID(str(keys[0]["Owner"]["ID"]), version=4)
- def test_unexistant_user(self):
- """Attempt to grant read access ACL with unexistant user."""
/usr/local/lib/python3.7/uuid.py in __init__ (arguments ▶)
- 'or int arguments must be given')
- if hex is not None:
- hex = hex.replace('urn:', '').replace('uuid:', '')
- hex = hex.strip('{}').replace('-', '')
- if len(hex) != 32:
- raise ValueError('badly formed hexadecimal UUID string')
- int = int_(hex, 16)
- if bytes_le is not None:
- if len(bytes_le) != 16:
- raise ValueError('bytes_le is not a 16-char string')