26 Commits

Author SHA1 Message Date
Joshua Harlow
9fd2c8a59d Allow request timeout to be specified.
Add a new cli argument (--timeout) which
is by default 600 seconds which will be
set in the requests library so that timeouts
can occur correctly.

Change-Id: I716ac15fe08f42c9464ee43010bc8fd2667bcbde
2013-01-16 17:57:56 -08:00
Monty Taylor
53aee5cf4b Move from untitest2 to testtools.
Use testtools as the base testclass. Use fixtures library for managing
fixtures.

Part of blueprint grizzly-testtools

Change-Id: Iac5af286b988787acf7049344641aadf140b9398
2013-01-03 11:58:13 -08:00
Dean Troyer
aa1df04bad Use requests module for HTTP/HTTPS
* 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
2012-12-20 13:04:46 -06:00
Christian Berendt
4ad512b50e show help when calling without arguments
When calling nova without arguments you'll receive the following
output:

error: too few arguments
Try 'nova help ' for more information.

Changing 'and' to 'or' the help is also shown when calling nova
without arguments. I think that's the expected behavior.

Change-Id: Id14f0292ad00e6e45ad66dd010f449c3abbf3871
2012-11-08 22:46:26 +01:00
Adam Spiers
ad4a04a64e Make '--help' argument more useful.
With no other arguments, '--help' now outputs the same as 'help', so
that the list of subcommands are no longer omitted.  Additionally,
'$subcommand --help' now yields the same output as 'help $subcommand'.

Change-Id: Iabd926574e296ad14b622862b9fba038fdede66e
2012-04-11 15:35:27 +01:00
Dean Troyer
3a3f2b4ff8 Blueprint cli-auth: common cli args
Depricate --apikey, --projectid, --url (though still present for
compatibility).  Fully support OS_* env vars per
http://wiki.openstack.org/CLIAuth Password Flow.

Fixes lp897304

Change-Id: I655631194ed62133c24f30c9114e6fdc0fa77636
2012-02-02 16:40:49 -06:00
Brian Waldon
a905e5fe07 Accept 1 and 2 as version choices
- removes all unused imports
- update .gitignore with new venv path

Change-Id: I3e8199b72dc83268115133d7c73335ffb6060f9a
2011-12-14 14:44:26 -05:00
Sandy Walsh
cdde0d22cd tests working 2011-11-09 07:10:46 -08:00
Chmouel Boudjnah
7c8ae25a89 Fix unittests breakage from merge 3507905
PEP8 the file along the way.
2011-09-01 15:36:28 -05:00
termie
536be15a87 whitespace cleanups 2011-08-08 13:25:29 -07:00
Christopher MacGown
0efc51ec9d pep8 in tests 2011-08-08 13:25:29 -07:00
Brian Lamar
32fd202ab0 Updated --version to default to NOVA_VERSION, quick fix. 2011-08-04 10:55:08 -04:00
Brian Lamar
ea4b625e7b Updated --version to default to NOVA_VERSION 2011-08-04 10:52:53 -04:00
Brian Lamar
454daa2cba Tests working again...merged in some work we did earlier. 2011-08-03 17:41:33 -04:00
Brian Lamar
f8496672cc Split everything down the middle into v1_0 and v1_1, including tests. 2011-08-03 16:36:03 -04:00
Josh Kearney
cee51f8aff Refactored backup rotation. 2011-06-24 14:48:14 -05:00
Josh Kearney
518ca43ef7 Fixed unit tests. 2011-06-24 13:22:20 -05:00
Sandy Walsh
2069b17f8b tests working again for weight_scale/weight_offset 2011-06-21 04:54:01 -07:00
Sandy Walsh
46855896a8 fixed up tests after trunk merge and bumped version 2011-06-20 19:16:15 -07:00
Sandy Walsh
961d757e70 fixed project_id tests 2011-06-20 18:09:52 -07:00
Sandy Walsh
bd18c7e429 renamed to novaclient and fixed flavor tests 2011-02-26 05:04:40 -04:00
Sandy Walsh
88a57e2a4a NOVA_TOOLS_* -> NOVA_*, --debug 2011-02-14 14:27:21 -08:00
Sandy Walsh
9034c4618a removed zone name, renamed auth_url to api_url, added username/password 2011-02-09 18:31:22 -04:00
Sandy Walsh
637ddefbbe zone shell cmds & tests added 2011-02-09 11:16:51 -04:00
Sandy Walsh
f0c713658f tests pass again 2011-02-08 14:45:21 -04:00
Josh Kearney
7304ed80df Initial commit from fork 2011-01-25 14:01:22 -06:00