Fix functional test about port

Change-Id: Ifaef01ec5f348b7bd7466ec6c662a204d78af2d3
This commit is contained in:
tengqm 2018-02-14 08:49:50 -05:00
parent 6ee6a7631c
commit e5bcb705c5
1 changed files with 9 additions and 0 deletions

View File

@ -128,6 +128,15 @@ class TestPort(base.BaseFunctionalTestCase):
updated_port = self.operator_cloud.get_port(name_or_id=port['id'])
self.assertEqual(port.get('name'), new_port_name)
port.pop('revision_number', None)
port.pop(u'revision_number', None)
port.pop('updated_at', None)
port.pop(u'updated_at', None)
updated_port.pop('revision_number', None)
updated_port.pop(u'revision_number', None)
updated_port.pop('updated_at', None)
updated_port.pop(u'updated_at', None)
self.assertEqual(port, updated_port)
def test_delete_port(self):