ironic/ironic/tests
Chris Behrens 2192f2848e Clean up calls to get_node()
This patch removes all direct calls to dbapi's get_node(). They are
replaced either by Node.get(), Node.get_by_id(), or Node.get_by_uuid()
calls.

Additional detail about the changes:

1) Break DBAPI get_node() into get_node_by_id() and get_node_by_uuid().
   Let's be explicit about which type we're passing. This allows
   Node.get_by_uuid() to work exactly how its named. Also, do not
   return an object from the DB API calls. The Node object itself will
   do the conversion.
2) Adds Node.get_by_id() to compliment the current Node.get_by_uuid()
   for places you are querying by the ID.
3) Adds Node.get() so that you can still have a single method to use
   to pass either and ID or a UUID.
4) Make all of the Node.get* calls set the 'context' so that you can
   later just node.save() without passing it. Doc strings have been
   updated to clarify what 'context' is for.

Change-Id: I995891b1645056a5b15c48e37b8bcd1e299ac468
2014-04-19 16:18:32 -07:00
..
api Clean up calls to get_node() 2014-04-19 16:18:32 -07:00
conductor Clean up calls to get_node() 2014-04-19 16:18:32 -07:00
db Clean up calls to get_node() 2014-04-19 16:18:32 -07:00
drivers Clean up calls to get_node() 2014-04-19 16:18:32 -07:00
objects Clean up calls to get_node() 2014-04-19 16:18:32 -07:00
__init__.py Do not use __builtin__ in python3 2014-03-13 11:34:16 +08:00
base.py Merge "Sync common db code from Oslo" 2014-03-06 20:31:40 +00:00
conf_fixture.py Merge "Sync common db code from Oslo" 2014-03-06 20:31:40 +00:00
fake_policy.py Remove extraneous vim configuration comments for ironic 2014-02-26 09:24:48 +08:00
matchers.py Remove extraneous vim configuration comments for ironic 2014-02-26 09:24:48 +08:00
policy_fixture.py Fix pep8 errors and make it pass Jenkins tests. 2013-05-16 18:40:38 -07:00
stubs.py Remove extraneous vim configuration comments for ironic 2014-02-26 09:24:48 +08:00
test_dbsync.py Remove extraneous vim configuration comments for ironic 2014-02-26 09:24:48 +08:00
test_disk_partitioner.py Use DiskPartitioner 2014-04-17 14:24:34 -07:00
test_glance_service.py Fix params order in assertEqual 2014-03-04 17:17:22 +08:00
test_hash_ring.py Factor hash ring management out of the conductor 2014-04-10 08:09:09 -07:00
test_images.py Fix params order in assertEqual 2014-03-04 17:17:22 +08:00
test_keystone.py Replace fixtures with mock in test_keystone.py 2014-03-25 10:55:49 +00:00
test_neutron.py Update Neutron if mac address of the port changed 2014-03-25 17:10:12 +02:00
test_policy.py Remove extraneous vim configuration comments for ironic 2014-02-26 09:24:48 +08:00
test_utils.py Do not use __builtin__ in python3 2014-03-13 11:34:16 +08:00