409s are getting eaten... and nova uses this to return error when not in
the correct state to do an operation.
Change-Id: I76e9e98a89deb19e6b8aa32426fa31d6d66b8fdd
Some methods which should have returned objects dit not return and some
methods which don't return anything used return ... Fixed all that and
added tests to detect two returns which were missing.
Fixes bug 892058
Change-Id: If59468cfe1c7b1ab74ed0bfc6f81590dfd5dd668
Now a url like 'os-foo-bar/blah?arg1=apple&arg2=orange' will
invoke a fake function like 'os_foo_bar_blah' and receive
the arguments (arg1=apple, arg2=orange) as part of its
kwargs.
Change-Id: If2905ed0f335128ccd4100997354dfe12e0017fd
Now instead of doing server.get_console_output()[0]['output']
You can do: server.get_console_output()
Change-Id: Ic8a3f435fa0111feaa0d5cd42943dd2c7c243fb9
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>
ManagerWithFind.find() method wants to use self.list() but Manager does not
provides it. Therefore, it's better to implement it as an interface here,
and raise a NotImplementedError.
Change-Id: Iba6ef2c1f789c2eb12b210d42261d63796db3407
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
Added @unauthenticated decorator to mark subcommands that do not
need authentication. And checks to skip authentication for these
commands.
Added novaclient.keystone to setup.py
Change-Id: Id2fd60af305c30a950bdbae8f897192bfae4d797
Python >= 2.7 has argparse has a builtin module, so there's no need to add
it to the this list of requirements.
Change-Id: I647cec70a564b1d184f0cb2aca6caf4d6478c403
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
We need for run_tests.sh to accept the same inputs and outputs from a CI
perspective. In this case, the easiest way was just to port in run_test.py.
Additionally, we need with_venv.sh to exist.
Change-Id: I25e659ed796c8a70239aab610f5b014b35443b67
Use "2012.1" as the version for python-novaclient, to align with
Nova common versioning (starting with Essex-2, python-novaclient
is shipped as a Nova project deliverable. Fixes bug 904182.
Change-Id: I85d742a346bbaae1dc92a476c140f7f862a0828c
These files are actually needed - without MANIFEST.in, files are missing
from the source tarball which is used in debian packaging. setup.cfg is
needed for configuration of the sphinx doc build commands.
Additionally, I added listings for the other files in the root to
MANIFEST.in so that the source tarball would be complete.
Change-Id: Ia0f281663b58baaf2ee23f627d4b1887d0eddfe9
- properly determine what server an image was created from
- remove mapping of server id to name in image-list
- remove an extra image list query in imgae-list
Change-Id: Ib7c8fd784d21e658cb57dd9f9f2cd39e1cb11121
- Changed link from Rackspace API docs to OpenStack API docs
- Fixed Github link
- Added Launchpad link
- Added Gerrit link
Change-Id: I0494e4c4a8722c182c63515cb6079d2c1557b52f