summaryrefslogtreecommitdiff
path: root/ironic_tempest_plugin
diff options
context:
space:
mode:
authorMark Goddard <mark@stackhpc.com>2017-07-26 19:36:00 +0100
committerMark Goddard <mark@stackhpc.com>2017-07-26 19:36:04 +0100
commit63a852eb8c4e3b885340aec62d19d6d1f15bf995 (patch)
treeb21087a8455557320a6a0a0cba86281f9dca0ed1 /ironic_tempest_plugin
parent338fdb94fc3b031e8d91bc7131cb4cadf05d7b92 (diff)
downloadironic-63a852eb8c4e3b885340aec62d19d6d1f15bf995.tar.gz
Add negative attribute to negative port tests
Change I8b30764d797f2f8b45c2ae46ce559e74e0281a49 added tempest tests for the port.physical_network field. In that review, it was noted that the negative tests should have a decorator applied to mark them as negative. This change applies that decorator. Change-Id: I69446703894b89596183c50482a4286eaac4ed42 Related-Bug: #1666009
Diffstat (limited to 'ironic_tempest_plugin')
-rw-r--r--ironic_tempest_plugin/tests/api/admin/test_ports_negative.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ironic_tempest_plugin/tests/api/admin/test_ports_negative.py b/ironic_tempest_plugin/tests/api/admin/test_ports_negative.py
index 86a0ce6b1..3d9d8db52 100644
--- a/ironic_tempest_plugin/tests/api/admin/test_ports_negative.py
+++ b/ironic_tempest_plugin/tests/api/admin/test_ports_negative.py
@@ -355,6 +355,7 @@ class TestPortsWithPhysicalNetworkOldAPI(base.BaseBaremetalTest):
_, self.chassis = self.create_chassis()
_, self.node = self.create_node(self.chassis['uuid'])
+ @decorators.attr(type=['negative'])
@decorators.idempotent_id('307e57e9-082f-4830-9480-91affcbfda08')
def test_create_port_with_physical_network_old_api(self):
node_id = self.node['uuid']
@@ -365,6 +366,7 @@ class TestPortsWithPhysicalNetworkOldAPI(base.BaseBaremetalTest):
node_id=node_id, address=address,
physical_network='physnet1')
+ @decorators.attr(type=['negative'])
@decorators.idempotent_id('0b278c0a-d334-424e-a5c5-b6d001c2a715')
def test_update_port_replace_physical_network_old_api(self):
_, port = self.create_port(self.node['uuid'],
@@ -396,6 +398,7 @@ class TestPortsNegativeWithPhysicalNetwork(base.BaseBaremetalTest):
_, self.chassis = self.create_chassis()
_, self.node = self.create_node(self.chassis['uuid'])
+ @decorators.attr(type=['negative'])
@decorators.idempotent_id('e20156fb-956b-4d5b-89a4-f379044a1d3c')
def test_create_ports_in_portgroup_with_inconsistent_physical_network(
self):
@@ -415,6 +418,7 @@ class TestPortsNegativeWithPhysicalNetwork(base.BaseBaremetalTest):
portgroup_uuid=portgroup['uuid'],
physical_network='physnet2')
+ @decorators.attr(type=['negative'])
@decorators.idempotent_id('050e792c-22c9-4e4a-ae89-dfbfc52ad00d')
def test_update_ports_in_portgroup_with_inconsistent_physical_network(
self):
@@ -439,6 +443,7 @@ class TestPortsNegativeWithPhysicalNetwork(base.BaseBaremetalTest):
self.client.update_port,
port2['uuid'], patch)
+ @decorators.attr(type=['negative'])
@decorators.idempotent_id('3cd1c8ec-57d1-40cb-922b-dd02431beea3')
def test_update_ports_in_portgroup_with_inconsistent_physical_network_2(
self):