[Python-modules-team] Bug#946633: Bug#946633: libcloud autopkg tests failing

Emmanuel Arias emmanuelarias30 at gmail.com
Thu Dec 12 16:48:01 GMT 2019


adding the pyopenssl dependency, I have the next errors:

=================================== FAILURES ===================================
________________________ test_list_cg_by_src_net_domain ________________________

driver = <libcloud.compute.drivers.nttcis.NttCisNodeDriver object at
0x7f6a90a4d160>

    def test_list_cg_by_src_net_domain(driver):
        nd = "f9d6a249-c922-4fa1-9f0f-de5b452c4026"
>       cgs = driver.ex_list_consistency_groups(source_network_domain_id=nd)

libcloud/test/compute/test_nttcis.py:1851:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (<libcloud.compute.drivers.nttcis.NttCisNodeDriver object at
0x7f6a90a4d160>,)
kwargs = {'sourceNetworkDomainId': 'f9d6a249-c922-4fa1-9f0f-de5b452c4026'}
k = 'sourceNetworkDomainId', v = 'f9d6a249-c922-4fa1-9f0f-de5b452c4026'
old_key = 'source_network_domain_id', matches = ['n', 'd', 'i'], match = 'i'

    @wraps(func)
    def paramed(*args, **kwargs):
        if kwargs:
>           for k, v in kwargs.items():
E           RuntimeError: dictionary keys changed during iteration

libcloud/common/nttcis.py:300: RuntimeError
_____________________________ test_list_cg_by_name _____________________________

driver = <libcloud.compute.drivers.nttcis.NttCisNodeDriver object at
0x7f6a90a84220>

    def test_list_cg_by_name(driver):
        NttCisMockHttp.type = "CG_BY_NAME"
        name = "sdk_test2_cg"
>       cg = driver.ex_list_consistency_groups(name=name)

libcloud/test/compute/test_nttcis.py:1858:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (<libcloud.compute.drivers.nttcis.NttCisNodeDriver object at
0x7f6a90a84220>,)
kwargs = {'name': 'sdk_test2_cg'}, k = 'name', v = 'sdk_test2_cg'
old_key = 'name', matches = []

    @wraps(func)
    def paramed(*args, **kwargs):
        if kwargs:
>           for k, v in kwargs.items():
E           RuntimeError: dictionary keys changed during iteration

libcloud/common/nttcis.py:300: RuntimeError
___________________________ test_expand_drs_journal ____________________________

driver = <libcloud.compute.drivers.nttcis.NttCisNodeDriver object at
0x7f6a90a42880>

    def test_expand_drs_journal(driver):
>       cgs = driver.ex_list_consistency_groups(name="sdk_test2_cg")

libcloud/test/compute/test_nttcis.py:1891:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (<libcloud.compute.drivers.nttcis.NttCisNodeDriver object at
0x7f6a90a42880>,)
kwargs = {'name': 'sdk_test2_cg'}, k = 'name', v = 'sdk_test2_cg'
old_key = 'name', matches = []

    @wraps(func)
    def paramed(*args, **kwargs):
        if kwargs:
>           for k, v in kwargs.items():
E           RuntimeError: dictionary keys changed during iteration

libcloud/common/nttcis.py:300: RuntimeError
______________________ test_ex_create_ssl_offload_profile ______________________

driver = <libcloud.loadbalancer.drivers.nttcis.NttCisLBDriver object
at 0x7f6a9039e670>

    def test_ex_create_ssl_offload_profile(driver):
        net_domain_id = "6aafcf08-cb0b-432c-9c64-7371265db086"
        name = "ssl_offload"
>       domain_cert = driver.ex_list_ssl_domain_certs(name="alice")[0]

libcloud/test/loadbalancer/test_nttcis.py:544:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (<libcloud.loadbalancer.drivers.nttcis.NttCisLBDriver object at
0x7f6a9039e670>,)
kwargs = {'name': 'alice'}, k = 'name', v = 'alice', old_key = 'name'
matches = []

    @wraps(func)
    def paramed(*args, **kwargs):
        if kwargs:
>           for k, v in kwargs.items():
E           RuntimeError: dictionary keys changed during iteration

libcloud/common/nttcis.py:300: RuntimeError
________________________ test_edit_ssl_offload_profile _________________________

driver = <libcloud.loadbalancer.drivers.nttcis.NttCisLBDriver object
at 0x7f6a900f3a60>

    def test_edit_ssl_offload_profile(driver):
        profile_name = "ssl_offload"
        datacenter_id = "EU6"
        NttCisMockHttp.type = "LIST"
>       profile = driver.ex_list_ssl_offload_profiles(name=profile_name, datacenter_id=datacenter_id)[0]

libcloud/test/loadbalancer/test_nttcis.py:565:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (<libcloud.loadbalancer.drivers.nttcis.NttCisLBDriver object at
0x7f6a900f3a60>,)
kwargs = {'datacenterId': 'EU6', 'name': 'ssl_offload'}, k = 'datacenterId'
v = 'EU6', old_key = 'datacenter_id', matches = ['i'], match = 'i'

    @wraps(func)
    def paramed(*args, **kwargs):
        if kwargs:
>           for k, v in kwargs.items():
E           RuntimeError: dictionary keys changed during iteration

libcloud/common/nttcis.py:300: RuntimeError
_______________________ test_delete_ssl_offload_profile ________________________

driver = <libcloud.loadbalancer.drivers.nttcis.NttCisLBDriver object
at 0x7f6a93c5b160>

    def test_delete_ssl_offload_profile(driver):
        profile_name = "ssl_offload"
        NttCisMockHttp.type = "LIST"
