Reading s_tag from the subscriber
Change-Id: Id0be35c520dfa0316885d84f7089ef045e58dc70
diff --git a/xos/synchronizer/steps/test_sync_olt_device.py b/xos/synchronizer/steps/test_sync_olt_device.py
index a1ff08c..04cdd0b 100644
--- a/xos/synchronizer/steps/test_sync_olt_device.py
+++ b/xos/synchronizer/steps/test_sync_olt_device.py
@@ -48,7 +48,7 @@
else:
if not request['of:0000000ce2314000']['basic']['driver'] == 'voltha':
return False
- if not request['of:0000000ce2314000']['accessDevice']['vlan'] == "s_tag" or not request['of:0000000ce2314000']['accessDevice']['uplink'] == "129":
+ if not request['of:0000000ce2314000']['accessDevice']['vlan'] == 1 or not request['of:0000000ce2314000']['accessDevice']['uplink'] == "129":
return False
return True
@@ -87,7 +87,6 @@
pon_port = Mock()
pon_port.port_id = "00ff00"
- pon_port.s_tag = "s_tag"
# Create a mock OLTDevice
o = Mock()
@@ -310,16 +309,5 @@
# We don't need to assert here if there are no exceptions happening
- def test_deferred_for_port(self):
- self.o.pon_ports.all.side_effect = Exception
- with self.assertRaises(DeferredException) as e:
- self.sync_step().configure_onos(self.o)
- self.assertEqual(e.exception.message, "Waiting for pon_ports to come up")
-
- self.o.pon_ports.all.return_value = []
- with self.assertRaises(DeferredException) as e:
- self.sync_step().configure_onos(self.o)
- self.assertEqual(e.exception.message, "Waiting for pon_ports to come up")
-
if __name__ == "__main__":
unittest.main()