3 Commits

Author SHA1 Message Date
Vishvananda Ishaya
d43f172071 Don't force volume id to int and allow search by name
* required for change 6511 to merge

Change-Id: Ia8d28ca7cce4c00aa0b3f1fe1da6719ec99d6fe4
2012-05-02 15:06:55 +00:00
Julien Danjou
3758c260a0 utils.find_resource fixes + fix for volumes
Nova volumes do not have a name property but a displayName one, therefore we
modify find_resource() so it looks for this. Then, we modify the test suite
for utils.py so it uses the novaclient.base.ManagerWithFind class for its
FakeManager rather than implementing its own find() method. This way we are
sure that the utils.py functions work correctly with ManagerWithFind and its
way to search in objects list.

FakeResource class is now used, whereas it was not before.

Change-Id: I4c4838250e6987e05022e1607e8d099eb8fb7fff
Signed-off-by: Julien Danjou <julien@danjou.info>
2011-12-22 12:03:59 +01:00
Brian Waldon
d648231425 adding tests 2011-08-22 15:17:06 -04:00