debugging tests is a lot easier when you can actually inject stderr
directly through even on successes. Add the pretty tox facility from
nova / tempest-lib into python-nova client as well for functional
tests.
Change-Id: I5c1f8244a5c743b590b74a8eb3eaf4a699555644
Modules from oslo-incubator already switched to use graduated
libraries (oslo.i18n, oslo.serialization and oslo.utils), so we
should sync latest code and remove outdated modules (gettextutils,
importutils, strutils).
NOTE:
- module novaclient.openstack.common._i18n should be used only in
common code
- module novaclient.i18n designed for usage in novaclient
Latest commit in oslo-incubator:
21985931a95981eabf1030ead60ae4d210bcd9c0
Synced changes for tools/install_venv_common.py:
fe3389e Improve help strings
Other synced changes:
55ca7c3 Split cliutils
5d40e14 Remove code that moved to oslo.i18n
3edbfb3 remove caching param from prettytable call
6ff6b4b Switch oslo-incubator to use oslo.utils and remove old modules
9eee5d0 Merge "Delete the token and endpoint on expiry of token of client"
f76f44c Delete the token and endpoint on expiry of token of client
ed0ffb8 Do not incur the cost of a second method call
cf449e2 Fix response_key parameter usage in BaseManager
d73f3b1 Remove unused/mutable default args
e7d26a6 Merge "Centralize bash-completion in Novaclient"
b4e098e Merge "Handle non-openstack errors gracefully"
5e00685 Centralize bash-completion in Novaclient
4ef0193 Handle non-openstack errors gracefully
ac995be Fix E126 pep8 errors
de4adbc pep8: fixed multiple violations
Change-Id: I5f3015ebcbc665a2089ec88629e15ba336aee504
There was a call from install_venv.py file to post_process method
of InstallVenv class, but this method is not defined in this class
as result it was raising an error. Even when this error doesn't
affect dependencies installation, it is not allowing to display user
information.
Change-Id: I499c0399eb961588d7e1491e1481412ffdda38b8
Closes-Bug: #1275025
This patchset updates modules based on the config file:
openstack-common.conf
Notes: Some corrections has been added to work with
new files.
+ utils.py: The method safe_decode from strutils.py
was updated and it is now not necessary to check for
decode string with py33.
+ base.py: base64 needs a 8-bit string for py33
+ test_shell.py: stdin.encoding is needed for strutils
Change-Id: Iebe474f1226f8b5faa7fb5722e65f41b80d1973c
Related to blueprint common-client-library-2
Closes-Bug: #1265473
- Removes vim headers: It's not needed to set tabstop tons of times,
this can be done by setting vimrc.
- I did not update files in common/* and install_venv_common.py because
these files are sync with oslo.
Note:
http://lists.openstack.org/pipermail/openstack-dev/2013-October/017353.html
Closes-Bug: #1265474
Change-Id: Ia09dc2c908187a756bf55eaba74655484304517d
--flags were not tab-completing under OS X. This was due to the whitespace
collapsing regular expression using the '+' token (meaning one-or-more), which
isn't supported in OS X's version of sed.
Using the more portable ' *' instead of '[ ]+' fixes this.
Additional cleanups
* Remove unecessary embedding of tabs in the file (nova bash-complete doesn't
emit tabs, so the regular expressions don't have to handle them)
* Restore logic to exclude -h from tab-completion (was lost in last
tab-completion cleanup)
* Add similar exclude logic for -i
Fixes bug 1266667
Change-Id: I7e1fe8382d9b5295d0bbc1cde2b89550d5a4e21c
Update gettext, striutils, timeutils and install_venv_common
from oslo.
Change-Id: Ibd9067e3e2be335ef75f0e4a5e4000d143030ab7
Signed-off-by: Chuck Short <chuck.short@canonical.com>
The current version of install_venv_common uses the --distribute flag
in its creation of the virtualenv. This causes some upgrade problems
with the new versions of distribute and setuptools. The solution to
those problems is to get off of the distribute bandwagon.
Change-Id: I5efe196c46b12d88c853f8362ebcbf0cc6f1573d
Use nova bash-completion to add native zsh completion using built in
parameter expansion. Nothing spectacular or new, this is mostly so that
zsh users do not need to autoload bashcompinit just to use nova.
Change-Id: I56f62f036e0c85e79197f4c7dfd25abf7eb4110a
Implements: zsh completion
Only blacklisting those warnings that are numerous,
so that in principle Hacking and PyFlakes warnings
are tested. Fix the easy ones alongway.
Change-Id: I571f51ebf570ac114509f2dcd71cdce281e7c70a
The python community groks requirements.txt and test-requirements.txt as
reasonably standard files. We should use those filenames to make our
information more discoverable.
Fixes bug 1179008
Change-Id: I50a7c46f880e4257fa31d7d322d7bf70b0f5d3a6
openstack.common.setup and openstack.common.version are now in the
standalone library pbr, so all projects using those two should
migrate.
Fixes bug 1179007.
Change-Id: I7ac1c37f0bf148619dffff8f454db05fc192e471
Mention keyring in test-requires as in python-keystoneclient.
So, keyring support is enabled in shell.py and tested.
Change-Id: Icb712a07b995b47b286ed0528e04ae1d5ec195d2
The requests module dropped all configuration with the 1.0.0 release.
There's no danger_mode and no 'verbose'' mode. The former
shouldn't be necessary anymore and the latter can be done by setting
a different log handler for the request.logging root logger.
Change-Id: Iec169ef6e39097814cdbf1b777bc0590236692ba
The osx version of sed does not support \s so replace uses of it
with [ ] and clean up the regex a bit.
Change-Id: Ic6fd2e4234352ddb8ec70d42b44ad00a3906db0e
Use testtools as the base testclass. Use fixtures library for managing
fixtures.
Part of blueprint grizzly-testtools
Change-Id: Iac5af286b988787acf7049344641aadf140b9398
* Implement correct certificate verification
* Add --os-cacert
* Rework tests for requests
Pinned requests module to < 1.0 as 1.0.2 is now current in pipi
as of 17Dec2012.
Blueprint: tls-verify
Change-Id: I9a25a94c8dfcaf483c4c8328439809d65cf10b38
Fixes bug #1045456
The date range in Nova's os-simple-tenant-usage is expected to be in UTC
time since launch/termination dates are stored in the DB in UTC time and
we use the client supplied parameters to query DB without conversion.
Switch from using datetime.today() to datetime.utcnow() to fix the issue.
Add a test for the default date range.
Import timeutils from openstack-common so we can control the return value
of utcnow() in the tests.
Change-Id: Iac77e3a4cc9561714d1492c54cef931f9764531e
Adding nosehtmloutput as a test dependency allows nose to output its
results to an html file. This will be used by Jenkins to save logs on
a different server.
Change-Id: Iab55c018b0f41d9ffabd931329ab487df8ab9cae
- cache output of "nova bash-complete"
- distinguish between flags and commands (based on already typed text)
Change-Id: I85bd1c2198eef222540cf12063a3b233b0d6db12
Allows a user to interact with certain models (image, flavors, and
servers currently) using a human-friendly identifier which is a
slugified form of the model name.
Example:
nova boot --image debian-6-squeeze --flavor 256mb-instance myinst
Change-Id: I43dbedac3493d010c1ec9ba8b8bb1007ff7ac499