X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Ftransportpce_tests%2F1.2.1%2Ftest_pce.py;h=bbed914aaa9fd0346ba07fcc8ac9d2732c1b0bdc;hb=c834356f10cb8bc04c8b0a9eb2a438b2e9c50632;hp=60b0be41780350dd3b5c4294cbcf0648882b5d9d;hpb=dd3a2a048df0afd2dfcf1b701dd4cc8bda76afdb;p=transportpce.git diff --git a/tests/transportpce_tests/1.2.1/test_pce.py b/tests/transportpce_tests/1.2.1/test_pce.py index 60b0be417..bbed914aa 100644 --- a/tests/transportpce_tests/1.2.1/test_pce.py +++ b/tests/transportpce_tests/1.2.1/test_pce.py @@ -16,7 +16,8 @@ import os import sys import time import requests -from common import test_utils +sys.path.append('transportpce_tests/common/') +import test_utils class TransportPCEtesting(unittest.TestCase): @@ -353,7 +354,7 @@ class TransportPCEtesting(unittest.TestCase): nbElmPath = len(res['output']['response-parameters']['path-description'] ['aToZ-direction']['aToZ']) self.assertEqual(31, nbElmPath) - link = {"link-id": "OpenROADM-1-3-DEG2-to-OpenROADM-1-2-DEG2"} + link = {"link-id": "OpenROADM-1-3-DEG2-to-OpenROADM-1-2-DEG2", "state":"inService"} find = False for i in range(0, nbElmPath): resource_i = (res['output']['response-parameters']['path-description']['aToZ-direction']['aToZ'][i] @@ -383,7 +384,7 @@ class TransportPCEtesting(unittest.TestCase): nbElmPath = len(res['output']['response-parameters']['path-description'] ['aToZ-direction']['aToZ']) self.assertEqual(47, nbElmPath) - link = {"link-id": "OpenROADM-1-3-DEG2-to-OpenROADM-1-2-DEG2"} + link = {"link-id": "OpenROADM-1-3-DEG2-to-OpenROADM-1-2-DEG2", "state":"inService"} find = False for i in range(0, nbElmPath): resource_i = (res['output']['response-parameters']['path-description']['aToZ-direction']['aToZ'][i]