ironic/ironic/tests/unit/db
Ryan Bridges 504a67b46d Allow sqalchemy filtering by id and uuid
These additions will allow us to filter nodes
by node uuid and id. This filter API is used
in many places throughout the code base. It is
natural to expect that this API would allow us to
filter by node id and uuid in addtion to the other
supported parameters. This also fixes a 3 year old bug.

This change from lucasagomes has a bug:
https://review.openstack.org/#/c/197141/

In conductor/manager.py, he calls _fail_if_in_state()
and uses the node_id as a filter. However this filter
effectively does nothing because sqalchemy does not
know how to filter by node id on the backend. My changes
fix this problem and make the API more intuitive

Closes-Bug: #1749755

Change-Id: I4efc0d5cd5d5d6108a334f954e1718203b47da0a
(cherry picked from commit 366a44a1bb)
2018-02-19 15:32:20 +00:00
..
sqlalchemy Remove usage of some of the deprecated methods 2017-07-31 10:14:08 +00:00
__init__.py Remove unused import 2016-07-21 09:03:40 +00:00
base.py Remove usage of some of the deprecated methods 2017-07-31 10:14:08 +00:00
test_api.py Add new dbsync command with first online data migration 2017-08-02 13:33:37 -04:00
test_chassis.py Prepare for functional testing 2015-09-28 21:27:01 +00:00
test_conductor.py Speed up test_touch_conductor_deadlock() 2017-03-13 21:00:39 +00:00
test_node_tags.py Add db api layer for CRUD operations on node tags 2016-02-26 10:27:11 +08:00
test_nodes.py Allow sqalchemy filtering by id and uuid 2018-02-19 15:32:20 +00:00
test_portgroups.py Add portgroup configuration fields 2016-12-15 22:45:42 +00:00
test_ports.py Add portgroups to support LAG interfaces - DB 2016-02-04 22:40:43 +02:00
test_volume_connectors.py Add volume_connectors table to save connector information 2016-11-23 20:42:53 -05:00
test_volume_targets.py Enable getting volume targets by their volume_id 2017-05-16 14:51:26 -04:00
utils.py Remove SSH-based driver interfaces and drivers 2017-08-01 12:39:39 +00:00