[fullstack] Unify `TestMTUScenarios
` tests
In order to reduce the time spent by the "fullstack" CI job, this patch is merging the ``TestMTUScenarios`` in one single test. Related-Bug: #2033651 Change-Id: Idef2ed87210fc25c24139c115a58fa2488928208
This commit is contained in:
parent
8cba97016e
commit
90d06b387c
@ -44,7 +44,9 @@ class MTUNetworkTestSetup(base.BaseFullStackTestCase):
|
|||||||
|
|
||||||
class TestMTUScenarios(MTUNetworkTestSetup):
|
class TestMTUScenarios(MTUNetworkTestSetup):
|
||||||
|
|
||||||
def test_mtu_update_network_neg(self):
|
def test_mtu_update(self):
|
||||||
|
# 1) Unable to update the network MTU above the maximum configured
|
||||||
|
# value.
|
||||||
network = self.safe_client.create_network(self.tenant_id,
|
network = self.safe_client.create_network(self.tenant_id,
|
||||||
name='mtu-test-network',
|
name='mtu-test-network',
|
||||||
mtu=1450)
|
mtu=1450)
|
||||||
@ -52,17 +54,17 @@ class TestMTUScenarios(MTUNetworkTestSetup):
|
|||||||
self.safe_client.update_network,
|
self.safe_client.update_network,
|
||||||
network['id'], mtu=9000)
|
network['id'], mtu=9000)
|
||||||
|
|
||||||
def test_mtu_update_delete_network(self):
|
# 2) Update and delete a network.
|
||||||
network = self.safe_client.create_network(self.tenant_id,
|
network = self.safe_client.create_network(self.tenant_id,
|
||||||
name='mtu-test-network',
|
name='mtu-test-network-2',
|
||||||
mtu=1200)
|
mtu=1200)
|
||||||
self.safe_client.update_network(network['id'], mtu=1450)
|
self.safe_client.update_network(network['id'], mtu=1450)
|
||||||
res = self.safe_client.delete_network(network['id'])
|
res = self.safe_client.delete_network(network['id'])
|
||||||
self.assertEqual((), res)
|
self.assertEqual((), res)
|
||||||
|
|
||||||
def test_global_physnet_mtu_update_delete_network(self):
|
# 3) Update the global physnet MTU and delete a network.
|
||||||
network = self.safe_client.create_network(self.tenant_id,
|
network = self.safe_client.create_network(self.tenant_id,
|
||||||
name='mtu-test-network',
|
name='mtu-test-network-3',
|
||||||
mtu=1450)
|
mtu=1450)
|
||||||
self._restart_neutron_server(1400)
|
self._restart_neutron_server(1400)
|
||||||
res = self.safe_client.delete_network(network['id'])
|
res = self.safe_client.delete_network(network['id'])
|
||||||
|
Loading…
Reference in New Issue
Block a user