QoS: Remove type attribute from QoS rules
The type is given by object itself. We don't specify type when creating
resource cause it's a part of uri. This patch allows a
bandwidth_limit_rule to be created in given policy.
Partially-Implements: blueprint quantum-qos-api
Change-Id: Ica4626083054200e3b82bef23984462e7c596e1e
diff --git a/neutron/tests/tempest/services/network/json/network_client.py b/neutron/tests/tempest/services/network/json/network_client.py
index bbee873..a954432 100644
--- a/neutron/tests/tempest/services/network/json/network_client.py
+++ b/neutron/tests/tempest/services/network/json/network_client.py
@@ -657,8 +657,8 @@
post_data = self.serialize(
{'bandwidth_limit_rule': {
'max_kbps': max_kbps,
- 'max_burst_kbps': max_burst_kbps,
- 'type': 'bandwidth_limit'}})
+ 'max_burst_kbps': max_burst_kbps}
+ })
resp, body = self.post(uri, post_data)
self.expected_success(201, resp.status)
body = json.loads(body)
@@ -687,8 +687,8 @@
post_data = {
'bandwidth_limit_rule': {
'max_kbps': max_kbps,
- 'max_burst_kbps': max_burst_kbps,
- 'type': 'bandwidth_limit'}}
+ 'max_burst_kbps': max_burst_kbps}
+ }
resp, body = self.put(uri, json.dumps(post_data))
self.expected_success(200, resp.status)
return service_client.ResponseBody(resp, body)