summaryrefslogtreecommitdiff
path: root/tests/test_shell.py
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup shell's authentication check.Jamie Lennox2013-06-121-1/+1
| | | | | | | | The original logic for whether shell had enough information to authenticate a user was confusing and will be very difficult to extend to other forms of authentication. Change-Id: I88763a651e494e60070a30f0824505acb09310cb
* Fix unused imports(flake8 F401, F999)Dolph Mathews2013-06-031-1/+0
| | | | | | | | | | - F401: imported but unused - F999: syntax error in doctest Fixing a couple of the F401's simply required fixing the doctests syntax where the imports were actually in use. Change-Id: If78abbb143daf8d005a71c5ab52836df29c5e0cd
* Fix line continuations (flake8 E125, E126)Dolph Mathews2013-06-031-10/+6
| | | | | | | | - E125: continuation line does not distinguish itself from next logical line - E126: continuation line over-indented for hanging indent Change-Id: I626a6d5d57db927e8b239f90569b5601c772f28b
* Remove duplicate test definitionsDirk Mueller2013-04-221-3/+0
| | | | | | | A few functions were duplicate, apparently merge errors. Remove them. Change-Id: Ifa23eb1fe5a5782101491be6b90ee9bed1e41b1b
* Added missing unit tests for shell.pyVasyl Khomenko2013-02-151-4/+82
| | | | | | blueprint python-keystoneclient-unittests Change-Id: I47a205c027251c5282522ea73ee79c937383dc94
* Allow requests up to 0.8 and greaterChuck Short2013-02-111-2/+1
| | | | | | | | | | 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: I41bfaf2574f6d7fc21f86e0124ceae7df6481eee Signed-off-by: Chuck Short <chuck.short@canonical.com>
* Allow request timeout to be specified.Joshua Harlow2013-01-181-1/+39
| | | | | | | | | 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: I845c55dfb6f6b8345663ccdb5b150a2655f20026
* Use testtools instead of unittest for base classes.Monty Taylor2012-12-251-13/+14
| | | | | | part of blueprint grizzle-testtools Change-Id: Ic9b438b4224d945e080d1d6071742ddc47ee81ed
* Use requests module for HTTP/HTTPSDean Troyer2012-12-181-6/+2
| | | | | | | | | | | | | * Implement correct certificate verification * Add requests to tools/pip-requires * Fix OS_CACERT env var help text * Add info to README * Rework tests to use requests Pinned requests module to < 1.0 as 1.0.2 is now current in pipi as of 17Dec2012. Change-Id: I120d2c12d6f20ebe2fd7182ec8988cc73f623b80
* Rename --no_cache to --os_cache.Dan Prince2012-12-071-2/+2
| | | | | | | | | | | | Some changes to make keystoneclient more backwards compatible by disabling key caching by default. This patch renames the CLI option for when to use the auth token cache to --os-cache and sets it to False by default. It also changes the ENV variable to OS_CACHE (instead of OS_NO_CACHE). Change-Id: I6e549feec6ee7500e398a1eceb5bb44cd7d40347
* bug-1040361: use keyring to store tokensGuang Yee2012-12-041-0/+18
| | | | | | | User can optionally turn off keyring by specifying the --no-cache option. It can also be disabled with environment variable OS-NO-CACHE. Change-Id: I8935260bf7fd6befa14798da9b4d02c81e65c417
* Change CLI options to use dashesDean Troyer2012-06-281-0/+104
| | | | | | | | | | Change documented options to use dashes instead of underscores in option names. Continue to support old underscore names for backward compatibility for a release or two (TBD). Blueprint: command-options Change-Id: Ied0d325a9fdd32f80bf8c993887e1975aa6adf16
* Change --user to --user_id and --role to --role_id in the keystone client ↵Everett Toews2012-05-111-4/+4
| | | | | | | | | | for consistency. Also changed an out-of-place tenant to tenant_id and removed unnecessary nargs in do_user_list. Fixes bug 994744. Change-Id: I418c07c8523f40822ca3251e85cd630ec877b45f
* Backslash continuations (python-keystoneclient)Zhongyue Luo2012-03-171-44/+59
| | | | | | | | Fixes bug #940023 Backslash continuations removal for python-keystoneclient Change-Id: I816fc39ced20bb8ba8a42d3f07a03da94a76f8ea
* Change CLIAuth arg namesDean Troyer2012-03-141-24/+30
| | | | | | | | | | | | | | | | | | Change the argument names used for common Keystone authentication per the updated http://wiki.openstack.org/CLIAuth: --auth_url -> --os_auth_url --password -> --os_password --username -> --os_username --tenant_id -> os_tenant_id --tenant_name -> os_tenant_name --region -> os_region_name All old args are depricated but available for backward compatibility. Fixes bug 954532 Change-Id: I26f8e0cf491549f5836c4079ff86e4823c0ef9a7
* Add endpoint commands help textDean Troyer2012-03-091-0/+22
| | | | | | | | Makes the new endpoint-* commands help text consistient with the other keystone commands. Also removes 'nargs' from options that require arguments. Change-Id: Idc638883b3675cf1d30163064e58ffe761c6f08b
* Clean up EC2 CRUDDean Troyer2012-02-271-0/+23
| | | | | | | | | | | | | Fixes bug 932427 * adds ec2-credentials-get * cleans up ec2-credentials-list output * display status of 3c2-credentials-delete * add basic shell tests Rebased 27Feb2012 Change-Id: Ic06ba9e2e49bad872f9091e1830d5296b0d411aa
* Fix --tenant_id corner case with ec2-create-creds commandDean Troyer2012-02-241-2/+34
| | | | | | | | | And add some tests for that case Rebased after CLI changes merged Rebased again after more bit rot discovered Change-Id: I95fa5ab19bff1d5e884b5c3675a123b134866e21
* Move --version to --identity_api_versionBrian Waldon2012-02-211-5/+5
| | | | | | | | * Default to OS_IDENTITY_API_VERSION before KEYSTONE_VERSION * Copy in 'env' function from python-novaclient hat supports multiple env var names * Fixes bug 936162 Change-Id: I3b4013408465ea45788517cb31afb7fc652e6e95
* Remove internal '-' from flag namesDean Troyer2012-02-201-1/+36
| | | | | | | | Fixes bug 936400 * global --auth-url becomes --auth_url * user-create --default-tenant becomes --tenant_id Change-Id: I483bb369556f4da2a6de61a39d00a7adbe1cf12e
* Add tenant commands to cliDean Troyer2012-02-171-4/+52
| | | | | | | | | | * Adds tenant-list, tenant-get and tenant-update to keystone command * Removes tenant-enable and tenant-disable * Fixes more overlap in cli args, clean up command args, particularly removing nargs from arguments that are not optional. * Fixes bug 932235 Change-Id: I1aafec1b2a3943e0f6c86f0228ab29f181a7ffce
* update test env shellJesse Andrews2011-12-181-4/+4
|
* Initial commit.Gabriel Hurley2011-10-251-0/+39