Fix to functional tests
authorIdo Barnea <[email protected]>
Thu, 27 Oct 2016 14:02:51 +0000 (17:02 +0300)
committerIdo Barnea <[email protected]>
Thu, 27 Oct 2016 14:02:51 +0000 (17:02 +0300)
Signed-off-by: Ido Barnea <[email protected]>
scripts/automation/regression/functional_tests/platform_dual_if_obj_test.py
scripts/automation/regression/functional_tests/platform_if_obj_test.py

index d848b46..a97a330 100755 (executable)
@@ -9,10 +9,10 @@ from nose.tools import assert_not_equal
 class CDualIfObj_Test(functional_general_test.CGeneralFunctional_Test):
 
     def setUp(self):
-        self.if_1   = CIfObj('gig0/0/1', '1.1.1.1', '2001:DB8:0:2222:0:0:0:1', '0000.0001.0000', '0000.0001.0000', IFType.Client)
-        self.if_2   = CIfObj('gig0/0/2', '1.1.2.1', '2001:DB8:1:2222:0:0:0:1', '0000.0002.0000', '0000.0002.0000', IFType.Server)
-        self.if_3   = CIfObj('gig0/0/3', '1.1.3.1', '2001:DB8:2:2222:0:0:0:1', '0000.0003.0000', '0000.0003.0000', IFType.Client)
-        self.if_4   = CIfObj('gig0/0/4', '1.1.4.1', '2001:DB8:3:2222:0:0:0:1', '0000.0004.0000', '0000.0004.0000', IFType.Server)
+        self.if_1   = CIfObj('gig0/0/1', '1.1.1.1', '2001:DB8:0:2222:0:0:0:1', '0000.0001.0000', '0000.0001.0000', 0, IFType.Client)
+        self.if_2   = CIfObj('gig0/0/2', '1.1.2.1', '2001:DB8:1:2222:0:0:0:1', '0000.0002.0000', '0000.0002.0000', 0, IFType.Server)
+        self.if_3   = CIfObj('gig0/0/3', '1.1.3.1', '2001:DB8:2:2222:0:0:0:1', '0000.0003.0000', '0000.0003.0000', 0, IFType.Client)
+        self.if_4   = CIfObj('gig0/0/4', '1.1.4.1', '2001:DB8:3:2222:0:0:0:1', '0000.0004.0000', '0000.0004.0000', 0, IFType.Server)
         self.dual_1 = CDualIfObj(None, self.if_1, self.if_2)
         self.dual_2 = CDualIfObj('dup', self.if_3, self.if_4)
 
@@ -28,4 +28,4 @@ class CDualIfObj_Test(functional_general_test.CGeneralFunctional_Test):
         assert_equal ( self.dual_2.is_duplicated() , True )
 
     def tearDown(self):
-        pass
\ No newline at end of file
+        pass
index 534d417..2412d3c 100755 (executable)
@@ -10,8 +10,8 @@ class CIfObj_Test(functional_general_test.CGeneralFunctional_Test):
     test_idx = 1
 
     def setUp(self):
-        self.if_1 = CIfObj('gig0/0/1', '1.1.1.1', '2001:DB8:0:2222:0:0:0:1', '0000.0001.0000', '0000.0001.0000', IFType.Client)
-        self.if_2 = CIfObj('TenGig0/0/0', '1.1.2.1', '2001:DB8:1:2222:0:0:0:1', '0000.0002.0000', '0000.0002.0000', IFType.Server)
+        self.if_1 = CIfObj('gig0/0/1', '1.1.1.1', '2001:DB8:0:2222:0:0:0:1', '0000.0001.0000', '0000.0001.0000', 0, IFType.Client)
+        self.if_2 = CIfObj('TenGig0/0/0', '1.1.2.1', '2001:DB8:1:2222:0:0:0:1', '0000.0002.0000', '0000.0002.0000', 0, IFType.Server)
         CIfObj_Test.test_idx += 1
 
     def test_id_allocation(self):