KeyError

'Message' search by Google

args : tuple
('Message',)

Traceback

  1. /usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments )

    self : _Outcome
    <unittest.case._Outcome object at 0x7fe3fc5b5390>
    test_case : Encryption
    test_copy (c2tests.s3.encryption.Encryption)
    isTest : bool
    True
    1. @contextlib.contextmanager
    2. def testPartExecutor(self, test_case, isTest=False):
    3. old_success = self.success
    4. self.success = True
    5. try:
    6. yield
    7. except KeyboardInterrupt:
    8. raise
    9. except SkipTest as e:
    10. self.success = False

    Locals

    exc_info : NoneType
    None
    old_success : bool
    True

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fe415310fc0>
    DIFF_OMITTED : str
    Diff is %s characters long. Set self.maxDiff to None to see it.
  2. /usr/local/lib/python3.7/unittest/case.py in run (arguments )

    self : Encryption
    test_copy (c2tests.s3.encryption.Encryption)
    result : DiagnosticsTestResult
    <xmlrunner.extra.diagnosticstestrunner.DiagnosticsTestResult run=1 errors=0 failures=0>
    1. with outcome.testPartExecutor(self):
    2. self.setUp()
    3. if outcome.success:
    4. outcome.expecting_failure = expecting_failure
    5. with outcome.testPartExecutor(self, isTest=True):
    6. testMethod()
    7. outcome.expecting_failure = False
    8. with outcome.testPartExecutor(self):
    9. self.tearDown()

    Locals

    expecting_failure : bool
    False
    expecting_failure_class : bool
    False
    expecting_failure_method : bool
    False
    orig_result : DiagnosticsTestResult
    <xmlrunner.extra.diagnosticstestrunner.DiagnosticsTestResult run=1 errors=0 failures=0>
    outcome : _Outcome
    <unittest.case._Outcome object at 0x7fe3fc5b5390>
    testMethod : method
    <bound method Encryption.test_copy of <c2tests.s3.encryption.Encryption testMethod=test_copy>>

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fe415310fc0>
    DIFF_OMITTED : str
    Diff is %s characters long. Set self.maxDiff to None to see it.
  3. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/s3/encryption.py in test_copy (arguments )

    self : Encryption
    test_copy (c2tests.s3.encryption.Encryption)
    1. # copying encrypted objects is not implemented
    2. with self.assertRaises(botocore.exceptions.ClientError) as e:
    3. self.s3client.copy_object(
    4. Bucket=bucket,
    5. Key=f"{filename}.copy",
    6. CopySource={"Bucket": bucket, "Key": filename}
    7. )
    8. self.assertEqual(e.exception.response["Error"]["Code"], "NotImplemented")
    9. self.assertIsNone(e.exception.response["Error"]["Message"])
    10. self.assertEqual(e.exception.response["ResponseMetadata"]["HTTPStatusCode"], 501)

    Locals

    _ : HASH
    <md5 HASH object @ 0x7fe3fe61cc60>
    bucket : str
    test-9d5e5fb8-22ab-49da-ab83-e834a5fcaa0f
    e : _AssertRaisesContext
    <unittest.case._AssertRaisesContext object at 0x7fe3fd9fe990>
    filename : str
    /tmp/uploadc6qa7l50/58fd79b1-18c6-4a2f-a1b7-c3fd396bfab5

    Globals

    OBJECT_NAME : str
    object_name
    Tuple : _VariadicGenericAlias
    typing.Tuple

Environment

Time of report generation
2024-02-23 01:35:04
Python version
3.7.9 (default, Sep 21 2022, 19:11:27) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
Path to executable
/root/c2tests/.venv/bin/python
Working directory
/root/c2tests
Arguments vector
  1. /root/c2tests/.venv/bin/c2tests
  2. run
  3. -s
  4. ec2
  5. s3
  6. vpc