checkbashisms: freeze> python -m pip freeze --all 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: install_deps> python -I -m pip install -r docs/requirements.txt docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt checkbashisms: pip==25.2,setuptools==80.9.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.53 seconds pre-commit: install_deps> python -I -m pip install pre-commit pre-commit: freeze> python -m pip freeze --all pre-commit: cfgv==3.4.0,distlib==0.4.0,filelock==3.20.0,identify==2.6.15,nodeenv==1.9.1,pip==25.2,platformdirs==4.5.0,pre_commit==4.3.0,PyYAML==6.0.3,setuptools==80.9.0,virtualenv==20.35.3 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 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. [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. [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. buildcontroller: freeze> python -m pip freeze --all buildcontroller: bcrypt==5.0.0,certifi==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,cryptography==46.0.3,dict2xml==1.7.7,idna==3.11,iniconfig==2.3.0,invoke==2.2.1,lxml==6.0.2,netconf-client==3.5.0,packaging==25.0,paramiko==4.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pytest==8.4.2,requests==2.32.5,setuptools==80.9.0,urllib3==2.5.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 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 21 ok, java is 21 or newer Apache Maven 3.9.11 (3e54c93a704957b63ee3494413a2b544fd3d825b) Maven home: /opt/maven Java version: 21.0.8, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 Default locale: en, platform encoding: UTF-8 OS name: "linux", version: "5.15.0-153-generic", arch: "amd64", family: "unix" [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... [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... [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... docs: freeze> python -m pip freeze --all docs-linkcheck: freeze> python -m pip freeze --all docs: alabaster==1.0.0,attrs==25.4.0,babel==2.17.0,blockdiag==3.0.0,certifi==2025.10.5,charset-normalizer==3.4.4,contourpy==1.3.3,cycler==0.12.1,docutils==0.21.2,fonttools==4.60.1,funcparserlib==2.0.0a0,future==1.0.0,idna==3.11,imagesize==1.4.1,Jinja2==3.1.6,jsonschema==3.2.0,kiwisolver==1.4.9,lfdocs-conf==0.9.0,MarkupSafe==3.0.3,matplotlib==3.10.7,numpy==2.3.4,nwdiag==3.0.0,packaging==25.0,pillow==12.0.0,pip==25.2,Pygments==2.19.2,pyparsing==3.2.5,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.3,requests==2.32.5,requests-file==1.5.1,roman-numerals-py==3.1.0,seqdiag==3.0.0,setuptools==80.9.0,six==1.17.0,snowballstemmer==3.0.1,Sphinx==8.2.3,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-rtd-theme==3.0.2,sphinx-tabs==3.4.7,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,urllib3==2.5.0,webcolors==24.11.1 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/perltidy/perltidy. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... docs-linkcheck: alabaster==1.0.0,attrs==25.4.0,babel==2.17.0,blockdiag==3.0.0,certifi==2025.10.5,charset-normalizer==3.4.4,contourpy==1.3.3,cycler==0.12.1,docutils==0.21.2,fonttools==4.60.1,funcparserlib==2.0.0a0,future==1.0.0,idna==3.11,imagesize==1.4.1,Jinja2==3.1.6,jsonschema==3.2.0,kiwisolver==1.4.9,lfdocs-conf==0.9.0,MarkupSafe==3.0.3,matplotlib==3.10.7,numpy==2.3.4,nwdiag==3.0.0,packaging==25.0,pillow==12.0.0,pip==25.2,Pygments==2.19.2,pyparsing==3.2.5,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.3,requests==2.32.5,requests-file==1.5.1,roman-numerals-py==3.1.0,seqdiag==3.0.0,setuptools==80.9.0,six==1.17.0,snowballstemmer==3.0.1,Sphinx==8.2.3,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-rtd-theme==3.0.2,sphinx-tabs==3.4.7,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,urllib3==2.5.0,webcolors==24.11.1 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: OK ✔ in 31.92 seconds pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' docs-linkcheck: OK ✔ in 32.96 seconds pylint: freeze> python -m pip freeze --all pylint: astroid==4.0.1,dill==0.4.0,isort==7.0.0,mccabe==0.7.0,pip==25.2,platformdirs==4.5.0,pylint==4.0.2,setuptools==80.9.0,tomlkit==0.13.3 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}$' '{}' + trim trailing whitespace.................................................Failed - hook id: trailing-whitespace - exit code: 1 - files were modified by this hook Fixing tests/transportpce_tests/pce/test05_pce_tapi.py Fixing tests/transportpce_tests/common/test_utils_generate_tapi_topo.py Tabs remover.............................................................Passed autopep8.................................................................Failed - hook id: autopep8 - exit code: 1 - files were modified by this hook Traceback (most recent call last): File "/home/jenkins/.cache/pre-commit/repovblwf4a3/py_env-python3.11/bin/autopep8", line 7, in sys.exit(main()) ^^^^^^ File "/home/jenkins/.cache/pre-commit/repovblwf4a3/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 4543, in main results = fix_multiple_files(args.files, args, sys.stdout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jenkins/.cache/pre-commit/repovblwf4a3/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 4438, in fix_multiple_files ret = _fix_file((name, options, output)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jenkins/.cache/pre-commit/repovblwf4a3/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 4408, in _fix_file return fix_file(*parameters) ^^^^^^^^^^^^^^^^^^^^^ File "/home/jenkins/.cache/pre-commit/repovblwf4a3/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 3604, in fix_file fixed_source = fix_lines(fixed_source, options, filename=filename) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jenkins/.cache/pre-commit/repovblwf4a3/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 3584, in fix_lines fixed_source = fix.fix() ^^^^^^^^^ File "/home/jenkins/.cache/pre-commit/repovblwf4a3/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 618, in fix self._fix_source(filter_results(source=''.join(self.source), File "/home/jenkins/.cache/pre-commit/repovblwf4a3/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 562, in _fix_source modified_lines = fix(result) ^^^^^^^^^^^ File "/home/jenkins/.cache/pre-commit/repovblwf4a3/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 766, in fix_e225 pycodestyle.missing_whitespace_around_operator(fixed, ts)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'pycodestyle' has no attribute 'missing_whitespace_around_operator'. Did you mean: 'whitespace_around_operator'? perltidy.................................................................Passed pre-commit hook(s) made changes. If you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`. To run `pre-commit` as part of git workflow, use `pre-commit install`. All changes made by hooks: diff --git a/tests/transportpce_tests/common/test_utils_generate_tapi_topo.py b/tests/transportpce_tests/common/test_utils_generate_tapi_topo.py index 375b1b4ec..40d816398 100644 --- a/tests/transportpce_tests/common/test_utils_generate_tapi_topo.py +++ b/tests/transportpce_tests/common/test_utils_generate_tapi_topo.py @@ -24,6 +24,7 @@ sys.path.append('transportpce_tests/common/') import test_utils # nopep8 # pylint: disable=too-few-public-methods + class UuidServices: def __init__(self): # pylint: disable=invalid-name @@ -31,6 +32,7 @@ class UuidServices: self.odu = None self.dsr = None + class UuidServices2: def __init__(self): # pylint: disable=invalid-name @@ -38,6 +40,7 @@ class UuidServices2: self.odu = None self.dsr = None + class UuidServices3: def __init__(self): # pylint: disable=invalid-name @@ -47,6 +50,7 @@ class UuidServices3: # class TransportPCEtesting(unittest.TestCase): + processes = None WAITING = 20 # nominal value is 300 NODE_VERSION = '2.2.1' @@ -56,6 +60,7 @@ uuid_services3 = UuidServices3() del_serv_input_data = {"uuid": "TBD"} tapi_topo = {"topology-id": "TBD"} + def initSimulators(): print("Entering TestUtils setupClass starting simulators") print("Node version is {}".format(NODE_VERSION)) @@ -66,8 +71,9 @@ def initSimulators(): ('xpdrc', NODE_VERSION), ('spdrc', NODE_VERSION)]) + def connect_xpdrs(): - + print("Connecting SPDRA") response = test_utils.mount_device("SPDR-SA1", ('spdra', NODE_VERSION)) time.sleep(2) @@ -81,6 +87,7 @@ def connect_xpdrs(): response = test_utils.mount_device("XPDR-C1", ('xpdrc', NODE_VERSION)) time.sleep(2) + def connect_rdms(): print("Connecting ROADMA") response = test_utils.mount_device("ROADM-A1", ('roadma', NODE_VERSION)) @@ -93,6 +100,7 @@ def connect_rdms(): print("Connecting ROADMC failed") time.sleep(2) + def interconnect_roadm_and_xpdr(): response = test_utils.transportpce_api_rpc_request( 'transportpce-networkutils', 'init-xpdr-rdm-links', @@ -295,6 +303,7 @@ def interconnect_roadm_and_xpdr(): print("Connection from ROADMC1 to SPDRSC1-X2 succeeded") time.sleep(2) + def add_omsAttributes_to_ROADM2ROADM_links(): # Config ROADMA-ROADMC oms-attributes data = {"span": { @@ -331,6 +340,7 @@ def add_omsAttributes_to_ROADM2ROADM_links(): else: print("OMS attributes added on link ROADMC-ROADMA") + def create_services_on_infra(self): create_connectivity_service_PhotonicMedia(self) get_service_PhotonicMedia(self) @@ -345,6 +355,7 @@ def create_services_on_infra(self): create_connectivity_service_DSR(self) get_service_DSR(self) + def create_connectivity_service_PhotonicMedia(self): self.cr_serv_input_data["end-point"][0]["service-interface-point"]["service-interface-point-uuid"] = self.sAOTS self.cr_serv_input_data["end-point"][1]["service-interface-point"]["service-interface-point-uuid"] = self.sZOTS @@ -371,14 +382,15 @@ def create_connectivity_service_PhotonicMedia(self): 'value': 'SPDR-SA1-XPDR1'} tpcetest.assertDictEqual(dict(input_dict_1, **response['output']['service']), - response['output']['service']) + response['output']['service']) tpcetest.assertDictEqual(dict(input_dict_2, **response['output']['service']['end-point'][0]['name'][0]), - response['output']['service']['end-point'][0]['name'][0]) + response['output']['service']['end-point'][0]['name'][0]) tpcetest.assertDictEqual(dict(input_dict_3, **response['output']['service']['end-point'][1]['name'][0]), - response['output']['service']['end-point'][1]['name'][0]) + response['output']['service']['end-point'][1]['name'][0]) # If the gate fails is because of the waiting time not being enough # time.sleep(self.WAITING) + def get_service_PhotonicMedia(self): response = test_utils.get_ordm_serv_list_attr_request("services", str(tpcetest.uuid_services.pm)) print("getServiceResponse Service1 PhotonicMedia: {}".format(response)) @@ -389,6 +401,7 @@ def get_service_PhotonicMedia(self): tpcetest.assertEqual(response['services'][0]['lifecycle-state'], 'planned') time.sleep(1) + def create_connectivity_service2_PhotonicMedia(self): self.cr_serv_input_data["end-point"][0]["service-interface-point"]["service-interface-point-uuid"] = self.s2AOTS self.cr_serv_input_data["end-point"][1]["service-interface-point"]["service-interface-point-uuid"] = self.s2ZOTS @@ -416,14 +429,15 @@ def create_connectivity_service2_PhotonicMedia(self): 'value': 'SPDR-SA1-XPDR2'} tpcetest.assertDictEqual(dict(input_dict_1, **response['output']['service']), - response['output']['service']) + response['output']['service']) tpcetest.assertDictEqual(dict(input_dict_2, **response['output']['service']['end-point'][0]['name'][0]), - response['output']['service']['end-point'][0]['name'][0]) + response['output']['service']['end-point'][0]['name'][0]) tpcetest.assertDictEqual(dict(input_dict_3, **response['output']['service']['end-point'][1]['name'][0]), - response['output']['service']['end-point'][1]['name'][0]) + response['output']['service']['end-point'][1]['name'][0]) # If the gate fails is because of the waiting time not being enough # time.sleep(self.WAITING) + def get_service2_PhotonicMedia(self): response = test_utils.get_ordm_serv_list_attr_request("services", str(tpcetest.uuid_services2.pm)) print("getServiceResponse Service2 PhotonicMedia: {}".format(response)) @@ -434,6 +448,7 @@ def get_service2_PhotonicMedia(self): tpcetest.assertEqual(response['services'][0]['lifecycle-state'], 'planned') time.sleep(1) + def create_connectivity_service3_PhotonicMedia(self): self.cr_serv_input_data["end-point"][0]["service-interface-point"]["service-interface-point-uuid"] = self.s3AOTS self.cr_serv_input_data["end-point"][1]["service-interface-point"]["service-interface-point-uuid"] = self.s3ZOTS @@ -461,14 +476,15 @@ def create_connectivity_service3_PhotonicMedia(self): 'value': 'SPDR-SA1-XPDR3'} tpcetest.assertDictEqual(dict(input_dict_1, **response['output']['service']), - response['output']['service']) + response['output']['service']) tpcetest.assertDictEqual(dict(input_dict_2, **response['output']['service']['end-point'][0]['name'][0]), - response['output']['service']['end-point'][0]['name'][0]) + response['output']['service']['end-point'][0]['name'][0]) tpcetest.assertDictEqual(dict(input_dict_3, **response['output']['service']['end-point'][1]['name'][0]), - response['output']['service']['end-point'][1]['name'][0]) + response['output']['service']['end-point'][1]['name'][0]) # If the gate fails is because of the waiting time not being enough # time.sleep(self.WAITING) + def get_service3_PhotonicMedia(self): response = test_utils.get_ordm_serv_list_attr_request("services", str(tpcetest.uuid_services3.pm)) print("getServiceResponse Service3 PhotonicMedia: {}".format(response)) @@ -480,6 +496,8 @@ def get_service3_PhotonicMedia(self): time.sleep(1) # test create connectivity service from spdrA to spdrC for odu + + def create_connectivity_service_ODU(self): # pylint: disable=line-too-long self.cr_serv_input_data["layer-protocol-name"] = "ODU" @@ -515,14 +533,15 @@ def create_connectivity_service_ODU(self): 'value': 'SPDR-SA1-XPDR1'} tpcetest.assertDictEqual(dict(input_dict_1, **response['output']['service']), - response['output']['service']) + response['output']['service']) tpcetest.assertDictEqual(dict(input_dict_2, **response['output']['service']['end-point'][0]['name'][0]), - response['output']['service']['end-point'][0]['name'][0]) + response['output']['service']['end-point'][0]['name'][0]) tpcetest.assertDictEqual(dict(input_dict_3, **response['output']['service']['end-point'][1]['name'][0]), - response['output']['service']['end-point'][1]['name'][0]) + response['output']['service']['end-point'][1]['name'][0]) # If the gate fails is because of the waiting time not being enough # time.sleep(self.WAITING) + def get_service_ODU(self): response = test_utils.get_ordm_serv_list_attr_request("services", str(tpcetest.uuid_services.odu)) tpcetest.assertEqual(response['status_code'], requests.codes.ok) @@ -533,6 +552,8 @@ def get_service_ODU(self): time.sleep(1) # test create connectivity service from spdrA to spdrC for odu + + def create_connectivity_service3_ODU(self): # pylint: disable=line-too-long self.cr_serv_input_data["layer-protocol-name"] = "ODU" @@ -568,14 +589,15 @@ def create_connectivity_service3_ODU(self): 'value': 'SPDR-SA1-XPDR3'} tpcetest.assertDictEqual(dict(input_dict_1, **response['output']['service']), - response['output']['service']) + response['output']['service']) tpcetest.assertDictEqual(dict(input_dict_2, **response['output']['service']['end-point'][0]['name'][0]), - response['output']['service']['end-point'][0]['name'][0]) + response['output']['service']['end-point'][0]['name'][0]) tpcetest.assertDictEqual(dict(input_dict_3, **response['output']['service']['end-point'][1]['name'][0]), - response['output']['service']['end-point'][1]['name'][0]) + response['output']['service']['end-point'][1]['name'][0]) # If the gate fails is because of the waiting time not being enough # time.sleep(self.WAITING) + def get_service3_ODU(self): response = test_utils.get_ordm_serv_list_attr_request("services", str(tpcetest.uuid_services3.odu)) tpcetest.assertEqual(response['status_code'], requests.codes.ok) @@ -585,6 +607,8 @@ def get_service3_ODU(self): tpcetest.assertEqual(response['services'][0]['lifecycle-state'], 'planned') # test create connectivity service from spdrA to spdrC for dsr + + def create_connectivity_service_DSR(self): # pylint: disable=line-too-long self.cr_serv_input_data["layer-protocol-name"] = "DSR" @@ -621,17 +645,18 @@ def create_connectivity_service_DSR(self): 'value': 'SPDR-SA1-XPDR1'} tpcetest.assertDictEqual(dict(input_dict_1, - **response['output']['service']), - response['output']['service']) + **response['output']['service']), + response['output']['service']) tpcetest.assertDictEqual(dict(input_dict_2, - **response['output']['service']['end-point'][0]['name'][0]), - response['output']['service']['end-point'][0]['name'][0]) + **response['output']['service']['end-point'][0]['name'][0]), + response['output']['service']['end-point'][0]['name'][0]) tpcetest.assertDictEqual(dict(input_dict_3, - **response['output']['service']['end-point'][1]['name'][0]), - response['output']['service']['end-point'][1]['name'][0]) + **response['output']['service']['end-point'][1]['name'][0]), + response['output']['service']['end-point'][1]['name'][0]) # The sleep here is okey as the DSR service creation is very fast # time.sleep(self.WAITING) + def get_service_DSR(self): response = test_utils.get_ordm_serv_list_attr_request("services", str(tpcetest.uuid_services.dsr)) tpcetest.assertEqual(response['status_code'], requests.codes.ok) @@ -643,6 +668,7 @@ def get_service_DSR(self): print("Time to retrieve topology : 100 seconds... Hurry up") time.sleep(100) + def delete_created_tapi_services(self): delete_connectivity_service_DSR(self) delete_connectivity_service_ODU(self) @@ -652,6 +678,7 @@ def delete_created_tapi_services(self): delete_connectivity_service_PhotonicMedia(self) get_no_tapi_services() + def delete_connectivity_service_DSR(self): self.del_serv_input_data["uuid"] = str(tpcetest.uuid_services.dsr) response = test_utils.transportpce_api_rpc_request( @@ -659,6 +686,7 @@ def delete_connectivity_service_DSR(self): tpcetest.assertIn(response["status_code"], (requests.codes.ok, requests.codes.no_content)) time.sleep(self.WAITING) + def delete_connectivity_service_ODU(self): self.del_serv_input_data["uuid"] = str(tpcetest.uuid_services.odu) response = test_utils.transportpce_api_rpc_request( @@ -666,6 +694,7 @@ def delete_connectivity_service_ODU(self): tpcetest.assertIn(response["status_code"], (requests.codes.ok, requests.codes.no_content)) time.sleep(self.WAITING) + def delete_connectivity_service3_ODU(self): self.del_serv_input_data["uuid"] = str(tpcetest.uuid_services3.odu) response = test_utils.transportpce_api_rpc_request( @@ -673,6 +702,7 @@ def delete_connectivity_service3_ODU(self): tpcetest.assertIn(response["status_code"], (requests.codes.ok, requests.codes.no_content)) time.sleep(self.WAITING) + def delete_connectivity_service_PhotonicMedia(self): self.del_serv_input_data["uuid"] = str(tpcetest.uuid_services.pm) response = test_utils.transportpce_api_rpc_request( @@ -680,6 +710,7 @@ def delete_connectivity_service_PhotonicMedia(self): tpcetest.assertIn(response["status_code"], (requests.codes.ok, requests.codes.no_content)) time.sleep(self.WAITING) + def delete_connectivity_service3_PhotonicMedia(self): self.del_serv_input_data["uuid"] = str(tpcetest.uuid_services3.pm) response = test_utils.transportpce_api_rpc_request( @@ -687,6 +718,7 @@ def delete_connectivity_service3_PhotonicMedia(self): tpcetest.assertIn(response["status_code"], (requests.codes.ok, requests.codes.no_content)) time.sleep(self.WAITING) + def delete_connectivity_service2_PhotonicMedia(self): self.del_serv_input_data["uuid"] = str(tpcetest.uuid_services2.pm) response = test_utils.transportpce_api_rpc_request( @@ -694,6 +726,7 @@ def delete_connectivity_service2_PhotonicMedia(self): tpcetest.assertIn(response["status_code"], (requests.codes.ok, requests.codes.no_content)) time.sleep(self.WAITING) + def get_no_tapi_services(self): response = test_utils.transportpce_api_rpc_request( 'tapi-connectivity', 'get-connectivity-service-list', None) @@ -703,6 +736,7 @@ def get_no_tapi_services(self): "error-message": "No services exist in datastore"}, response['output']['errors']['error']) + def cleanup_and_desinstall_tapi_feature(): disconnect_spdrA_C() disconnect_roadmA_C() @@ -712,6 +746,7 @@ def cleanup_and_desinstall_tapi_feature(): # response = test_utils.get_ordm_serv_list_request() # tpcetest.assertEqual(response['status_code'], requests.codes.conflict) + def disconnect_spdrA_C(): response = test_utils.unmount_device("SPDR-SA1") if response.status_code not in [204]: @@ -720,6 +755,7 @@ def disconnect_spdrA_C(): if response.status_code not in [204]: print("disconnection of SPDR-SC1 failed") + def disconnect_roadmA_C(): response = test_utils.unmount_device("ROADM-A1") if response.status_code not in [204]: @@ -728,6 +764,7 @@ def disconnect_roadmA_C(): if response.status_code not in [204]: print("disconnection of ROADM-C1 failed") + def uninstall_Tapi_Feature(): test_utils.uninstall_karaf_feature("odl-transportpce-tapi") time.sleep(5) @@ -736,16 +773,16 @@ def uninstall_Tapi_Feature(): print("Tapi Feature uninstallation :") # tpcetest.assertEqual(response['status_code'], requests.codes.ok) # print("Tapi Feature uninstalled") - if('node' not in response['network'][0] and 'ietf-network-topology:link' not in response['network'][0]): - print(" otn topology empty") + if ('node' not in response['network'][0] and 'ietf-network-topology:link' not in response['network'][0]): + print(" otn topology empty") # tpcetest.assertNotIn('node', response['network'][0]) # tpcetest.assertNotIn('ietf-network-topology:link', response['network'][0]) response = test_utils.get_ietf_network_request('openroadm-topology', 'config') if ((requests.codes.ok in response['status_code']) and ('node' not in response['network'][0] and 'ietf-network-topology:link' not in response['network'][0])): - # tpcetest.assertEqual(response['status_code'], requests.codes.ok) - # tpcetest.assertNotIn('node', response['network'][0]) - # tpcetest.assertNotIn('ietf-network-topology:link', response['network'][0]) + # tpcetest.assertEqual(response['status_code'], requests.codes.ok) + # tpcetest.assertNotIn('node', response['network'][0]) + # tpcetest.assertNotIn('ietf-network-topology:link', response['network'][0]) print("OpenROADM topology also empty") print("Confirm Tapi Feature correctly uninstalled") diff --git a/tests/transportpce_tests/pce/test05_pce_tapi.py b/tests/transportpce_tests/pce/test05_pce_tapi.py index af012b9a2..8f3e6dfd3 100644 --- a/tests/transportpce_tests/pce/test05_pce_tapi.py +++ b/tests/transportpce_tests/pce/test05_pce_tapi.py @@ -197,7 +197,7 @@ class TransportPCEtest(unittest.TestCase): # cr_serv_input_data is used for tapi-connectivity service creation. However, at that stage we create service # using OR PCE and OR renderer (in a first step, as TAPI Renderer is not available). Thus to trigger path - # through OR PCE, considering initial request through TAPI API will be converted to an OR service-create, we need : + # through OR PCE, considering initial request through TAPI API will be converted to an OR service-create, we need : # 1) To use a service name that iS NOT a UUID but a string # 2) To use as the local-id, the name of the node in the OPENROADM topology cr_serv_input_data = { @@ -301,7 +301,7 @@ class TransportPCEtest(unittest.TestCase): uuid_services = UuidServices() del_serv_input_data = {"uuid": "TBD"} - + tapi_topo = {"topology-id": "TBD"} @@ -415,7 +415,7 @@ class TransportPCEtest(unittest.TestCase): self.assertEqual(response['services'][0]['connection-type'], 'infrastructure') self.assertEqual(response['services'][0]['lifecycle-state'], 'planned') time.sleep(self.WAITING) - + def test_05_successfull_path_computation_ODU4(self): self.path_computation_input_data["service-a-end"]["service-format"] = "ODU" @@ -436,7 +436,7 @@ class TransportPCEtest(unittest.TestCase): self.assertIn('Path is calculated', response['output']['configuration-response-common']['response-message']) print(response['output']['response-parameters']['path-description']) - + self.assertEqual(response['output']['response-parameters']['path-description']['aToZ-direction']['rate'], 100) node_to_find = [self.s2Auuid, self.s2Cuuid] # tp to find are the iOTU CEP @@ -482,14 +482,14 @@ class TransportPCEtest(unittest.TestCase): } input_dict_2 = {'value-name': 'OpenROADM node id', 'value': 'SPDR-SC1-XPDR2'} input_dict_3 = {'value-name': 'OpenROADM node id', 'value': 'SPDR-SA1-XPDR2'} - + self.assertDictEqual(dict(input_dict_1, **response['output']['service']), response['output']['service']) self.assertDictEqual(input_dict_2, response['output']['service']['end-point'][0]['name'][0]) self.assertDictEqual(input_dict_3, response['output']['service']['end-point'][1]['name'][0]) # If the gate fails is because of the waiting time not being enough time.sleep(self.WAITING) - + def test_07_get_ODU4_service1(self): response = test_utils.get_ordm_serv_list_attr_request("services", "serviceOdu4-1") self.assertEqual(response['status_code'], requests.codes.ok) @@ -499,7 +499,7 @@ class TransportPCEtest(unittest.TestCase): self.assertEqual(response['services'][0]['connection-type'], 'infrastructure') self.assertEqual(response['services'][0]['lifecycle-state'], 'planned') time.sleep(1) - + def test_08_successfull_path_computation_100GE_service__spdr_x2(self): # service-format set to other + service-rate set to 100 leads to 100GEs serviceType internally (switch) self.path_computation_input_data["service-a-end"]["service-format"] = "other" pre-commit: exit 1 (40.61 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure pid=2468 ************* Module test05_pce_tapi transportpce_tests/pce/test05_pce_tapi.py:380:0: C0301: Line too long (122/120) (line-too-long) transportpce_tests/pce/test05_pce_tapi.py:381:0: C0301: Line too long (122/120) (line-too-long) transportpce_tests/pce/test05_pce_tapi.py:459:0: C0301: Line too long (123/120) (line-too-long) transportpce_tests/pce/test05_pce_tapi.py:463:0: C0301: Line too long (123/120) (line-too-long) transportpce_tests/pce/test05_pce_tapi.py:596:0: C0301: Line too long (122/120) (line-too-long) transportpce_tests/pce/test05_pce_tapi.py:603:0: C0301: Line too long (122/120) (line-too-long) transportpce_tests/pce/test05_pce_tapi.py:680:0: C0301: Line too long (123/120) (line-too-long) transportpce_tests/pce/test05_pce_tapi.py:684:0: C0301: Line too long (123/120) (line-too-long) transportpce_tests/pce/test05_pce_tapi.py:765:0: C0301: Line too long (122/120) (line-too-long) transportpce_tests/pce/test05_pce_tapi.py:772:0: C0301: Line too long (122/120) (line-too-long) transportpce_tests/pce/test05_pce_tapi.py:815:0: C0301: Line too long (123/120) (line-too-long) transportpce_tests/pce/test05_pce_tapi.py:819:0: C0301: Line too long (123/120) (line-too-long) transportpce_tests/pce/test05_pce_tapi.py:347:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/pce/test05_pce_tapi.py:434:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/pce/test05_pce_tapi.py:496:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/pce/test05_pce_tapi.py:518:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/pce/test05_pce_tapi.py:559:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/pce/test05_pce_tapi.py:656:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/pce/test05_pce_tapi.py:718:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/pce/test05_pce_tapi.py:739:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/pce/test05_pce_tapi.py:851:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/pce/test05_pce_tapi.py:876:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/pce/test05_pce_tapi.py:903:16: R1723: Unnecessary "elif" after "break", remove the leading "el" from "elif" (no-else-break) transportpce_tests/pce/test05_pce_tapi.py:913:16: R1723: Unnecessary "elif" after "break", remove the leading "el" from "elif" (no-else-break) transportpce_tests/pce/test05_pce_tapi.py:15:0: W0611: Unused import os (unused-import) ************* Module common.test_utils_generate_tapi_topo transportpce_tests/common/test_utils_generate_tapi_topo.py:321:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) transportpce_tests/common/test_utils_generate_tapi_topo.py:338:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) transportpce_tests/common/test_utils_generate_tapi_topo.py:772:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) transportpce_tests/common/test_utils_generate_tapi_topo.py:59:0: C0103: Function name "initSimulators" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:62:4: W0621: Redefining name 'processes' from outer scope (line 50) (redefined-outer-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:61:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/common/test_utils_generate_tapi_topo.py:62:4: W0612: Unused variable 'processes' (unused-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:72:4: W0612: Unused variable 'response' (unused-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:96:0: R0912: Too many branches (40/12) (too-many-branches) transportpce_tests/common/test_utils_generate_tapi_topo.py:96:0: R0915: Too many statements (121/50) (too-many-statements) transportpce_tests/common/test_utils_generate_tapi_topo.py:298:0: C0103: Function name "add_omsAttributes_to_ROADM2ROADM_links" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:348:0: C0103: Function name "create_connectivity_service_PhotonicMedia" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:354:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:355:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:357:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/common/test_utils_generate_tapi_topo.py:357:52: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:373:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:375:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:377:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:382:0: C0103: Function name "get_service_PhotonicMedia" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:383:74: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:384:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/common/test_utils_generate_tapi_topo.py:385:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:386:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:387:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:387:70: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:388:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:389:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:382:30: W0613: Unused argument 'self' (unused-argument) transportpce_tests/common/test_utils_generate_tapi_topo.py:392:0: C0103: Function name "create_connectivity_service2_PhotonicMedia" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:402:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:403:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:405:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/common/test_utils_generate_tapi_topo.py:405:52: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:418:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:420:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:422:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:427:0: C0103: Function name "get_service2_PhotonicMedia" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:428:74: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:429:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/common/test_utils_generate_tapi_topo.py:430:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:431:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:432:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:432:70: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:433:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:434:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:427:31: W0613: Unused argument 'self' (unused-argument) transportpce_tests/common/test_utils_generate_tapi_topo.py:437:0: C0103: Function name "create_connectivity_service3_PhotonicMedia" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:447:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:448:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:450:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/common/test_utils_generate_tapi_topo.py:450:52: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:463:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:465:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:467:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:472:0: C0103: Function name "get_service3_PhotonicMedia" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:473:74: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:474:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/common/test_utils_generate_tapi_topo.py:475:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:476:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:477:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:477:70: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:478:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:479:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:472:31: W0613: Unused argument 'self' (unused-argument) transportpce_tests/common/test_utils_generate_tapi_topo.py:483:0: C0103: Function name "create_connectivity_service_ODU" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:495:74: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:500:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:501:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:503:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/common/test_utils_generate_tapi_topo.py:503:41: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:517:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:519:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:521:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:526:0: C0103: Function name "get_service_ODU" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:527:74: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:528:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:529:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:530:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:530:70: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:531:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:532:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:526:20: W0613: Unused argument 'self' (unused-argument) transportpce_tests/common/test_utils_generate_tapi_topo.py:536:0: C0103: Function name "create_connectivity_service3_ODU" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:548:74: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:553:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:554:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:556:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) transportpce_tests/common/test_utils_generate_tapi_topo.py:556:41: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:570:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:572:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:574:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:579:0: C0103: Function name "get_service3_ODU" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:580:74: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:581:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:582:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:583:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:583:70: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:584:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:585:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:579:21: W0613: Unused argument 'self' (unused-argument) transportpce_tests/common/test_utils_generate_tapi_topo.py:588:0: C0103: Function name "create_connectivity_service_DSR" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:601:74: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:606:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:607:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:609:41: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:623:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:626:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:629:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:635:0: C0103: Function name "get_service_DSR" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:636:74: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:637:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:638:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:639:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:639:70: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:640:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:641:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:635:20: W0613: Unused argument 'self' (unused-argument) transportpce_tests/common/test_utils_generate_tapi_topo.py:653:4: E1120: No value for argument 'self' in function call (no-value-for-parameter) transportpce_tests/common/test_utils_generate_tapi_topo.py:655:0: C0103: Function name "delete_connectivity_service_DSR" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:656:43: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:659:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:662:0: C0103: Function name "delete_connectivity_service_ODU" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:663:43: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:666:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:669:0: C0103: Function name "delete_connectivity_service3_ODU" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:670:43: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:673:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:676:0: C0103: Function name "delete_connectivity_service_PhotonicMedia" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:677:43: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:680:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:683:0: C0103: Function name "delete_connectivity_service3_PhotonicMedia" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:684:43: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:687:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:690:0: C0103: Function name "delete_connectivity_service2_PhotonicMedia" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:691:43: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:694:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:700:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:701:4: E0602: Undefined variable 'tpcetest' (undefined-variable) transportpce_tests/common/test_utils_generate_tapi_topo.py:697:25: W0613: Unused argument 'self' (unused-argument) transportpce_tests/common/test_utils_generate_tapi_topo.py:715:0: C0103: Function name "disconnect_spdrA_C" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:723:0: C0103: Function name "disconnect_roadmA_C" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:731:0: C0103: Function name "uninstall_Tapi_Feature" doesn't conform to snake_case naming style (invalid-name) transportpce_tests/common/test_utils_generate_tapi_topo.py:15:0: W0611: Unused import os (unused-import) ----------------------------------- Your code has been rated at 9.57/10 pre-commit: FAIL ✖ in 43.53 seconds pylint: exit 1 (27.14 seconds) /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}$' '{}' + pid=3238 [ERROR] COMPILATION ERROR : [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceOtnNode.java:[634,5] illegal start of expression [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.1:compile (default-compile) on project transportpce-pce: Compilation failure [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceOtnNode.java:[634,5] illegal start of expression [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :transportpce-pce pylint: FAIL ✖ in 31.22 seconds buildcontroller: exit 1 (64.35 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2665 buildcontroller: FAIL ✖ in 1 minute 13.43 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 build_karaf_tests190: 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_tests121: 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_tests190: freeze> python -m pip freeze --all build_karaf_tests221: freeze> python -m pip freeze --all build_karaf_tests121: freeze> python -m pip freeze --all build_karaf_tests71: freeze> python -m pip freeze --all build_karaf_tests221: bcrypt==5.0.0,certifi==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,cryptography==46.0.3,dict2xml==1.7.7,idna==3.11,iniconfig==2.3.0,invoke==2.2.1,lxml==6.0.2,netconf-client==3.5.0,packaging==25.0,paramiko==4.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pytest==8.4.2,requests==2.32.5,setuptools==80.9.0,urllib3==2.5.0 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh build_karaf_tests190: bcrypt==5.0.0,certifi==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,cryptography==46.0.3,dict2xml==1.7.7,idna==3.11,iniconfig==2.3.0,invoke==2.2.1,lxml==6.0.2,netconf-client==3.5.0,packaging==25.0,paramiko==4.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pytest==8.4.2,requests==2.32.5,setuptools==80.9.0,urllib3==2.5.0 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh build karaf in karaf221 with ./karaf221.env build karaf in karafoc with ./karafoc.env build_karaf_tests121: bcrypt==5.0.0,certifi==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,cryptography==46.0.3,dict2xml==1.7.7,idna==3.11,iniconfig==2.3.0,invoke==2.2.1,lxml==6.0.2,netconf-client==3.5.0,packaging==25.0,paramiko==4.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pytest==8.4.2,requests==2.32.5,setuptools==80.9.0,urllib3==2.5.0 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh build karaf in karaf121 with ./karaf121.env build_karaf_tests71: bcrypt==5.0.0,certifi==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,cryptography==46.0.3,dict2xml==1.7.7,idna==3.11,iniconfig==2.3.0,invoke==2.2.1,lxml==6.0.2,netconf-client==3.5.0,packaging==25.0,paramiko==4.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pytest==8.4.2,requests==2.32.5,setuptools==80.9.0,urllib3==2.5.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 build_karaf_tests221: OK ✔ in 1 minute 17.59 seconds 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_tests71: OK ✔ in 1 minute 19.5 seconds build_karaf_tests121: OK ✔ in 1 minute 19.59 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_tests190: OK ✔ in 1 minute 20.66 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 buildlighty: freeze> python -m pip freeze --all buildlighty: bcrypt==5.0.0,certifi==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,cryptography==46.0.3,dict2xml==1.7.7,idna==3.11,iniconfig==2.3.0,invoke==2.2.1,lxml==6.0.2,netconf-client==3.5.0,packaging==25.0,paramiko==4.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pytest==8.4.2,requests==2.32.5,setuptools==80.9.0,urllib3==2.5.0 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh sims: freeze> python -m pip freeze --all sims: bcrypt==5.0.0,certifi==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,cryptography==46.0.3,dict2xml==1.7.7,idna==3.11,iniconfig==2.3.0,invoke==2.2.1,lxml==6.0.2,netconf-client==3.5.0,packaging==25.0,paramiko==4.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pytest==8.4.2,requests==2.32.5,setuptools==80.9.0,urllib3==2.5.0 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh Using lighynode version 20.1.0.5 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory sims: OK ✔ in 12.2 seconds buildlighty: OK ✔ in 34.75 seconds testsPCE: freeze> python -m pip freeze --all testsPCE: bcrypt==5.0.0,certifi==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,click==8.3.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.7,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.60.1,gnpy4tpce==2.4.7,idna==3.11,iniconfig==2.3.0,injector==0.22.0,invoke==2.2.1,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.4.9,lxml==6.0.2,MarkupSafe==3.0.3,matplotlib==3.10.7,netconf-client==3.5.0,networkx==2.8.8,numpy==1.26.4,packaging==25.0,pandas==1.5.3,paramiko==4.0.0,pbr==5.11.1,pillow==12.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pyparsing==3.2.5,pytest==8.4.2,python-dateutil==2.9.0.post0,pytz==2025.2,requests==2.32.5,scipy==1.16.2,setuptools==50.3.2,six==1.17.0,urllib3==2.5.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 EEEEEEEEEEEEEEEEEEEE [100%] ==================================== ERRORS ==================================== _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False time.sleep(20) try: TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "honeynode-topo.json") with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: cls.simple_topo_bi_dir_data = topo_bi_dir.read() TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-simple-topology.json") with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: cls.simple_topo_uni_dir_data = topo_uni_dir.read() TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "NW-for-test-5-4.json") with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "pce_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test01_pce.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Pattern not found after 100 seconds! OpenDaylight failed to start ! =========================== short test summary info ============================ ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 20 errors in 2401.15s (0:40:01) testsPCE: exit 1 (2401.51 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4787 testsPCE: FAIL ✖ in 40 minutes 58.71 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 tests121: 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 tests190: 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 tests190: freeze> python -m pip freeze --all tests121: freeze> python -m pip freeze --all tests_tapi: bcrypt==5.0.0,certifi==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,cryptography==46.0.3,dict2xml==1.7.7,idna==3.11,iniconfig==2.3.0,invoke==2.2.1,lxml==6.0.2,netconf-client==3.5.0,packaging==25.0,paramiko==4.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pytest==8.4.2,requests==2.32.5,setuptools==80.9.0,urllib3==2.5.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 tests190: bcrypt==5.0.0,certifi==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,cryptography==46.0.3,dict2xml==1.7.7,idna==3.11,iniconfig==2.3.0,invoke==2.2.1,lxml==6.0.2,netconf-client==3.5.0,packaging==25.0,paramiko==4.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pytest==8.4.2,requests==2.32.5,setuptools==80.9.0,urllib3==2.5.0 tests190: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc using environment variables from ./karafoc.env pytest -q transportpce_tests/oc/test01_portmapping.py tests121: bcrypt==5.0.0,certifi==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,cryptography==46.0.3,dict2xml==1.7.7,idna==3.11,iniconfig==2.3.0,invoke==2.2.1,lxml==6.0.2,netconf-client==3.5.0,packaging==25.0,paramiko==4.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pytest==8.4.2,requests==2.32.5,setuptools==80.9.0,urllib3==2.5.0 tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 using environment variables from ./karaf121.env pytest -q transportpce_tests/1.2.1/test01_portmapping.py ........... [100%] 10 passed in 78.79s (0:01:18) pytest -q transportpce_tests/oc/test02_topology.py .................................... [100%] 21 passed in 126.57s (0:02:06) pytest -q transportpce_tests/1.2.1/test02_topo_portmapping.py ............................ [100%] 14 passed in 66.34s (0:01:06) pytest -q transportpce_tests/oc/test03_renderer.py ............... [100%] 6 passed in 58.91s pytest -q transportpce_tests/1.2.1/test03_topology.py ................. [100%] 19 passed in 56.76s tests190: OK ✔ in 3 minutes 32.1 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==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,cryptography==46.0.3,dict2xml==1.7.7,idna==3.11,iniconfig==2.3.0,invoke==2.2.1,lxml==6.0.2,netconf-client==3.5.0,packaging==25.0,paramiko==4.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pytest==8.4.2,requests==2.32.5,setuptools==80.9.0,urllib3==2.5.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 52.73s .pytest -q transportpce_tests/7.1/test02_otn_renderer.py ..................................................... [100%] 44 passed in 154.24s (0:02:34) pytest -q transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py .................................................................... [100%] 24 passed in 83.43s (0:01:23) pytest -q transportpce_tests/1.2.1/test05_olm.py . [100%] 62 passed in 159.26s (0:02:39) pytest -q transportpce_tests/7.1/test03_renderer_or_modes.py ........... [100%] 51 passed in 488.01s (0:08:08) pytest -q transportpce_tests/tapi/test02_full_topology.py ........................................................................................ [100%] 40 passed in 199.75s (0:03:19) pytest -q transportpce_tests/1.2.1/test06_end2end.py ............................................. [100%] 48 passed in 331.56s (0:05:31) pytest -q transportpce_tests/7.1/test04_renderer_regen_mode.py ................................. [100%] 36 passed in 336.17s (0:05:36) pytest -q transportpce_tests/tapi/test03_tapi_device_change_notifications.py ......... [100%] 22 passed in 76.94s (0:01:16) ................................................................................. [100%] 71 passed in 311.04s (0:05:11) pytest -q transportpce_tests/tapi/test04_topo_extension.py ..... [100%] 54 passed in 536.47s (0:08:56) ................... [100%] 19 passed in 146.65s (0:02:26) tests71: OK ✔ in 10 minutes 31.29 seconds tests121: OK ✔ in 19 minutes 29.17 seconds tests_tapi: OK ✔ in 21 minutes 30.8 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 tests221: freeze> python -m pip freeze --all tests221: bcrypt==5.0.0,certifi==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,cryptography==46.0.3,dict2xml==1.7.7,idna==3.11,iniconfig==2.3.0,invoke==2.2.1,lxml==6.0.2,netconf-client==3.5.0,packaging==25.0,paramiko==4.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pytest==8.4.2,requests==2.32.5,setuptools==80.9.0,urllib3==2.5.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 ................................... [100%] 35 passed in 78.58s (0:01:18) pytest -q transportpce_tests/2.2.1/test02_topo_portmapping.py ...... [100%] 6 passed in 46.11s pytest -q transportpce_tests/2.2.1/test03_topology.py ............................................ [100%] 44 passed in 138.55s (0:02:18) pytest -q transportpce_tests/2.2.1/test04_otn_topology.py ............ [100%] 12 passed in 59.75s pytest -q transportpce_tests/2.2.1/test05_flex_grid.py ................ [100%] 16 passed in 114.29s (0:01:54) pytest -q transportpce_tests/2.2.1/test06_renderer_service_path_nominal.py ............................... [100%] 31 passed in 37.09s pytest -q transportpce_tests/2.2.1/test07_otn_renderer.py .......................... [100%] 26 passed in 91.36s (0:01:31) pytest -q transportpce_tests/2.2.1/test08_otn_sh_renderer.py ...................... [100%] 22 passed in 100.54s (0:01:40) pytest -q transportpce_tests/2.2.1/test09_olm.py ........................................ [100%] 40 passed in 183.17s (0:03:03) pytest -q transportpce_tests/2.2.1/test11_otn_end2end.py ........................................................................ [ 74%] ......................... [100%] 97 passed in 491.95s (0:08:11) pytest -q transportpce_tests/2.2.1/test12_end2end.py ...................................................... [100%] 54 passed in 445.87s (0:07:25) pytest -q transportpce_tests/2.2.1/test14_otn_switch_end2end.py ........................................................................ [ 71%] ............................. [100%] 101 passed in 491.41s (0:08:11) pytest -q transportpce_tests/2.2.1/test15_otn_end2end_with_intermediate_switch.py ........................................................................ [ 67%] ................................... [100%] 107 passed in 603.98s (0:10:03) pytest -q transportpce_tests/2.2.1/test16_freq_end2end.py ..............FFFFFFFFFFF.........FFFF....... [100%] =================================== FAILURES =================================== ___________ TestTransportPCEFreqEndtoend.test_15_get_other_service1 ____________ self = def test_15_get_other_service1(self): response = test_utils.get_ordm_serv_list_attr_request( "services", "service1-openroadm") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/2.2.1/test16_freq_end2end.py:270: AssertionError _____ TestTransportPCEFreqEndtoend.test_16_check_interface_roadma1_deg2_mc _____ self = def test_16_check_interface_roadma1_deg2_mc(self): response = test_utils.check_node_attribute_request( 'ROADM-A1', 'interface', 'DEG2-TTP-TXRX-mc-282:287') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/2.2.1/test16_freq_end2end.py:284: AssertionError ____ TestTransportPCEFreqEndtoend.test_17_check_interface_roadm_a1_deg2_nmc ____ self = def test_17_check_interface_roadm_a1_deg2_nmc(self): response = test_utils.check_node_attribute_request( 'ROADM-A1', 'interface', 'DEG2-TTP-TXRX-nmc-282:287') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/2.2.1/test16_freq_end2end.py:307: AssertionError ____ TestTransportPCEFreqEndtoend.test_18_check_interface_roadm_a1_srg3_nmc ____ self = def test_18_check_interface_roadm_a1_srg3_nmc(self): response = test_utils.check_node_attribute_request( 'ROADM-A1', 'interface', 'SRG3-PP1-TXRX-nmc-282:287') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/2.2.1/test16_freq_end2end.py:330: AssertionError ____ TestTransportPCEFreqEndtoend.test_19_check_interface_roadm_c1_deg1_mc _____ self = def test_19_check_interface_roadm_c1_deg1_mc(self): response = test_utils.check_node_attribute_request( 'ROADM-C1', 'interface', 'DEG1-TTP-TXRX-mc-282:287') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/2.2.1/test16_freq_end2end.py:352: AssertionError ____ TestTransportPCEFreqEndtoend.test_20_check_interface_roadm_c1_deg1_nmc ____ self = def test_20_check_interface_roadm_c1_deg1_nmc(self): response = test_utils.check_node_attribute_request( 'ROADM-C1', 'interface', 'DEG1-TTP-TXRX-nmc-282:287') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/2.2.1/test16_freq_end2end.py:375: AssertionError ____ TestTransportPCEFreqEndtoend.test_21_check_interface_roadm_c1_srg1_nmc ____ self = def test_21_check_interface_roadm_c1_srg1_nmc(self): response = test_utils.check_node_attribute_request( 'ROADM-C1', 'interface', 'SRG1-PP1-TXRX-nmc-282:287') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/2.2.1/test16_freq_end2end.py:398: AssertionError ____ TestTransportPCEFreqEndtoend.test_22_check_openroadm_topo_ROADM_A1_SRG ____ self = def test_22_check_openroadm_topo_ROADM_A1_SRG(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-A1-SRG3', 'config') self.assertEqual(response['status_code'], requests.codes.ok) freq_map = base64.b64decode( response['node']['org-openroadm-network-topology:srg-attributes']['avail-freq-maps'][0]['freq-map']) freq_map_array = [int(x) for x in freq_map] > self.assertEqual(freq_map_array[35], 129, "Bits 282 to 287 should not be available") E AssertionError: 255 != 129 : Bits 282 to 287 should not be available transportpce_tests/2.2.1/test16_freq_end2end.py:423: AssertionError ____ TestTransportPCEFreqEndtoend.test_23_check_openroadm_topo_ROADM_A1_DEG ____ self = def test_23_check_openroadm_topo_ROADM_A1_DEG(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-A1-DEG2', 'config') self.assertEqual(response['status_code'], requests.codes.ok) freq_map = base64.b64decode( response['node']['org-openroadm-network-topology:degree-attributes']['avail-freq-maps'][0]['freq-map']) freq_map_array = [int(x) for x in freq_map] > self.assertEqual(freq_map_array[35], 129, "Bits 282 to 287 should not be available") E AssertionError: 255 != 129 : Bits 282 to 287 should not be available transportpce_tests/2.2.1/test16_freq_end2end.py:447: AssertionError ___ TestTransportPCEFreqEndtoend.test_24_check_openroadm_topo_ROADM_C1_DEG1 ____ self = def test_24_check_openroadm_topo_ROADM_C1_DEG1(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-C1-DEG1', 'config') self.assertEqual(response['status_code'], requests.codes.ok) freq_map = base64.b64decode( response['node']['org-openroadm-network-topology:degree-attributes']['avail-freq-maps'][0]['freq-map']) freq_map_array = [int(x) for x in freq_map] > self.assertEqual(freq_map_array[35], 129, "Bits 282 to 287 should not be available") E AssertionError: 255 != 129 : Bits 282 to 287 should not be available transportpce_tests/2.2.1/test16_freq_end2end.py:471: AssertionError ___ TestTransportPCEFreqEndtoend.test_25_check_openroadm_topo_ROADM_C1_SRG1 ____ self = def test_25_check_openroadm_topo_ROADM_C1_SRG1(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-C1-SRG1', 'config') self.assertEqual(response['status_code'], requests.codes.ok) freq_map = base64.b64decode( response['node']['org-openroadm-network-topology:srg-attributes']['avail-freq-maps'][0]['freq-map']) freq_map_array = [int(x) for x in freq_map] > self.assertEqual(freq_map_array[35], 129, "Bits 282 to 287 should not be available") E AssertionError: 255 != 129 : Bits 282 to 287 should not be available transportpce_tests/2.2.1/test16_freq_end2end.py:495: AssertionError _____ TestTransportPCEFreqEndtoend.test_35_check_openroadm_topo_ROADMA_SRG _____ self = def test_35_check_openroadm_topo_ROADMA_SRG(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-A1-SRG3', 'config') self.assertEqual(response['status_code'], requests.codes.ok) freq_map = base64.b64decode( response['node']['org-openroadm-network-topology:srg-attributes']['avail-freq-maps'][0]['freq-map']) freq_map_array = [int(x) for x in freq_map] self.assertEqual(freq_map_array[35], 255, "Bits 282 to 287 should be available") liste_tp = response['node']['ietf-network-topology:termination-point'] for ele in liste_tp: if ele['tp-id'] == 'SRG3-PP1-TXRX': freq_map = base64.b64decode( ele['org-openroadm-network-topology:pp-attributes']['avail-freq-maps'][0]['freq-map']) freq_map_array = [int(x) for x in freq_map] self.assertEqual(freq_map_array[35], 255, "Bits 282 to 287 should be available") if ele['tp-id'] == 'SRG3-CP-TXRX': freq_map = base64.b64decode( > ele['org-openroadm-network-topology:cp-attributes']['avail-freq-maps'][0]['freq-map']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E KeyError: 'org-openroadm-network-topology:cp-attributes' transportpce_tests/2.2.1/test16_freq_end2end.py:603: KeyError _____ TestTransportPCEFreqEndtoend.test_36_check_openroadm_topo_ROADMA_DEG _____ self = def test_36_check_openroadm_topo_ROADMA_DEG(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-A1-DEG2', 'config') self.assertEqual(response['status_code'], requests.codes.ok) freq_map = base64.b64decode( response['node']['org-openroadm-network-topology:degree-attributes']['avail-freq-maps'][0]['freq-map']) freq_map_array = [int(x) for x in freq_map] self.assertEqual(freq_map_array[35], 255, "Bits 282 to 287 should be available") self.assertEqual(response['node']['ietf-network-topology:termination-point'][0]['tp-id'], 'DEG2-TTP-TXRX') self.assertEqual(response['node']['ietf-network-topology:termination-point'][1]['tp-id'], 'DEG2-CTP-TXRX') liste_tp = response['node']['ietf-network-topology:termination-point'] for ele in liste_tp: if ele['tp-id'] == 'DEG2-TTP-TXRX': freq_map = base64.b64decode( > ele['org-openroadm-network-topology:tx-ttp-attributes']['avail-freq-maps'][0]['freq-map']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E KeyError: 'org-openroadm-network-topology:tx-ttp-attributes' transportpce_tests/2.2.1/test16_freq_end2end.py:622: KeyError ___ TestTransportPCEFreqEndtoend.test_37_check_openroadm_topo_ROADM_C1_DEG1 ____ self = def test_37_check_openroadm_topo_ROADM_C1_DEG1(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-C1-DEG1', 'config') self.assertEqual(response['status_code'], requests.codes.ok) freq_map = base64.b64decode( response['node']['org-openroadm-network-topology:degree-attributes']['avail-freq-maps'][0]['freq-map']) freq_map_array = [int(x) for x in freq_map] self.assertEqual(freq_map_array[35], 255, "Bits 282 to 287 should be available") self.assertEqual(response['node']['ietf-network-topology:termination-point'][0]['tp-id'], 'DEG1-CTP-TXRX') self.assertEqual(response['node']['ietf-network-topology:termination-point'][1]['tp-id'], 'DEG1-TTP-TXRX') liste_tp = response['node']['ietf-network-topology:termination-point'] for ele in liste_tp: if ele['tp-id'] == 'DEG1-CTP-TXRX': freq_map = base64.b64decode( > ele['org-openroadm-network-topology:ctp-attributes']['avail-freq-maps'][0]['freq-map']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E KeyError: 'org-openroadm-network-topology:ctp-attributes' transportpce_tests/2.2.1/test16_freq_end2end.py:644: KeyError ___ TestTransportPCEFreqEndtoend.test_38_check_openroadm_topo_ROADM_C1_SRG1 ____ self = def test_38_check_openroadm_topo_ROADM_C1_SRG1(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-C1-SRG1', 'config') self.assertEqual(response['status_code'], requests.codes.ok) freq_map = base64.b64decode( response['node']['org-openroadm-network-topology:srg-attributes']['avail-freq-maps'][0]['freq-map']) freq_map_array = [int(x) for x in freq_map] self.assertEqual(freq_map_array[35], 255, "Bits 282 to 287 should be available") self.assertEqual(response['node']['ietf-network-topology:termination-point'][1]['tp-id'], 'SRG1-PP1-TXRX') self.assertEqual(response['node']['ietf-network-topology:termination-point'][4]['tp-id'], 'SRG1-CP-TXRX') liste_tp = response['node']['ietf-network-topology:termination-point'] for ele in liste_tp: if ele['tp-id'] == 'SRG1-PP1-TXRX': freq_map = base64.b64decode( > ele['org-openroadm-network-topology:pp-attributes']['avail-freq-maps'][0]['freq-map']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E KeyError: 'org-openroadm-network-topology:pp-attributes' transportpce_tests/2.2.1/test16_freq_end2end.py:668: KeyError =========================== short test summary info ============================ FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_15_get_other_service1 FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_16_check_interface_roadma1_deg2_mc FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_17_check_interface_roadm_a1_deg2_nmc FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_18_check_interface_roadm_a1_srg3_nmc FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_19_check_interface_roadm_c1_deg1_mc FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_20_check_interface_roadm_c1_deg1_nmc FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_21_check_interface_roadm_c1_srg1_nmc FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_22_check_openroadm_topo_ROADM_A1_SRG FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_23_check_openroadm_topo_ROADM_A1_DEG FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_24_check_openroadm_topo_ROADM_C1_DEG1 FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_25_check_openroadm_topo_ROADM_C1_SRG1 FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_35_check_openroadm_topo_ROADMA_SRG FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_36_check_openroadm_topo_ROADMA_DEG FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_37_check_openroadm_topo_ROADM_C1_DEG1 FAILED transportpce_tests/2.2.1/test16_freq_end2end.py::TestTransportPCEFreqEndtoend::test_38_check_openroadm_topo_ROADM_C1_SRG1 15 failed, 30 passed in 199.62s (0:03:19) tests221: exit 1 (3086.68 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=22840 tests221: FAIL ✖ in 51 minutes 35.43 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==2025.10.5,cffi==2.0.0,charset-normalizer==3.4.4,cryptography==46.0.3,dict2xml==1.7.7,idna==3.11,iniconfig==2.3.0,invoke==2.2.1,lxml==6.0.2,netconf-client==3.5.0,packaging==25.0,paramiko==4.0.0,pip==25.2,pluggy==1.6.0,psutil==7.1.2,pycparser==2.23,Pygments==2.19.2,PyNaCl==1.6.0,pytest==8.4.2,requests==2.32.5,setuptools==80.9.0,urllib3==2.5.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 148.52s (0:02:28) pytest -q transportpce_tests/hybrid/test02_B100G_end2end.py ........................................................................ [ 66%] ..............FFFFFFFFFFFF........... [100%] =================================== FAILURES =================================== ___________ TestTransportPCEB100GEndtoend.test_087_get_400GE_service ___________ self = def test_087_get_400GE_service(self): response = test_utils.get_ordm_serv_list_attr_request("services", "service-400GE") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/hybrid/test02_B100G_end2end.py:1352: AssertionError ___________ TestTransportPCEB100GEndtoend.test_088_check_xc1_roadma ____________ self = def test_088_check_xc1_roadma(self): response = test_utils.check_node_attribute_request( "ROADM-A1", "roadm-connections", "SRG1-PP1-TXRX-DEG2-TTP-TXRX-755:768") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/hybrid/test02_B100G_end2end.py:1362: AssertionError ___________ TestTransportPCEB100GEndtoend.test_089_check_topo_xpdra2 ___________ self = def test_089_check_topo_xpdra2(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'XPDR-A2-XPDR1', 'config') self.assertEqual(response['status_code'], requests.codes.ok) liste_tp = response['node']['ietf-network-topology:termination-point'] for ele in liste_tp: if ele['tp-id'] == 'XPDR1-NETWORK1': self.assertEqual( 196.08125, > float(ele['org-openroadm-network-topology:xpdr-network-attributes']['wavelength']['frequency'])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E KeyError: 'wavelength' transportpce_tests/hybrid/test02_B100G_end2end.py:1381: KeyError ________ TestTransportPCEB100GEndtoend.test_090_check_topo_roadma_SRG1 _________ self = def test_090_check_topo_roadma_SRG1(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-A1-SRG1', 'config') self.assertEqual(response['status_code'], requests.codes.ok) freq_map = base64.b64decode( response['node']['org-openroadm-network-topology:srg-attributes']['avail-freq-maps'][0]['freq-map']) freq_map_array = [int(x) for x in freq_map] > self.assertEqual(freq_map_array[95], 0, "Index 1 should not be available") E AssertionError: 255 != 0 : Index 1 should not be available transportpce_tests/hybrid/test02_B100G_end2end.py:1395: AssertionError ________ TestTransportPCEB100GEndtoend.test_091_check_topo_roadma_DEG1 _________ self = def test_091_check_topo_roadma_DEG1(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-A1-DEG2', 'config') self.assertEqual(response['status_code'], requests.codes.ok) freq_map = base64.b64decode( response['node']['org-openroadm-network-topology:degree-attributes']['avail-freq-maps'][0]['freq-map']) freq_map_array = [int(x) for x in freq_map] > self.assertEqual(freq_map_array[95], 0, "Index 1 should not be available") E AssertionError: 255 != 0 : Index 1 should not be available transportpce_tests/hybrid/test02_B100G_end2end.py:1413: AssertionError __ TestTransportPCEB100GEndtoend.test_092_check_interface_400GE_CLIENT_xpdra2 __ self = def test_092_check_interface_400GE_CLIENT_xpdra2(self): response = test_utils.check_node_attribute_request( 'XPDR-A2', 'interface', 'XPDR1-CLIENT1-ETHERNET') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/hybrid/test02_B100G_end2end.py:1431: AssertionError ______ TestTransportPCEB100GEndtoend.test_093_check_interface_OTSI_xpdra2 ______ self = def test_093_check_interface_OTSI_xpdra2(self): response = test_utils.check_node_attribute_request( 'XPDR-A2', 'interface', 'XPDR1-NETWORK1-755:768') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/hybrid/test02_B100G_end2end.py:1448: AssertionError ___ TestTransportPCEB100GEndtoend.test_094_check_interface_OTSI_GROUP_xpdra2 ___ self = def test_094_check_interface_OTSI_GROUP_xpdra2(self): response = test_utils.check_node_attribute_request( 'XPDR-A2', 'interface', 'XPDR1-NETWORK1-OTSIGROUP-400G') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/hybrid/test02_B100G_end2end.py:1474: AssertionError _____ TestTransportPCEB100GEndtoend.test_095_check_interface_OTUC4_xpdra2 ______ self = def test_095_check_interface_OTUC4_xpdra2(self): response = test_utils.check_node_attribute_request( 'XPDR-A2', 'interface', 'XPDR1-NETWORK1-OTUC4') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/hybrid/test02_B100G_end2end.py:1493: AssertionError _____ TestTransportPCEB100GEndtoend.test_096_check_interface_ODUC4_xpdra2 ______ self = def test_096_check_interface_ODUC4_xpdra2(self): response = test_utils.check_node_attribute_request( 'XPDR-A2', 'interface', 'XPDR1-NETWORK1-ODUC4') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/hybrid/test02_B100G_end2end.py:1519: AssertionError ____ TestTransportPCEB100GEndtoend.test_097_check_interface_ODUFLEX_xpdra2 _____ self = def test_097_check_interface_ODUFLEX_xpdra2(self): response = test_utils.check_node_attribute_request( 'XPDR-A2', 'interface', 'XPDR1-NETWORK1-ODUFLEX') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 409 != 200 transportpce_tests/hybrid/test02_B100G_end2end.py:1550: AssertionError _________ TestTransportPCEB100GEndtoend.test_098_delete_400GE_service __________ self = def test_098_delete_400GE_service(self): self.del_serv_input_data["service-delete-req-info"]["service-name"] = "service-400GE" response = test_utils.transportpce_api_rpc_request( 'org-openroadm-service', 'service-delete', self.del_serv_input_data) self.assertEqual(response['status_code'], requests.codes.ok) > self.assertIn('Renderer service delete in progress', response['output']['configuration-response-common']['response-message']) E AssertionError: 'Renderer service delete in progress' not found in "Service 'service-400GE' does not exist in datastore" transportpce_tests/hybrid/test02_B100G_end2end.py:1606: AssertionError =========================== short test summary info ============================ FAILED transportpce_tests/hybrid/test02_B100G_end2end.py::TestTransportPCEB100GEndtoend::test_087_get_400GE_service FAILED transportpce_tests/hybrid/test02_B100G_end2end.py::TestTransportPCEB100GEndtoend::test_088_check_xc1_roadma FAILED transportpce_tests/hybrid/test02_B100G_end2end.py::TestTransportPCEB100GEndtoend::test_089_check_topo_xpdra2 FAILED transportpce_tests/hybrid/test02_B100G_end2end.py::TestTransportPCEB100GEndtoend::test_090_check_topo_roadma_SRG1 FAILED transportpce_tests/hybrid/test02_B100G_end2end.py::TestTransportPCEB100GEndtoend::test_091_check_topo_roadma_DEG1 FAILED transportpce_tests/hybrid/test02_B100G_end2end.py::TestTransportPCEB100GEndtoend::test_092_check_interface_400GE_CLIENT_xpdra2 FAILED transportpce_tests/hybrid/test02_B100G_end2end.py::TestTransportPCEB100GEndtoend::test_093_check_interface_OTSI_xpdra2 FAILED transportpce_tests/hybrid/test02_B100G_end2end.py::TestTransportPCEB100GEndtoend::test_094_check_interface_OTSI_GROUP_xpdra2 FAILED transportpce_tests/hybrid/test02_B100G_end2end.py::TestTransportPCEB100GEndtoend::test_095_check_interface_OTUC4_xpdra2 FAILED transportpce_tests/hybrid/test02_B100G_end2end.py::TestTransportPCEB100GEndtoend::test_096_check_interface_ODUC4_xpdra2 FAILED transportpce_tests/hybrid/test02_B100G_end2end.py::TestTransportPCEB100GEndtoend::test_097_check_interface_ODUFLEX_xpdra2 FAILED transportpce_tests/hybrid/test02_B100G_end2end.py::TestTransportPCEB100GEndtoend::test_098_delete_400GE_service 12 failed, 97 passed in 584.94s (0:09:44) tests_hybrid: exit 1 (734.10 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=39990 buildcontroller: FAIL code 1 (73.43=setup[9.08]+cmd[64.35] seconds) sims: OK (12.20=setup[8.95]+cmd[3.25] seconds) build_karaf_tests121: OK (79.59=setup[8.02]+cmd[71.56] seconds) testsPCE: FAIL code 1 (2458.71=setup[57.20]+cmd[2401.51] seconds) tests121: OK (1169.17=setup[7.61]+cmd[1161.56] seconds) build_karaf_tests221: OK (77.59=setup[7.97]+cmd[69.62] seconds) tests_tapi: OK (1290.80=setup[7.57]+cmd[1283.23] seconds) tests221: FAIL code 1 (3095.43=setup[8.75]+cmd[3086.68] seconds) build_karaf_tests71: OK (79.50=setup[8.10]+cmd[71.39] seconds) tests71: OK (631.29=setup[9.40]+cmd[621.89] seconds) build_karaf_tests190: OK (80.66=setup[7.97]+cmd[72.69] seconds) tests190: OK (212.10=setup[7.58]+cmd[204.52] seconds) tests_hybrid: FAIL code 1 (742.01=setup[7.91]+cmd[734.10] seconds) buildlighty: OK (34.75=setup[10.39]+cmd[24.36] seconds) docs: OK (31.92=setup[28.74]+cmd[3.18] seconds) docs-linkcheck: OK (32.96=setup[29.11]+cmd[3.85] seconds) checkbashisms: OK (3.53=setup[2.22]+cmd[0.00,0.05,1.26] seconds) pre-commit: FAIL code 1 (43.53=setup[2.90]+cmd[0.01,0.01,40.61] seconds) pylint: FAIL code 1 (31.22=setup[4.07]+cmd[27.14] seconds) evaluation failed :( (7741.11 seconds)