X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=transportpce.git;a=blobdiff_plain;f=tests%2Ftransportpce_tests%2Ftest_portmapping.py;h=9e30fd614ea3e482ee6010155d9fd41bb8e0dbab;hp=c937ad73685bf3b140b6d5169377ce194ab7b2d4;hb=cd2cad9ce7948b918b07ed050e081ed52d1c39fc;hpb=6c8f4b803ed19cc65d0ff4cb46010f47a2fd6acb diff --git a/tests/transportpce_tests/test_portmapping.py b/tests/transportpce_tests/test_portmapping.py index c937ad736..9e30fd614 100644 --- a/tests/transportpce_tests/test_portmapping.py +++ b/tests/transportpce_tests/test_portmapping.py @@ -1,66 +1,107 @@ #!/usr/bin/env python +############################################################################## +# Copyright (c) 2017 Orange, Inc. and others. All rights reserved. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + import json import os import psutil import requests +import signal import shutil import subprocess import time import unittest -import zipfile -class TransportPCEtesting(unittest.TestCase): +class TransportPCEPortMappingTesting(unittest.TestCase): - testtools_process = None + testtools_process1 = None + testtools_process2 = None odl_process = None + restconf_baseurl = "http://localhost:8181/restconf" @classmethod def __start_testtools(cls): executable = ("./netconf/netconf/tools/netconf-testtool/target/" - "netconf-testtool-1.3.0-SNAPSHOT-executable.jar") + "netconf-testtool-1.3.1-executable.jar") if os.path.isfile(executable): - with open('testtools.log', 'w') as outfile: - cls.testtools_process = subprocess.Popen( + with open('testtools1.log', 'w') as outfile: + cls.testtools_process1 = subprocess.Popen( + ["java", "-jar", executable, "--schemas-dir", "schemas", + "--initial-config-xml", "sample_configs/ord_1.2.1/sample-config-ROADM.xml", + "--starting-port", "17830"], + stdout=outfile) + with open('testtools2.log', 'w') as outfile: + cls.testtools_process2 = subprocess.Popen( ["java", "-jar", executable, "--schemas-dir", "schemas", - "--initial-config-xml", "sample-config-ROADM.xml"], + "--initial-config-xml", "sample_configs/ord_1.2.1/sample-config-XPDR.xml", + "--starting-port", "17831"], stdout=outfile) @classmethod def __start_odl(cls): - zfile = "../karaf/target/transportpce-karaf-0.2.0-SNAPSHOT.zip" - executable = "transportpce-karaf-0.2.0-SNAPSHOT/bin/karaf" - if os.path.isfile(zfile): - try: - shutil.rmtree("transportpce-karaf-0.2.0-SNAPSHOT") - except OSError: - pass - zipobj = zipfile.ZipFile(zfile) - zipobj.extractall() - with open('odl.log', 'w') as outfile: - cls.odl_process = subprocess.Popen( - ["bash", executable], stdout=outfile) + executable = "../karaf/target/assembly/bin/karaf" + with open('odl.log', 'w') as outfile: + cls.odl_process = subprocess.Popen( + ["bash", executable, "server"], stdout=outfile, + stdin=open(os.devnull)) @classmethod def setUpClass(cls): cls.__start_testtools() cls.__start_odl() - time.sleep(30) + time.sleep(60) @classmethod def tearDownClass(cls): - cls.testtools_process.kill() + cls.testtools_process1.send_signal(signal.SIGINT) + cls.testtools_process1.wait() + cls.testtools_process2.send_signal(signal.SIGINT) + cls.testtools_process2.wait() for child in psutil.Process(cls.odl_process.pid).children(): - child.kill() - cls.odl_process.kill() + child.send_signal(signal.SIGINT) + child.wait() + cls.odl_process.send_signal(signal.SIGINT) + cls.odl_process.wait() def setUp(self): - time.sleep(1) + print ("execution of {}".format(self.id().split(".")[-1])) + time.sleep(10) + + def test_01_restconfAPI(self): + url = ("{}/operational/network-topology:network-topology/topology/" + "topology-netconf/node/controller-config".format(self.restconf_baseurl)) + headers = {'content-type': 'application/json'} + response = requests.request("GET", url, headers=headers, auth=('admin', 'admin')) + self.assertEqual(response.status_code, requests.codes.ok) + res = response.json() + self.assertEqual(res['node'] [0] ['netconf-node-topology:connection-status'], + 'connected') - def test_connect_device(self): - url = ("http://127.0.0.1:8181/restconf/config/network-topology:" - "network-topology/topology/topology-netconf/node/ROADMA") + def test_02_restconfAPI(self): + url = ("{}/config/portmapping:network/nodes/controller-config" + .format(self.restconf_baseurl)) + headers = {'content-type': 'application/json'} + response = requests.request( + "GET", url, headers=headers, auth=('admin', 'admin')) + self.assertEqual(response.status_code, requests.codes.not_found) + res = response.json() + self.assertIn( + {"error-type":"application", "error-tag":"data-missing", + "error-message":"Request could not be completed because the relevant data model content does not exist "}, + res['errors']['error']) + + def test_03_rdm_device_connected(self): + url = ("{}/config/network-topology:" + "network-topology/topology/topology-netconf/node/ROADMA" + .format(self.restconf_baseurl)) data = {"node": [{ "node-id": "ROADMA", "netconf-node-topology:username": "admin", @@ -74,11 +115,12 @@ class TransportPCEtesting(unittest.TestCase): "PUT", url, data=json.dumps(data), headers=headers, auth=('admin', 'admin')) self.assertEqual(response.status_code, requests.codes.created) - time.sleep(10) + time.sleep(20) - def test_device_connected(self): - url = ("http://127.0.0.1:8181/restconf/operational/network-topology:" - "network-topology/topology/topology-netconf/node/ROADMA") + def test_04_rdm_device_connected(self): + url = ("{}/operational/network-topology:" + "network-topology/topology/topology-netconf/node/ROADMA" + .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( "GET", url, headers=headers, auth=('admin', 'admin')) @@ -87,37 +129,12 @@ class TransportPCEtesting(unittest.TestCase): self.assertEqual( res['node'][0]['netconf-node-topology:connection-status'], 'connected') - time.sleep(2) - - def test_portmapping_SRG1_PP3_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP3-TXRX") - headers = {'content-type': 'application/json'} - response = requests.request( - "GET", url, headers=headers, auth=('admin', 'admin')) - self.assertEqual(response.status_code, requests.codes.ok) - res = response.json() - self.assertIn( - {'supporting-port': 'C3', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP3-TXRX'}, - res['mapping']) - - def test_portmapping_SRG1_PP6_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP6-TXRX") - headers = {'content-type': 'application/json'} - response = requests.request( - "GET", url, headers=headers, auth=('admin', 'admin')) - self.assertEqual(response.status_code, requests.codes.ok) - res = response.json() - self.assertIn( - {'supporting-port': 'C6', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP6-TXRX'}, - res['mapping']) + time.sleep(10) - def test_portmapping_DEG1_TTP_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/DEG1-TTP-TXRX") + def test_05_rdm_portmapping_DEG1_TTP_TXRX(self): + url = ("{}/config/portmapping:network/" + "nodes/ROADMA/mapping/DEG1-TTP-TXRX" + .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( "GET", url, headers=headers, auth=('admin', 'admin')) @@ -128,270 +145,171 @@ class TransportPCEtesting(unittest.TestCase): 'logical-connection-point': 'DEG1-TTP-TXRX'}, res['mapping']) - def test_portmapping_SRG1_PP9_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP9-TXRX") - headers = {'content-type': 'application/json'} - response = requests.request( - "GET", url, headers=headers, auth=('admin', 'admin')) - self.assertEqual(response.status_code, requests.codes.ok) - res = response.json() - self.assertIn( - {'supporting-port': 'C9', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP9-TXRX'}, - res['mapping']) - - def test_portmapping_SRG1_PP16_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP16-TXRX") - headers = {'content-type': 'application/json'} - response = requests.request( - "GET", url, headers=headers, auth=('admin', 'admin')) - self.assertEqual(response.status_code, requests.codes.ok) - res = response.json() - self.assertIn( - {'supporting-port': 'C16', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP16-TXRX'}, - res['mapping']) - - def test_portmapping_SRG1_PP4_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP4-TXRX") - headers = {'content-type': 'application/json'} - response = requests.request( - "GET", url, headers=headers, auth=('admin', 'admin')) - self.assertEqual(response.status_code, requests.codes.ok) - res = response.json() - self.assertIn( - {'supporting-port': 'C4', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP4-TXRX'}, - res['mapping']) - - def test_portmapping_SRG1_PP2_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP2-TXRX") + def test_06_rdm_portmapping_SRG1_PP7_TXRX(self): + url = ("{}/config/portmapping:network/" + "nodes/ROADMA/mapping/SRG1-PP7-TXRX" + .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( "GET", url, headers=headers, auth=('admin', 'admin')) self.assertEqual(response.status_code, requests.codes.ok) res = response.json() self.assertIn( - {'supporting-port': 'C2', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP2-TXRX'}, + {'supporting-port': 'C7', 'supporting-circuit-pack-name': '4/0', + 'logical-connection-point': 'SRG1-PP7-TXRX'}, res['mapping']) - def test_portmapping_SRG1_PP14_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP14-TXRX") + def test_07_rdm_portmapping_SRG3_PP1_TXRX(self): + url = ("{}/config/portmapping:network/" + "nodes/ROADMA/mapping/SRG3-PP1-TXRX" + .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( "GET", url, headers=headers, auth=('admin', 'admin')) self.assertEqual(response.status_code, requests.codes.ok) res = response.json() self.assertIn( - {'supporting-port': 'C14', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP14-TXRX'}, + {'supporting-port': 'C1', 'supporting-circuit-pack-name': '5/0', + 'logical-connection-point': 'SRG3-PP1-TXRX'}, res['mapping']) - def test_portmapping_SRG1_PP11_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP11-TXRX") + def test_08_xpdr_device_connected(self): + url = ("{}/config/network-topology:" + "network-topology/topology/topology-netconf/node/XPDRA" + .format(self.restconf_baseurl)) + data = {"node": [{ + "node-id": "XPDRA", + "netconf-node-topology:username": "admin", + "netconf-node-topology:password": "admin", + "netconf-node-topology:host": "127.0.0.1", + "netconf-node-topology:port": "17831", + "netconf-node-topology:tcp-only": "false", + "netconf-node-topology:pass-through": {}}]} headers = {'content-type': 'application/json'} response = requests.request( - "GET", url, headers=headers, auth=('admin', 'admin')) - self.assertEqual(response.status_code, requests.codes.ok) - res = response.json() - self.assertIn( - {'supporting-port': 'C11', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP11-TXRX'}, - res['mapping']) + "PUT", url, data=json.dumps(data), headers=headers, + auth=('admin', 'admin')) + self.assertEqual(response.status_code, requests.codes.created) + time.sleep(20) - def test_portmapping_SRG1_PP7_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP7-TXRX") + def test_09_xpdr_device_connected(self): + url = ("{}/operational/network-topology:" + "network-topology/topology/topology-netconf/node/XPDRA" + .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( "GET", url, headers=headers, auth=('admin', 'admin')) self.assertEqual(response.status_code, requests.codes.ok) res = response.json() - self.assertIn( - {'supporting-port': 'C7', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP7-TXRX'}, - res['mapping']) + self.assertEqual( + res['node'][0]['netconf-node-topology:connection-status'], + 'connected') + time.sleep(10) - def test_portmapping_DEG2_TTP_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/DEG2-TTP-TXRX") + def test_10_xpdr_portmapping_NETWORK1(self): + url = ("{}/config/portmapping:network/" + "nodes/XPDRA/mapping/XPDR-LINE1" + .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( "GET", url, headers=headers, auth=('admin', 'admin')) self.assertEqual(response.status_code, requests.codes.ok) res = response.json() self.assertIn( - {'supporting-port': 'L1', 'supporting-circuit-pack-name': '3/0', - 'logical-connection-point': 'DEG2-TTP-TXRX'}, + {'supporting-port': '1', 'supporting-circuit-pack-name': '1/0/1-PLUG-NET', + 'logical-connection-point': 'XPDR-LINE1'}, res['mapping']) - def test_portmapping_DEG2_TTP_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/DEG2-TTP-TXRX") + def test_11_xpdr_portmapping_CLIENT1(self): + url = ("{}/config/portmapping:network/" + "nodes/XPDRA/mapping/XPDR-CLNT1" + .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( "GET", url, headers=headers, auth=('admin', 'admin')) self.assertEqual(response.status_code, requests.codes.ok) res = response.json() self.assertIn( - {'supporting-port': 'L1', 'supporting-circuit-pack-name': '3/0', - 'logical-connection-point': 'DEG2-TTP-TXRX'}, + {'supporting-port': '1', + 'supporting-circuit-pack-name': '1/0/2-PLUG-CLIENT', + 'logical-connection-point': 'XPDR-CLNT1'}, res['mapping']) - def test_portmapping_SRG1_PP12_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP12-TXRX") + def test_12_xpdr_device_disconnected(self): + url = ("{}/config/network-topology:" + "network-topology/topology/topology-netconf/node/XPDRA" + .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( - "GET", url, headers=headers, auth=('admin', 'admin')) + "DELETE", url, headers=headers, + auth=('admin', 'admin')) self.assertEqual(response.status_code, requests.codes.ok) - res = response.json() - self.assertIn( - {'supporting-port': 'C12', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP12-TXRX'}, - res['mapping']) + time.sleep(20) - def test_portmapping_SRG1_PP8_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP8-TXRX") + def test_13_xpdr_device_disconnected(self): + url = ("{}/operational/network-topology:network-topology/topology/" + "topology-netconf/node/XPDRA".format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( "GET", url, headers=headers, auth=('admin', 'admin')) - self.assertEqual(response.status_code, requests.codes.ok) + self.assertEqual(response.status_code, requests.codes.not_found) res = response.json() self.assertIn( - {'supporting-port': 'C8', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP8-TXRX'}, - res['mapping']) - - def test_portmapping_SRG1_PP5_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP5-TXRX") + {"error-type":"application", "error-tag":"data-missing", + "error-message":"Request could not be completed because the relevant data model content does not exist "}, + res['errors']['error']) + + def test_14_xpdr_device_disconnected(self): + url = ("{}/config/portmapping:network/" + "nodes/XPDRA" + .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( "GET", url, headers=headers, auth=('admin', 'admin')) - self.assertEqual(response.status_code, requests.codes.ok) + self.assertEqual(response.status_code, requests.codes.not_found) res = response.json() self.assertIn( - {'supporting-port': 'C5', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP5-TXRX'}, - res['mapping']) - - def test_portmapping_SRG1_PP13_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP13-TXRX") + {"error-type":"application", "error-tag":"data-missing", + "error-message":"Request could not be completed because the relevant data model content does not exist "}, + res['errors']['error']) + + def test_15_rdm_device_disconnected(self): + url = ("{}/config/network-topology:" + "network-topology/topology/topology-netconf/node/ROADMA" + .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( - "GET", url, headers=headers, auth=('admin', 'admin')) + "DELETE", url, headers=headers, + auth=('admin', 'admin')) self.assertEqual(response.status_code, requests.codes.ok) - res = response.json() - self.assertIn( - {'supporting-port': 'C13', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP13-TXRX'}, - res['mapping']) + time.sleep(20) - def test_portmapping_SRG1_PP15_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP15-TXRX") + def test_16_rdm_device_disconnected(self): + url = ("{}/operational/network-topology:network-topology/topology/" + "topology-netconf/node/ROADMA".format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( "GET", url, headers=headers, auth=('admin', 'admin')) - self.assertEqual(response.status_code, requests.codes.ok) + self.assertEqual(response.status_code, requests.codes.not_found) res = response.json() self.assertIn( - {'supporting-port': 'C15', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP15-TXRX'}, - res['mapping']) + {"error-type":"application", "error-tag":"data-missing", + "error-message":"Request could not be completed because the relevant data model content does not exist "}, + res['errors']['error']) - def test_portmapping_SRG1_PP10_TXRX(self): - url = ("http://127.0.0.1:8181/restconf/config/portmapping:network/" - "nodes/ROADMA/mapping/SRG1-PP10-TXRX") + def test_17_rdm_device_disconnected(self): + url = ("{}/config/portmapping:network/nodes/ROADMA" + .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( "GET", url, headers=headers, auth=('admin', 'admin')) - self.assertEqual(response.status_code, requests.codes.ok) + self.assertEqual(response.status_code, requests.codes.not_found) res = response.json() self.assertIn( - {'supporting-port': 'C10', 'supporting-circuit-pack-name': '4/0', - 'logical-connection-point': 'SRG1-PP10-TXRX'}, - res['mapping']) - - def test_cross_connection_DEG1_TTP_TXRX_SRG1_PP3_TXRX(self): - url = "http://127.0.0.1:8181/restconf/operations/renderer:service-path" - data = {"renderer:input": { - "renderer:service-name": "service_32", - "renderer:wave-number": "32", - "renderer:operation": "create", - "renderer:nodes": [ - {"renderer:node-id": "ROADMA", - "renderer:src-tp": "DEG1-TTP-TXRX", - "renderer:dest-tp": "SRG1-PP3-TXRX"}]}} - headers = {'content-type': 'application/json'} - response = requests.request( - "POST", url, data=json.dumps(data), - headers=headers, auth=('admin', 'admin')) - self.assertEqual(response.status_code, requests.codes.ok) - self.assertEqual(response.json(), { - 'output': { - 'result': - 'Roadm-connection successfully created for nodes [ROADMA]'}}) - - def test_cross_connection_SRG1_PP3_TXRX_DEG1_TTP_TXRX(self): - url = "http://127.0.0.1:8181/restconf/operations/renderer:service-path" - data = {"renderer:input": { - "renderer:service-name": "service_32", - "renderer:wave-number": "32", - "renderer:operation": "create", - "renderer:nodes": [ - {"renderer:node-id": "ROADMA", - "renderer:src-tp": "SRG1-PP3-TXRX", - "renderer:dest-tp": "DEG1-TTP-TXRX"}]}} - headers = {'content-type': 'application/json'} - response = requests.request( - "POST", url, data=json.dumps(data), - headers=headers, auth=('admin', 'admin')) - self.assertEqual(response.status_code, requests.codes.ok) - self.assertEqual(response.json(), { - 'output': { - 'result': - 'Roadm-connection successfully created for nodes [ROADMA]'}}) - + {"error-type":"application", "error-tag":"data-missing", + "error-message":"Request could not be completed because the relevant data model content does not exist "}, + res['errors']['error']) -def test_suite(): - suite = unittest.TestSuite() - suite.addTest(TransportPCEtesting('test_connect_device')) - suite.addTest(TransportPCEtesting('test_device_connected')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP3_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP6_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_DEG1_TTP_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP9_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP16_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP4_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP2_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP14_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP11_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP7_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_DEG2_TTP_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_DEG2_TTP_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP12_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP8_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP5_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP13_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP15_TXRX')) - suite.addTest(TransportPCEtesting('test_portmapping_SRG1_PP10_TXRX')) - suite.addTest(TransportPCEtesting( - 'test_cross_connection_DEG1_TTP_TXRX_SRG1_PP3_TXRX')) - suite.addTest(TransportPCEtesting( - 'test_cross_connection_SRG1_PP3_TXRX_DEG1_TTP_TXRX')) - return suite if __name__ == "__main__": - RUNNER = unittest.TextTestRunner(verbosity=2) - RUNNER.run(test_suite()) + unittest.main(verbosity=2)