Delete port test for DB plugin does not invoke delete operation

Bug #1022460 reported by Sumit Naiksatam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
High
Sumit Naiksatam

Bug Description

In quantum / quantum / tests / unit / test_db_plugin.py

line 282: req = self.new_show_request('port', 'json', port['port']['id'])

"show" is being called instead of "delete". Should probably be:

req = self.new_delete_request('port', 'json', port['port']['id'])

Changed in quantum:
importance: Undecided → High
Revision history for this message
Gary Kotton (garyk) wrote :

I am not sure that this is a bug. The method port() performs the deletion of the port (please look at line 200). If I understand the test correctly then after the port is created and deleted the test tries to read the port. This fails with a 404 error.
Thanks
Gary

Revision history for this message
Sumit Naiksatam (snaiksat) wrote :

Thanks, that makes sense. Logs seem to suggest that is happening. I will invalidate the bug.

Changed in quantum:
status: New → Invalid
Thierry Carrez (ttx)
Changed in quantum:
milestone: folsom-3 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.