Move test_dhcp_port_status_active from neutron-tempest-plugin

test_dhcp_port_status_active is the only missing test in
tempest.api.network.admin.test_dhcp_agent_scheduler.
DHCPAgentSchedulersTestJSON compared to
n_t_p.api.admin.test_dhcp_agent_scheduler.DHCPAgentSchedulersTestJSON.
By moving it from n-t-p we can get rid of the whole module, reducing the
test duplications.

Change-Id: I1d6410bb0d9eed1bc1e8e503c1cada48d275a9af
This commit is contained in:
elajkat
2022-01-12 14:28:43 +01:00
parent 7c8b49bece
commit f336efb70b

View File

@@ -14,6 +14,7 @@
from tempest.api.network import base
from tempest.common import utils
from tempest.common import waiters
from tempest.lib import decorators
@@ -36,6 +37,16 @@ class DHCPAgentSchedulersTestJSON(base.BaseAdminNetworkTest):
cls.create_subnet(cls.network)
cls.port = cls.create_port(cls.network)
@decorators.idempotent_id('f164801e-1dd8-4b8b-b5d3-cc3ac77cfaa5')
def test_dhcp_port_status_active(self):
ports = self.admin_ports_client.list_ports(
network_id=self.network['id'])['ports']
for port in ports:
waiters.wait_for_port_status(
client=self.admin_ports_client,
port_id=port['id'],
status='ACTIVE')
@decorators.idempotent_id('5032b1fe-eb42-4a64-8f3b-6e189d8b5c7d')
def test_list_dhcp_agent_hosting_network(self):
"""Test Listing DHCP agents hosting a network"""