AssertionError

['DependencyViolation'] not raised search by Google

args : tuple
("['DependencyViolation'] not raised",)

Traceback

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

    self : _Outcome
    <unittest.case._Outcome object at 0x7fe3ef23e450>
    test_case : VPCs
    test_delete_vpc_with_dependent_resources (c2tests.vpc.vpcs.VPCs)
    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 : VPCs
    test_delete_vpc_with_dependent_resources (c2tests.vpc.vpcs.VPCs)
    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 0x7fe3ef23e450>
    testMethod : method
    <bound method VPCs.test_delete_vpc_with_dependent_resources of <c2tests.vpc.vpcs.VPCs testMethod=test_delete_vpc_with_dependent_resources>>

    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/vpc/vpcs.py in test_delete_vpc_with_dependent_resources (arguments )

    self : VPCs
    test_delete_vpc_with_dependent_resources (c2tests.vpc.vpcs.VPCs)
    1. cgw = self.create_customer_gateway(
    2. constants.VPNC_TYPE_IPSEC_1, "1.1.1.1", 64514)
    3. vpnc = self.create_vpn_connection(
    4. constants.VPNC_TYPE_IPSEC_1, cgw.id, self.vgw_id(vpc.id),
    5. tunnel_options=[{"PreSharedKey": "qwerty12345"}])
    6. self.assert_error("DependencyViolation", self.vpcconn.delete_vpc, vpc.id)
    7. self.assertEqual(len(self.get_all_subnets(filters=filters)), subnets_num)
    8. self.vpcconn.delete_vpn_connection(vpnc.id)
    9. self.vpcconn.delete_vpc(vpc.id)

    Locals

    cgw : CustomerGateway
    CustomerGateway:cgw-00FBAF61
    filters : dict
    {'vpc-id': 'vpc-BD5A01CA'}
    i : int
    1
    interface : NetworkInterface
    NetworkInterface:eni-D6AFB500
    subnets : ResultSet
    [Subnet:subnet-EF7ACE80, Subnet:subnet-1F39D100]
    subnets_num : int
    2
    vpc : VPC
    VPC:vpc-BD5A01CA
    vpnc : VpnConnection
    VpnConnection:vpn-12F3BA52

    Globals

  4. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in assert_error (arguments )

    self : VPCs
    test_delete_vpc_with_dependent_resources (c2tests.vpc.vpcs.VPCs)
    error_codes : list
    ['DependencyViolation']
    func : method
    <bound method VPCConnection.delete_vpc of VPCConnection:api.dev.c2.croc.ru>
    *args : tuple
    ('vpc-BD5A01CA',)
    **kwargs : dict
    {}
    1. else:
    2. raise self.failureException(
    3. "Error message {0} != {1}".format(error_code, error_codes)
    4. )
    5. else:
    6. raise self.failureException("{0} not raised".format(error_codes))
    7. def ping(
    8. self,
    9. ip,

    Locals

    Globals

    gethostbyname : builtin_function_or_method
    <built-in function gethostbyname>
    UNSIGNED : UNSIGNED
    <botocore.UNSIGNED object at 0x7fe407aa0ed0>

Environment

Time of report generation
2024-02-23 03:13:22
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