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:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user