>       profile = driver.ex_list_ssl_offload_profiles(name=profile_name)[0]

libcloud/test/loadbalancer/test_nttcis.py:577:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (<libcloud.loadbalancer.drivers.nttcis.NttCisLBDriver object at
0x7f6a93c5b160>,)
kwargs = {'name': 'ssl_offload'}, k = 'name', v = 'ssl_offload'
old_key = 'name', matches = []

    @wraps(func)
    def paramed(*args, **kwargs):
        if kwargs:
>           for k, v in kwargs.items():
E           RuntimeError: dictionary keys changed during iteration

libcloud/common/nttcis.py:300: RuntimeError
______________________ test_delete_ssl_certificate_chain _______________________

driver = <libcloud.loadbalancer.drivers.nttcis.NttCisLBDriver object
at 0x7f6a90293490>

    def test_delete_ssl_certificate_chain(driver):
        NttCisMockHttp.type = "LIST"
        chain_name = "ted_carol"
>       cert_chain = driver.ex_list_ssl_certificate_chains(name=chain_name)[0]

libcloud/test/loadbalancer/test_nttcis.py:586:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (<libcloud.loadbalancer.drivers.nttcis.NttCisLBDriver object at
0x7f6a90293490>,)
kwargs = {'name': 'ted_carol'}, k = 'name', v = 'ted_carol', old_key = 'name'
matches = []

    @wraps(func)
    def paramed(*args, **kwargs):
        if kwargs:
>           for k, v in kwargs.items():
E           RuntimeError: dictionary keys changed during iteration

libcloud/common/nttcis.py:300: RuntimeError
______________________ test_delete_ssl_domain_certificate ______________________

driver = <libcloud.loadbalancer.drivers.nttcis.NttCisLBDriver object
at 0x7f6a90e03850>

    def test_delete_ssl_domain_certificate(driver):
        NttCisMockHttp.type = "LIST"
        cert_name = "alice"
>       cert = driver.ex_list_ssl_domain_certs(name=cert_name)[0]

libcloud/test/loadbalancer/test_nttcis.py:595:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (<libcloud.loadbalancer.drivers.nttcis.NttCisLBDriver object at
0x7f6a90e03850>,)
kwargs = {'name': 'alice'}, k = 'name', v = 'alice', old_key = 'name'
matches = []

    @wraps(func)
    def paramed(*args, **kwargs):
        if kwargs:
>           for k, v in kwargs.items():
E           RuntimeError: dictionary keys changed during iteration

libcloud/common/nttcis.py:300: RuntimeError


Cheers,
Arias Emmanuel
@eamanu
http://eamanu.com

El jue., 12 de dic. de 2019 a la(s) 08:51, Matthias Klose
(doko at debian.org) escribió:
>
> Package: src:libcloud
> Version: 2.5.0-1
> Severity: serious
> Tags: sid bullseye
>
> libcloud autopkg tests failing. Missing test dependency.  Please run the autopkg
> tests before uploading.
>
> ============================= test session starts ==============================
> platform linux -- Python 3.7.5, pytest-3.10.1, py-1.8.0, pluggy-0.13.0
> rootdir: /tmp/autopkgtest-lxc.bb1ngl0y/downtmp/build.umS/src, inifile: setup.cfg
> plugins: requests-mock-1.6.0
> collected 9512 items / 1 errors
>
> ==================================== ERRORS ====================================
> __________ ERROR collecting libcloud/test/loadbalancer/test_nttcis.py __________
> ImportError while importing test module
> '/tmp/autopkgtest-lxc.bb1ngl0y/downtmp/build.umS/src/libcloud/test/loadbalancer/test_nttcis.py'.
> Hint: make sure your test modules/packages have valid Python names.
> Traceback:
> libcloud/loadbalancer/drivers/nttcis.py:17: in <module>
>     import OpenSSL
> E   ModuleNotFoundError: No module named 'OpenSSL'
>
> During handling of the above exception, another exception occurred:
> libcloud/test/loadbalancer/test_nttcis.py:25: in <module>
>     from libcloud.loadbalancer.drivers.nttcis import NttCisLBDriver
> libcloud/loadbalancer/drivers/nttcis.py:20: in <module>
>     raise ImportError('Missing "OpenSSL" dependency. You can install it '
> E   ImportError: Missing "OpenSSL" dependency. You can install it using pip -
> pip install pyopenssl
> =============================== warnings summary ===============================
> libcloud/test/compute/test_cloudsigma_v1_0.py:117
>
> /tmp/autopkgtest-lxc.bb1ngl0y/downtmp/build.umS/src/libcloud/test/compute/test_cloudsigma_v1_0.py:117:
> DeprecationWarning: invalid escape sequence \c
>     string = 'mem 1024\ncpu 2200\n\nmem2048\cpu 1100'
>
> libcloud/compute/drivers/vcloud.py:1691
>
> /tmp/autopkgtest-lxc.bb1ngl0y/downtmp/build.umS/src/libcloud/compute/drivers/vcloud.py:1691:
> DeprecationWarning: invalid escape sequence \-
>
> '^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9]*)[\-])*([A-Za-z]|[A-Za-z][A-Za-z0-9]*[A-Za-z0-9])$')
>  # NOQA
>
> -- Docs: https://docs.pytest.org/en/latest/warnings.html
> !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
> ===================== 2 warnings, 1 error in 5.38 seconds ======================
>
> _______________________________________________
> Python-modules-team mailing list
> Python-modules-team at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team



More information about the Python-modules-team mailing list