400 should be returned when invalid attributes are passed to Quantum API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Jason |
Bug Description
Issues like the one reported below apply to all Quantum entities, core and extended.
This should be fixed soon.
------------
When testing the updating the router with invalidate values, the following case returns 200,
def test_router_
fmt = 'json'
data = {'router': {'tenant_id': _uuid(),
req = self.new_
res = req.get_
router = self.deserializ
res = self._update(
res = self._update(
Thanks,
Jason
description: | updated |
Changed in quantum: | |
assignee: | nobody → Jason Zhang (bearovercloud) |
Changed in quantum: | |
status: | New → Incomplete |
summary: |
- 400 should be returned when updating the router with dummy router vaule - set + 400 should be returned when updating the router with invalidate Key |
description: | updated |
summary: |
- 400 should be returned when updating the router with invalid Key + 400 should be returned when invalid attributes are passed to Quantum API |
Changed in quantum: | |
importance: | Undecided → High |
milestone: | none → grizzly-3 |
description: | updated |
Changed in quantum: | |
assignee: | Jason Zhang (zzs) → Salvatore Orlando (salvatore-orlando) |
Changed in quantum: | |
status: | Incomplete → In Progress |
assignee: | Salvatore Orlando (salvatore-orlando) → Jason Zhang (zzs) |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in quantum: | |
milestone: | grizzly-3 → 2013.1 |
to be clear, the example here is that "tenant_id" is not a valid value to update? I suspect it would also be the case if you just put a gibberish field into the router dictionary?
I think this is related to the fact that due to the behavior of the old extension mechanisms, the quantum API did not produce an error when someone was passing in an invalid key. Instead, it would just ignore it. With our new extension mechanism, I think we could do away with this. Adding Salvatore to see what he thinks.