checkbashisms: freeze> python -m pip freeze --all docs: install_deps> python -I -m pip install -r docs/requirements.txt buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt checkbashisms: pip==26.2.1,setuptools==84.0.0 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + checkbashisms: OK ✔ in 3.11 seconds pre-commit: install_deps> python -I -m pip install pre-commit pre-commit: freeze> python -m pip freeze --all pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==3.32.4,identify==2.6.19,nodeenv==1.10.0,pip==26.2.1,platformdirs==4.11.5,pre_commit==4.6.2,python-discovery==1.6.0,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.7.7 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' /usr/bin/cpan pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. buildcontroller: freeze> python -m pip freeze --all [INFO] Initializing environment for https://github.com/hhatto/autopep8. buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.2,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 21 21 ok, java is 21 or newer [INFO] Initializing environment for https://github.com/perltidy/perltidy. Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) Maven home: /opt/maven Java version: 21.0.11, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 Default locale: en, platform encoding: UTF-8 OS name: "linux", version: "5.15.0-186-generic", arch: "amd64", family: "unix" [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. [INFO] Initializing environment for https://github.com/adrienverge/yamllint. [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... docs-linkcheck: freeze> python -m pip freeze --all docs: freeze> python -m pip freeze --all docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.37.4,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.22.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==2.1.0,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.4.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.0,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.37.4,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.22.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==2.1.0,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.4.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.0,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... docs: OK ✔ in 20.77 seconds pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' docs-linkcheck: OK ✔ in 22.08 seconds pylint: freeze> python -m pip freeze --all pylint: astroid==4.0.4,dill==0.4.1,isort==9.0.1,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.11.5,pylint==4.0.8,setuptools==84.0.0,tomlkit==0.15.1 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + [INFO] Installing environment for https://github.com/hhatto/autopep8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/perltidy/perltidy. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... ------------------------------------ Your code has been rated at 10.00/10 [INFO] Installing environment for https://github.com/adrienverge/yamllint. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... trim trailing whitespace.................................................Passed fix end of files.........................................................Passed check for added large files..............................................Passed check for merge conflicts................................................Passed check for case conflicts.................................................Passed check json...............................................................Passed mixed line ending........................................................Passed Tabs remover.............................................................Passed autopep8.................................................................Passed perltidy.................................................................Passed ShellCheck v0.11.0.......................................................Passed prettier.................................................................Passed yamllint.................................................................Passed pylint: OK ✔ in 26.1 seconds pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual [INFO] Installing environment for https://github.com/jorisroovers/gitlint. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... gitlint..................................................................Passed pre-commit: OK ✔ in 1 minute 7.17 seconds buildcontroller: OK ✔ in 1 minute 58.11 seconds build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt build_karaf_tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt build_karaf_tests200: freeze> python -m pip freeze --all build_karaf_tests71: freeze> python -m pip freeze --all buildlighty: freeze> python -m pip freeze --all build_karaf_tests221: freeze> python -m pip freeze --all build_karaf_tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.2,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh build karaf in karafoc200 with ./karafoc200.env build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.2,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh build karaf in karaf71 with ./karaf71.env buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.2,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.2,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh build karaf in karaf221 with ./karaf221.env buildlighty: OK ✔ in 51.77 seconds sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt build_karaf_tests71: OK ✔ in 55.94 seconds build_karaf_tests221: OK ✔ in 55.96 seconds build_karaf_tests200: OK ✔ in 56.46 seconds testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt sims: freeze> python -m pip freeze --all sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.2,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh Using lighynode version 22.1.0.7 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory sims: OK ✔ in 12.05 seconds testsPCE: freeze> python -m pip freeze --all testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.63.0,gnpy4tpce==2.4.7,idna==3.19,iniconfig==2.3.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.2,MarkupSafe==3.0.3,matplotlib==3.11.1,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.2,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.3.post1,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.7.0,Werkzeug==2.0.3,xlrd==1.2.0 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pytest -q transportpce_tests/pce/test01_pce.py .................... [100%] 20 passed in 111.38s (0:01:51) pytest -q transportpce_tests/pce/test02_pce_400G.py ............ [100%] 12 passed in 47.52s pytest -q transportpce_tests/pce/test03_gnpy.py ........ [100%] 8 passed in 38.49s pytest -q transportpce_tests/pce/test04_pce_bug_fix.py ... [100%] 3 passed in 36.96s testsPCE: OK ✔ in 4 minutes 44.25 seconds tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt tests_tapi: freeze> python -m pip freeze --all tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.2,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi using environment variables from ./karaf221.env pytest -q transportpce_tests/tapi/test01_abstracted_topology.py ................................................... [100%] 51 passed in 620.18s (0:10:20) pytest -q transportpce_tests/tapi/test02_full_topology.py .................................... [100%] 36 passed in 508.41s (0:08:28) pytest -q transportpce_tests/tapi/test03_tapi_device_change_notifications.py ..........................................................F...........F [100%] =================================== FAILURES =================================== ___ TestTransportPCEDeviceChangeNotifications.test_59_check_update_tapi_neps ___ self = def test_59_check_update_tapi_neps(self): self.node_details["topology-id"] = test_utils.T0_FULL_MULTILAYER_TOPO_UUID # self.node_details["node-id"] = uuid.UUID(bytes="ROADM-A1+PHOTONIC_MEDIA".bytes) self.node_details["node-id"] = "3b726367-6f2d-3e3f-9033-d99b61459075" response = test_utils.transportpce_api_rpc_request( 'tapi-topology', 'get-node-details', self.node_details) self.assertEqual(response['status_code'], requests.codes.ok) nep_list = response['output']['node']['owned-node-edge-point'] nb_updated_neps = 0 for nep in nep_list: if 'SRG1-PP2-TXRX' in nep['name'][0]['value']: > self.assertEqual(nep['operational-state'], 'DISABLED', "Operational State should be 'DISABLED'") E AssertionError: 'ENABLED' != 'DISABLED' E - ENABLED E + DISABLED E : Operational State should be 'DISABLED' transportpce_tests/tapi/test03_tapi_device_change_notifications.py:901: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_59_check_update_tapi_neps _ TestTransportPCEDeviceChangeNotifications.test_71_check_uninstall_Tapi_Feature _ self = conn = method = 'GET' url = '/rests/data/ietf-network:networks/network=otn-topology?content=config' body = None headers = {'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) timeout = Timeout(connect=30, read=30, total=None), chunked = False response_conn = preload_content = False, decode_content = False, enforce_content_length = True def _make_request( self, conn: BaseHTTPConnection, method: str, url: str, body: _TYPE_BODY | None = None, headers: typing.Mapping[str, str] | None = None, retries: Retry | None = None, timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, chunked: bool = False, response_conn: BaseHTTPConnection | None = None, preload_content: bool = True, decode_content: bool = True, enforce_content_length: bool = True, ) -> BaseHTTPResponse: """ Perform a request on a given urllib connection object taken from our pool. :param conn: a connection from one of our connection pools :param method: HTTP request method (such as GET, POST, PUT, etc.) :param url: The URL to perform the request on. :param body: Data to send in the request body, either :class:`str`, :class:`bytes`, an iterable of :class:`str`/:class:`bytes`, or a file-like object. :param headers: Dictionary of custom headers to send, such as User-Agent, If-None-Match, etc. If None, pool headers are used. If provided, these headers completely replace any pool-specific headers. :param retries: Configure the number of retries to allow before raising a :class:`~urllib3.exceptions.MaxRetryError` exception. Pass ``None`` to retry until you receive a response. Pass a :class:`~urllib3.util.retry.Retry` object for fine-grained control over different types of retries. Pass an integer number to retry connection errors that many times, but no other types of errors. Pass zero to never retry. If ``False``, then retries are disabled and any exception is raised immediately. Also, instead of raising a MaxRetryError on redirects, the redirect response will be returned. :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. :param timeout: If specified, overrides the default timeout for this one request. It may be a float (in seconds) or an instance of :class:`urllib3.util.Timeout`. :param chunked: If True, urllib3 will send the body using chunked transfer encoding. Otherwise, urllib3 will send the body using the standard content-length form. Defaults to False. :param response_conn: Set this to ``None`` if you will handle releasing the connection or set the connection to have the response release it. :param preload_content: If True, the response's body will be preloaded during construction. :param decode_content: If True, will attempt to decode the body based on the 'content-encoding' header. :param enforce_content_length: Enforce content length checking. Body returned by server must match value of Content-Length header, if present. Otherwise, raise error. """ self.num_requests += 1 timeout_obj = self._get_timeout(timeout) timeout_obj.start_connect() conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout) try: # Trigger any extra validation we need to do. try: self._validate_conn(conn) except (SocketTimeout, BaseSSLError) as e: self._raise_timeout(err=e, url=url, timeout_value=conn.timeout) raise # _validate_conn() starts the connection to an HTTPS proxy # so we need to wrap errors with 'ProxyError' here too. except ( OSError, NewConnectionError, TimeoutError, BaseSSLError, CertificateError, SSLError, ) as e: new_e: Exception = e if isinstance(e, (BaseSSLError, CertificateError)): new_e = SSLError(e) # If the connection didn't successfully connect to it's proxy # then there if isinstance( new_e, (OSError, NewConnectionError, TimeoutError, SSLError) ) and (conn and conn.proxy and not conn.has_connected_to_proxy): new_e = _wrap_proxy_error(new_e, conn.proxy.scheme) raise new_e # conn.request() calls http.client.*.request, not the method in # urllib3.request. It also calls makefile (recv) on the socket. try: conn.request( method, url, body=body, headers=headers, chunked=chunked, preload_content=preload_content, decode_content=decode_content, enforce_content_length=enforce_content_length, ) # We are swallowing BrokenPipeError (errno.EPIPE) since the server is # legitimately able to close the connection after sending a valid response. # With this behaviour, the received response is still readable. except BrokenPipeError: pass except OSError as e: # MacOS/Linux # EPROTOTYPE and ECONNRESET are needed on macOS # https://erickt.github.io/blog/2014/11/19/adventures-in-debugging-a-potential-osx-kernel-bug/ # Condition changed later to emit ECONNRESET instead of only EPROTOTYPE. if e.errno != errno.EPROTOTYPE and e.errno != errno.ECONNRESET: raise # Reset the timeout for the recv() on the socket read_timeout = timeout_obj.read_timeout if not conn.is_closed: # In Python 3 socket.py will catch EAGAIN and return None when you # try and read into the file pointer created by http.client, which # instead raises a BadStatusLine exception. Instead of catching # the exception and assuming all BadStatusLine exceptions are read # timeouts, check for a zero timeout before making the request. if read_timeout == 0: raise ReadTimeoutError( self, url, f"Read timed out. (read timeout={read_timeout})" ) conn.timeout = read_timeout # Receive the response from the server try: > response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/connectionpool.py:534: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/connection.py:571: in getresponse httplib_response = super().getresponse() ^^^^^^^^^^^^^^^^^^^^^ /opt/pyenv/versions/3.11.10/lib/python3.11/http/client.py:1395: in getresponse response.begin() /opt/pyenv/versions/3.11.10/lib/python3.11/http/client.py:325: in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ /opt/pyenv/versions/3.11.10/lib/python3.11/http/client.py:286: in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = b = def readinto(self, b): """Read up to len(b) bytes into the writable buffer *b* and return the number of bytes read. If the socket is non-blocking and no bytes are available, None is returned. If *b* is non-empty, a 0 return value indicates that the connection was shutdown at the other end. """ self._checkClosed() self._checkReadable() if self._timeout_occurred: raise OSError("cannot read from timed out object") while True: try: > return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ E TimeoutError: timed out /opt/pyenv/versions/3.11.10/lib/python3.11/socket.py:718: TimeoutError The above exception was the direct cause of the following exception: self = request = , stream = False, timeout = 30, verify = True cert = None, proxies = OrderedDict() def send( self, request: PreparedRequest, stream: bool = False, timeout: _t.TimeoutType = None, verify: _t.VerifyType = True, cert: _t.CertType = None, proxies: dict[str, str] | None = None, ) -> Response: """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ assert _is_prepared(request) try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout resolved_timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): resolved_timeout = timeout else: resolved_timeout = TimeoutSauce(connect=timeout, read=timeout) try: > resp = conn.urlopen( method=request.method, url=url, body=request.body, # type: ignore[arg-type] # urllib3 stubs don't accept Iterable[bytes | str] headers=request.headers, # type: ignore[arg-type] # urllib3#3072 redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=resolved_timeout, chunked=chunked, ) ../.tox/tests_tapi/lib/python3.11/site-packages/requests/adapters.py:696: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/connectionpool.py:842: in urlopen retries = retries.increment( ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/util/retry.py:498: in increment raise reraise(type(error), error, _stacktrace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/util/util.py:39: in reraise raise value ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/connectionpool.py:788: in urlopen response = self._make_request( ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/connectionpool.py:536: in _make_request self._raise_timeout(err=e, url=url, timeout_value=read_timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = err = TimeoutError('timed out') url = '/rests/data/ietf-network:networks/network=otn-topology?content=config' timeout_value = 30 def _raise_timeout( self, err: BaseSSLError | OSError | SocketTimeout, url: str, timeout_value: _TYPE_TIMEOUT | None, ) -> None: """Is the error actually a timeout? Will raise a ReadTimeout or pass""" if isinstance(err, SocketTimeout): > raise ReadTimeoutError( self, url, f"Read timed out. (read timeout={timeout_value})" ) from err E urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='localhost', port=8183): Read timed out. (read timeout=30) ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/connectionpool.py:367: ReadTimeoutError During handling of the above exception, another exception occurred: self = def test_71_check_uninstall_Tapi_Feature(self): test_utils.uninstall_karaf_feature("odl-transportpce-tapi") time.sleep(40) print("Tapi Feature uninstalled") > response = test_utils.get_ietf_network_request('otn-topology', 'config') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/tapi/test03_tapi_device_change_notifications.py:999: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ transportpce_tests/common/test_utils.py:587: in get_ietf_network_request response = get_request(url[RESTCONF_VERSION].format(*format_args)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/common/test_utils.py:118: in get_request return requests.request( ../.tox/tests_tapi/lib/python3.11/site-packages/requests/api.py:71: in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../.tox/tests_tapi/lib/python3.11/site-packages/requests/sessions.py:651: in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../.tox/tests_tapi/lib/python3.11/site-packages/requests/sessions.py:784: in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , stream = False, timeout = 30, verify = True cert = None, proxies = OrderedDict() def send( self, request: PreparedRequest, stream: bool = False, timeout: _t.TimeoutType = None, verify: _t.VerifyType = True, cert: _t.CertType = None, proxies: dict[str, str] | None = None, ) -> Response: """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ assert _is_prepared(request) try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout resolved_timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): resolved_timeout = timeout else: resolved_timeout = TimeoutSauce(connect=timeout, read=timeout) try: resp = conn.urlopen( method=request.method, url=url, body=request.body, # type: ignore[arg-type] # urllib3 stubs don't accept Iterable[bytes | str] headers=request.headers, # type: ignore[arg-type] # urllib3#3072 redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=resolved_timeout, chunked=chunked, ) except (ProtocolError, OSError) as err: raise ConnectionError(err, request=request) except MaxRetryError as e: if isinstance(e.reason, ConnectTimeoutError): # TODO: Remove this in 3.0.0: see #2811 if not isinstance(e.reason, NewConnectionError): raise ConnectTimeout(e, request=request) if isinstance(e.reason, ResponseError): raise RetryError(e, request=request) if isinstance(e.reason, _ProxyError): raise ProxyError(e, request=request) if isinstance(e.reason, _SSLError): # This branch is for urllib3 v1.22 and later. raise SSLError(e, request=request) raise ConnectionError(e, request=request) except ClosedPoolError as e: raise ConnectionError(e, request=request) except _ProxyError as e: raise ProxyError(e) except (_SSLError, _HTTPError) as e: if isinstance(e, _SSLError): # This branch is for urllib3 versions earlier than v1.22 raise SSLError(e, request=request) elif isinstance(e, ReadTimeoutError): > raise ReadTimeout(e, request=request) E requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=8183): Read timed out. (read timeout=30) ../.tox/tests_tapi/lib/python3.11/site-packages/requests/adapters.py:742: ReadTimeout ----------------------------- Captured stdout call ----------------------------- execution of test_71_check_uninstall_Tapi_Feature uninstalling feature odl-transportpce-tapi client: JAVA_HOME not set; results may vary odl-transportpce-tapi │ 13.0.0.SNAPSHOT │ │ Uninstalled │ odl-transportpce-tapi │ OpenDaylight :: transportpce :: tapi odl-transportpce-tapisbi │ 13.0.0.SNAPSHOT │ │ Uninstalled │ odl-transportpce-tapisbi │ OpenDaylight :: transportpce :: tapisbi Tapi Feature uninstalled --------------------------- Captured stdout teardown --------------------------- all processes killed ODL log file stored =========================== short test summary info ============================ FAILED transportpce_tests/tapi/test03_tapi_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_59_check_update_tapi_neps FAILED transportpce_tests/tapi/test03_tapi_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_71_check_uninstall_Tapi_Feature 2 failed, 69 passed in 359.42s (0:05:59) tests_tapi: exit 1 (1488.95 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=7327 tests_tapi: FAIL ✖ in 24 minutes 57.04 seconds tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt tests200: freeze> python -m pip freeze --all tests221: freeze> python -m pip freeze --all tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.2,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 using environment variables from ./karaf221.env pytest -q transportpce_tests/2.2.1/test01_portmapping.py tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.2,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 using environment variables from ./karafoc200.env pytest -q transportpce_tests/oc200/test01_portmapping.py .................. [100%] 10 passed in 66.03s (0:01:06) pytest -q transportpce_tests/oc200/test02_topology.py ............................. [100%] 35 passed in 97.38s (0:01:37) pytest -q transportpce_tests/2.2.1/test02_topo_portmapping.py ............ [100%] 14 passed in 64.18s (0:01:04) pytest -q transportpce_tests/oc200/test03_renderer.py ...... [100%] 6 passed in 50.81s pytest -q transportpce_tests/2.2.1/test03_topology.py ................ [100%] 16 passed in 59.04s pytest -q transportpce_tests/oc200/test04_end2end.py ....................................F.F...F.F....................... [100%] 44 passed in 152.87s (0:02:32) pytest -q transportpce_tests/2.2.1/test04_otn_topology.py ......................... [100%] 12 passed in 62.28s (0:01:02) pytest -q transportpce_tests/2.2.1/test05_flex_grid.py ...... [100%] =================================== FAILURES =================================== _____ TransportPCEOC200End2EndTesting.test_11_xpdrA2_portmapping_NETWORK9 ______ self = def test_11_xpdrA2_portmapping_NETWORK9(self): response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR1-NETWORK9") self.assertEqual(response['status_code'], requests.codes.ok) > self.assertIn( { 'logical-connection-point': 'XPDR1-NETWORK9', 'port-qual': 'switch-network', 'port-oper-state': 'ACTIVE', 'rate': '400', 'xpdr-type': 'mpdr', 'openconfig-info': { 'supported-optical-channels': ['linecard-1-line-opt-1-1'] }, 'supported-operational-mode': ['4308'], 'supporting-circuit-pack-name': 'linecard-1-line-transceiver-1', 'lcp-hash-val': 'AIGiVAQ4gDit', 'supported-interface-capability': ['org-openroadm-port-types:if-OTUCn-ODUCn'], 'port-direction': 'bidirectional', 'port-admin-state': 'ENABLED', 'supporting-port': 'linecard-1-line-port-1' }, response['mapping']) E AssertionError: {'logical-connection-point': 'XPDR1-NETWORK9', 'port-qual': 'switch-network', 'port-oper-state': 'ACTIVE', 'rate': '400', 'xpdr-type': 'mpdr', 'openconfig-info': {'supported-optical-channels': ['linecard-1-line-opt-1-1']}, 'supported-operational-mode': ['4308'], 'supporting-circuit-pack-name': 'linecard-1-line-transceiver-1', 'lcp-hash-val': 'AIGiVAQ4gDit', 'supported-interface-capability': ['org-openroadm-port-types:if-OTUCn-ODUCn'], 'port-direction': 'bidirectional', 'port-admin-state': 'ENABLED', 'supporting-port': 'linecard-1-line-port-1'} not found in [{'logical-connection-point': 'XPDR1-NETWORK9', 'supporting-circuit-pack-name': 'linecard-1-line-transceiver-1', 'xpdr-number': 1, 'rate': '400', 'lcp-hash-val': 'AIGiVAQ4gDit', 'port-direction': 'bidirectional', 'port-oper-state': 'ACTIVE', 'supporting-port': 'linecard-1-line-port-1', 'supported-interface-capability': ['org-openroadm-port-types:if-OTUCn-ODUCn'], 'port-admin-state': 'ENABLED', 'openconfig-info': {'supported-optical-channels': ['linecard-1-line-opt-1-1']}, 'port-qual': 'switch-network', 'xpdr-type': 'mpdr', 'supported-operational-mode': ['4308']}] transportpce_tests/oc200/test04_end2end.py:344: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_11_xpdrA2_portmapping_NETWORK9 _____ TransportPCEOC200End2EndTesting.test_12_xpdrC2_portmapping_NETWORK9 ______ self = def test_12_xpdrC2_portmapping_NETWORK9(self): response = test_utils.get_portmapping_node_attr("XPDR-C2", "mapping", "XPDR1-NETWORK9") self.assertEqual(response['status_code'], requests.codes.ok) > self.assertIn( { 'logical-connection-point': 'XPDR1-NETWORK9', 'port-qual': 'switch-network', 'port-oper-state': 'ACTIVE', 'rate': '400', 'xpdr-type': 'mpdr', 'openconfig-info': { 'supported-optical-channels': ['linecard-1-line-opt-1-1'] }, 'supported-operational-mode': ['4308'], 'supporting-circuit-pack-name': 'linecard-1-line-transceiver-1', 'lcp-hash-val': 'ZbICgmaBrJs=', 'supported-interface-capability': ['org-openroadm-port-types:if-OTUCn-ODUCn'], 'port-direction': 'bidirectional', 'port-admin-state': 'ENABLED', 'supporting-port': 'linecard-1-line-port-1' }, response['mapping']) E AssertionError: {'logical-connection-point': 'XPDR1-NETWORK9', 'port-qual': 'switch-network', 'port-oper-state': 'ACTIVE', 'rate': '400', 'xpdr-type': 'mpdr', 'openconfig-info': {'supported-optical-channels': ['linecard-1-line-opt-1-1']}, 'supported-operational-mode': ['4308'], 'supporting-circuit-pack-name': 'linecard-1-line-transceiver-1', 'lcp-hash-val': 'ZbICgmaBrJs=', 'supported-interface-capability': ['org-openroadm-port-types:if-OTUCn-ODUCn'], 'port-direction': 'bidirectional', 'port-admin-state': 'ENABLED', 'supporting-port': 'linecard-1-line-port-1'} not found in [{'logical-connection-point': 'XPDR1-NETWORK9', 'supporting-circuit-pack-name': 'linecard-1-line-transceiver-1', 'xpdr-number': 1, 'rate': '400', 'lcp-hash-val': 'ZbICgmaBrJs=', 'port-direction': 'bidirectional', 'port-oper-state': 'ACTIVE', 'supporting-port': 'linecard-1-line-port-1', 'supported-interface-capability': ['org-openroadm-port-types:if-OTUCn-ODUCn'], 'port-admin-state': 'ENABLED', 'openconfig-info': {'supported-optical-channels': ['linecard-1-line-opt-1-1']}, 'port-qual': 'switch-network', 'xpdr-type': 'mpdr', 'supported-operational-mode': ['4308']}] transportpce_tests/oc200/test04_end2end.py:367: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_12_xpdrC2_portmapping_NETWORK9 ______ TransportPCEOC200End2EndTesting.test_15_xpdrA2_portmapping_CLIENT1 ______ self = def test_15_xpdrA2_portmapping_CLIENT1(self): response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR1-CLIENT1") self.assertEqual(response['status_code'], requests.codes.ok) expected = { 'logical-connection-point': 'XPDR1-CLIENT1', 'port-qual': 'switch-client', 'port-oper-state': 'INACTIVE', 'rate': '100', 'xpdr-type': 'mpdr', 'supported-operational-mode': ['4308'], 'supporting-circuit-pack-name': 'linecard-1-client-transceiver-1', 'lcp-hash-val': 'AODABTVSOHH0', 'supported-interface-capability': ['org-openroadm-port-types:if-100GE-ODU4'], 'port-direction': 'bidirectional', 'port-admin-state': 'DISABLED', 'supporting-port': 'linecard-1-client-port-1' } expected_sorted = test_utils.recursive_sort(expected) response_sorted = [ test_utils.recursive_sort(item) for item in response['mapping'] ] > self.assertIn(expected_sorted, response_sorted) E AssertionError: {'lcp-hash-val': 'AODABTVSOHH0', 'logical-connection-point': 'XPDR1-CLIENT1', 'port-admin-state': 'DISABLED', 'port-direction': 'bidirectional', 'port-oper-state': 'INACTIVE', 'port-qual': 'switch-client', 'rate': '100', 'supported-interface-capability': ['org-openroadm-port-types:if-100GE-ODU4'], 'supported-operational-mode': ['4308'], 'supporting-circuit-pack-name': 'linecard-1-client-transceiver-1', 'supporting-port': 'linecard-1-client-port-1', 'xpdr-type': 'mpdr'} not found in [{'lcp-hash-val': 'AODABTVSOHH0', 'logical-connection-point': 'XPDR1-CLIENT1', 'port-admin-state': 'DISABLED', 'port-direction': 'bidirectional', 'port-oper-state': 'INACTIVE', 'port-qual': 'switch-client', 'rate': '100', 'supported-interface-capability': ['org-openroadm-port-types:if-100GE-ODU4'], 'supported-operational-mode': ['4308'], 'supporting-circuit-pack-name': 'linecard-1-client-transceiver-1', 'supporting-port': 'linecard-1-client-port-1', 'xpdr-number': 1, 'xpdr-type': 'mpdr'}] transportpce_tests/oc200/test04_end2end.py:418: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_15_xpdrA2_portmapping_CLIENT1 ______ TransportPCEOC200End2EndTesting.test_16_xpdrC2_portmapping_CLIENT1 ______ self = def test_16_xpdrC2_portmapping_CLIENT1(self): response = test_utils.get_portmapping_node_attr("XPDR-C2", "mapping", "XPDR1-CLIENT1") self.assertEqual(response['status_code'], requests.codes.ok) expected = { 'logical-connection-point': 'XPDR1-CLIENT1', 'port-qual': 'switch-client', 'port-oper-state': 'INACTIVE', 'rate': '100', 'xpdr-type': 'mpdr', 'supported-operational-mode': ['4308'], 'supporting-circuit-pack-name': 'linecard-1-client-transceiver-1', 'lcp-hash-val': 'M5cViLS5z3o=', 'supported-interface-capability': ['org-openroadm-port-types:if-100GE-ODU4'], 'port-direction': 'bidirectional', 'port-admin-state': 'DISABLED', 'supporting-port': 'linecard-1-client-port-1' } expected_sorted = test_utils.recursive_sort(expected) response_sorted = [ test_utils.recursive_sort(item) for item in response['mapping'] ] > self.assertIn(expected_sorted, response_sorted) E AssertionError: {'lcp-hash-val': 'M5cViLS5z3o=', 'logical-connection-point': 'XPDR1-CLIENT1', 'port-admin-state': 'DISABLED', 'port-direction': 'bidirectional', 'port-oper-state': 'INACTIVE', 'port-qual': 'switch-client', 'rate': '100', 'supported-interface-capability': ['org-openroadm-port-types:if-100GE-ODU4'], 'supported-operational-mode': ['4308'], 'supporting-circuit-pack-name': 'linecard-1-client-transceiver-1', 'supporting-port': 'linecard-1-client-port-1', 'xpdr-type': 'mpdr'} not found in [{'lcp-hash-val': 'M5cViLS5z3o=', 'logical-connection-point': 'XPDR1-CLIENT1', 'port-admin-state': 'DISABLED', 'port-direction': 'bidirectional', 'port-oper-state': 'INACTIVE', 'port-qual': 'switch-client', 'rate': '100', 'supported-interface-capability': ['org-openroadm-port-types:if-100GE-ODU4'], 'supported-operational-mode': ['4308'], 'supporting-circuit-pack-name': 'linecard-1-client-transceiver-1', 'supporting-port': 'linecard-1-client-port-1', 'xpdr-number': 1, 'xpdr-type': 'mpdr'}] transportpce_tests/oc200/test04_end2end.py:441: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_16_xpdrC2_portmapping_CLIENT1 =========================== short test summary info ============================ FAILED transportpce_tests/oc200/test04_end2end.py::TransportPCEOC200End2EndTesting::test_11_xpdrA2_portmapping_NETWORK9 FAILED transportpce_tests/oc200/test04_end2end.py::TransportPCEOC200End2EndTesting::test_12_xpdrC2_portmapping_NETWORK9 FAILED transportpce_tests/oc200/test04_end2end.py::TransportPCEOC200End2EndTesting::test_15_xpdrA2_portmapping_CLIENT1 FAILED transportpce_tests/oc200/test04_end2end.py::TransportPCEOC200End2EndTesting::test_16_xpdrC2_portmapping_CLIENT1 4 failed, 39 passed in 197.82s (0:03:17) tests200: exit 1 (388.49 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=12735 tests200: FAIL ✖ in 6 minutes 36.98 seconds tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt .tests71: freeze> python -m pip freeze --all tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.2,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 using environment variables from ./karaf71.env pytest -q transportpce_tests/7.1/test01_portmapping.py ................... [100%] 12 passed in 46.54s pytest -q transportpce_tests/7.1/test02_otn_renderer.py ............. [100%] 16 passed in 117.31s (0:01:57) pytest -q transportpce_tests/2.2.1/test06_renderer_service_path_nominal.py ................................................. [100%] 31 passed in 39.73s pytest -q transportpce_tests/2.2.1/test07_otn_renderer.py ............................................................ [100%] 62 passed in 159.77s (0:02:39) pytest -q transportpce_tests/7.1/test03_renderer_or_modes.py ..... [100%] 26 passed in 93.74s (0:01:33) pytest -q transportpce_tests/2.2.1/test08_otn_sh_renderer.py ........................................................... [100%] 22 passed in 115.21s (0:01:55) .pytest -q transportpce_tests/2.2.1/test09_olm.py .......... [100%] 48 passed in 149.81s (0:02:29) pytest -q transportpce_tests/7.1/test04_renderer_regen_mode.py ....................................... [100%] 22 passed in 84.10s (0:01:24) ....................... [100%] 40 passed in 194.73s (0:03:14) pytest -q transportpce_tests/2.2.1/test11_otn_end2end.py ........................................................................ [ 74%] ......................... [100%] 97 passed in 492.43s (0:08:12) pytest -q transportpce_tests/2.2.1/test12_end2end.py ...................................................... [100%] 54 passed in 448.93s (0:07:28) pytest -q transportpce_tests/2.2.1/test14_otn_switch_end2end.py ........................................................................ [ 71%] ............................. [100%] 101 passed in 677.63s (0:11:17) pytest -q transportpce_tests/2.2.1/test15_otn_end2end_with_intermediate_switch.py ........................................................................ [ 67%] ................................... [100%] 107 passed in 617.01s (0:10:17) pytest -q transportpce_tests/2.2.1/test16_freq_end2end.py ............................................. [100%] 45 passed in 204.05s (0:03:24) tests71: OK ✔ in 7 minutes 30.3 seconds tests221: OK ✔ in 56 minutes 16.91 seconds tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt tests_hybrid: freeze> python -m pip freeze --all tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.2,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid using environment variables from ./karaf221.env pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py ................................................... [100%] 51 passed in 156.77s (0:02:36) pytest -q transportpce_tests/hybrid/test02_B100G_end2end.py ........................................................................ [ 66%] ..................................... [100%] 109 passed in 438.32s (0:07:18) pytest -q transportpce_tests/hybrid/test03_autonomous_reroute.py ..................................................... [100%] 53 passed in 265.20s (0:04:25) buildcontroller: OK (118.11=setup[9.27]+cmd[108.84] seconds) sims: OK (12.05=setup[8.46]+cmd[3.59] seconds) testsPCE: OK (284.25=setup[48.66]+cmd[235.59] seconds) build_karaf_tests221: OK (55.96=setup[8.79]+cmd[47.17] seconds) tests_tapi: FAIL code 1 (1497.04=setup[8.09]+cmd[1488.95] seconds) tests221: OK (3376.91=setup[8.47]+cmd[3368.44] seconds) build_karaf_tests71: OK (55.94=setup[8.76]+cmd[47.18] seconds) tests71: OK (450.30=setup[8.87]+cmd[441.43] seconds) build_karaf_tests200: OK (56.46=setup[8.75]+cmd[47.70] seconds) tests200: FAIL code 1 (396.98=setup[8.48]+cmd[388.49] seconds) tests_hybrid: OK (870.41=setup[9.15]+cmd[861.26] seconds) buildlighty: OK (51.77=setup[8.78]+cmd[42.99] seconds) docs: OK (20.77=setup[17.42]+cmd[3.35] seconds) docs-linkcheck: OK (22.08=setup[17.16]+cmd[4.92] seconds) checkbashisms: OK (3.10=setup[1.94]+cmd[0.00,0.04,1.12] seconds) pre-commit: OK (67.17=setup[3.20]+cmd[0.01,0.00,54.91,9.05] seconds) pylint: OK (26.10=setup[3.74]+cmd[22.36] seconds) evaluation failed :( (6203.21 seconds)