Min bw rule operations should be rejected on non-physnet ports/networks
Change-Id: I329ed7697650c55a8b71ba46481c6584db1a1bfb
Depends-On: https://review.openstack.org/641712
Related-Bug: #1819029
diff --git a/neutron_tempest_plugin/api/admin/test_ports.py b/neutron_tempest_plugin/api/admin/test_ports.py
index 63fb611..bdb66ef 100644
--- a/neutron_tempest_plugin/api/admin/test_ports.py
+++ b/neutron_tempest_plugin/api/admin/test_ports.py
@@ -20,6 +20,7 @@
from tempest.common import utils
from tempest.lib.common.utils import data_utils
from tempest.lib import decorators
+from tempest.lib import exceptions as tlib_exceptions
from neutron_tempest_plugin.api import base
from neutron_tempest_plugin import config
@@ -150,6 +151,14 @@
port = self.admin_client.show_port(port_id)['port']
self.assertIsNone(port['resource_request'])
+ @decorators.idempotent_id('7261391f-64cc-45a6-a1e3-435694c54bf5')
+ def test_port_resource_request_no_provider_net_conflict(self):
+ conflict = self.assertRaises(
+ tlib_exceptions.Conflict,
+ self._create_qos_policy_and_port,
+ network=self.network, vnic_type=self.vnic_type)
+ self.assertEqual('QosRuleNotSupported', conflict.resp_body['type'])
+
@decorators.idempotent_id('0eeb6ffa-9a7a-40b5-83dd-dbdcd67e2e64')
def test_port_resource_request_empty(self):
qos_policy = self.create_qos_policy(