summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Add more columns to image list outputSteve Martinelli2014-07-252-0/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add disk_format, container_format, size and status to image list command. Added tests as well. Change-Id: I8e3822c6d46d0020fc706955c026549f6c635587 Closes-Bug: #1348475
* | | | Change V2 image tests to actually run V2 image codeSteve Martinelli2014-07-251-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | The current tests for image do not run v2 image code, changing that portion also made it's only test fail. I opted to change the image delete code and not the test, since passing the object ID is more in line with the rest of the project code. Change-Id: I62e13c063a5d68279dbbf31e59266db6285d73bf
* | | Fix IDP commandsJamie Lennox2014-07-212-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | identity_client.identity_providers doesn't exist as a manager. These are located at identity_client.federation.identity_providers. Fix the routes. Also fix passing id to .create() as a positional argument. This is not allowed from keystoneclient it should be passed as a keyword argument. Change-Id: I912c27fcee58b0723e27e9147def2cbd1c62c288
* | | Merge "Fix server resize"Jenkins2014-07-123-0/+157
|\ \ \
| * | | Fix server resizeDean Troyer2014-07-083-0/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So apparently we've never resized a server??? Fixed command args and add some tests. Change-Id: I6c3f6fec22390e9d269b7117a42a190d2b4b80ba
* | | | Merge "Add basic timing support"Jenkins2014-07-111-0/+87
|\ \ \ \ | |_|_|/ |/| | |
| * | | Add basic timing supportDean Troyer2014-07-081-0/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for --timing options. Use cliff via a pseudo-command 'Timing' to support multiple outputformats. If an output format other than the default 'table' is selected use CSV since the timing data is in list form. Will pick up timing data for any client object that has a method similar to novaclient's get_timings(). TODO: * Stop instantiating all of the clientmanager client objects just to check for timing data. Descriptor magic required? Change-Id: I7f1076b7a250fba6a8b24b2ae9353a7f51b792b2
* | | | Merge "Domain administrator cannot do project operations"Jenkins2014-07-091-0/+64
|\ \ \ \
| * | | | Domain administrator cannot do project operationsTerry Howe2014-07-071-0/+64
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Domain administrator cannot do project operations because the require access to the domain API (which they don't have). When attempting to find a domain for project operations, ignore errors because the API returns nothing without indicating there is a problem. The domain administrators will have to use a domain id, but they will still be able to do project operations. If the user does not have permission to read the domain table, they cannot use domain names. Change-Id: Ieed5d420022a407c8296a0bb3569d9469c89d752 Closes-Bug: #1317478 Closes-Bug: #1317485
* | | | Merge "Allow network find to use alternate name"Jenkins2014-07-081-0/+72
|\ \ \ \
| * | | | Allow network find to use alternate nameTerry Howe2014-07-071-0/+72
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Add the name_attr to the network find method so it can search for things like floating_ip_address for floating IP addresses rather than just id. Change-Id: I827e3745b06397a54555d1286e477bf2e05bf789
* | | | Merge "Catch SystemExit for parse args"Jenkins2014-07-081-1/+4
|\ \ \ \
| * | | | Catch SystemExit for parse argsTerry Howe2014-07-061-1/+4
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | If you have a test with parse args it fails with no error messages. This change throws an exception. Change-Id: I545aba346620a352fe570d394dbd4d6bd2daa995
* | | | Python 3: do not compare a list to a zip objectTerry Howe2014-07-071-5/+5
| |/ / |/| | | | | | | | | | | | | | In Python 3, zip() returns a zip object, not a list. Change-Id: I1a472bec3e12b5ae3c3555cf690b99a57579ce83
* | | Move network stuff to v2 instead of v2_0Terry Howe2014-07-073-3/+3
|/ / | | | | | | | | | | Rename network stuff v2 Change-Id: Ia9b8feda20dfd35b0f3712b8e2419d0bf5da0acd
* | Merge "trust authentication"Jenkins2014-07-041-14/+49
|\ \
| * | trust authenticationMatthieu Huin2014-07-031-14/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables authenticating by using a trust. The trust ID must be set with the parameter --os-trust-id or the env variable OS_TRUST_ID. Trusts are available for the identity v3 API. Co-Authored-By: Florent Flament <florent.flament@cloudwatt.com> Change-Id: Iacc389b203bbadda53ca31a7f5a9b8b6e1a1f522
* | | Merge "Python 3: do not use __builtin__"Jenkins2014-07-031-1/+1
|\ \ \ | |_|/ |/| |
| * | Python 3: do not use __builtin__Cyril Roelandt2014-07-031-1/+1
| |/ | | | | | | | | | | Use six.moves.builtins instead, this works with both Python 2 and 3. Change-Id: I57e7257d4f06c805f26383e0778ad104d50ea139
* | Remove backslash usage from a few testsSteve Martinelli2014-07-022-27/+12
|/ | | | | | | Noticed these in the code, figured we should stick to not using backslashes if possible. Change-Id: I55e5402683141e14df7c2b38883b1f3cc2a6bb6a
* Merge "Fix PEP8 E126 and E202 errors"Jenkins2014-06-273-328/+368
|\
| * Fix PEP8 E126 and E202 errorsDean Troyer2014-06-273-328/+368
| | | | | | | | | | | | | | Do both as they are all in the same set of files that required major re-formatting. Change-Id: I6e8a8ce19a55105124a33c0e2487fc4b4e06d252
* | Merge "Fix PEP8 E265 errors"Jenkins2014-06-273-7/+2
|\ \ | |/
| * Fix PEP8 E265 errorsDean Troyer2014-06-273-7/+2
| | | | | | | | Change-Id: Ieb9a9af1da27d3935d1a4d3cfb61b0ccb03d099a
* | Merge "Fix PEP8 H405 errors"Jenkins2014-06-271-3/+2
|\ \ | |/
| * Fix PEP8 H405 errorsDean Troyer2014-06-271-3/+2
| | | | | | | | Change-Id: Id9ea03e7d88148f84bffe1b18b5b4315e6123012
* | Rename token classes to match commandDean Troyer2014-06-272-13/+13
|/ | | | | | | The token create/delete commands were renamed but not the class names. Rename them to match. Change-Id: Icbf9c0a954ed0332fa4c99e4ee2612bb11f89e3a
* Network CRUDTerry Howe2014-06-246-2/+381
| | | | | | | bp/neutron https://wiki.openstack.org/wiki/OpenStackClient/Commands#Network_2 Change-Id: I89ee083154afa544b03587e84becace36d9d522a
* Complete Identity v3 list command filtersDean Troyer2014-06-192-7/+288
| | | | | | | Complete the 'group list' and 'user list' filter options following the refactor in https://review.openstack.org/69878 Change-Id: Ib4af417c56d4f7da4b88852f191af615cc7fa2ec
* Merge "Refactor role list subcommand for identity v3 api"Jenkins2014-06-192-175/+187
|\
| * Refactor role list subcommand for identity v3 apiQiu Yu2014-06-132-175/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently parts of user list and group list command are actually functioning as role listing, which is quite counter intuitive and misleading. This refactor change move role related logic to a single place of role list command. It now allows role grants listing for user/group + domain/project combinations. If no user or group specified, it will list all roles in the system, which is the default behaviour. Change-Id: I4ced6df4b76f018d01000d28b4281ad9f252ffcc
* | Merge "Add token delete command for identity v2"Jenkins2014-06-182-0/+23
|\ \
| * | Add token delete command for identity v2Terry Howe2014-05-232-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | Identity v2 has undocumented support for token delete and keystoneclient also has support. Change-Id: Ib98d17958ceb88f7b63471691dee71fdb884ce2e Closes-Bug: #1318442
* | | Fix find_resource for keystone and cinderTerry Howe2014-06-172-2/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The find_resource method had two hacks in in to support cinder and keystone and I have removed those in favor of a monkey patch for cinder. The find_resource method used to attempt to UUID parse the id, but it would do a manager.get anyway. I changed it to skip the UUID parsing. This will make things run minorly faster and it supports LDAP for keystone. The find_resource used to attempt to use display_name=name_or_id when finding. This was a hack for cinder support, but it breaks keystone because keystone totally messes up with the bogus filter and keystone refuses to fix it. Change-Id: I66e45a6341f704900f1d5321a0e70eac3d051665 Closes-Bug: #1306699
* | | Image create and set command updates and testsDean Troyer2014-06-162-47/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor image create and set commands to properly handle properties. This is particularly tricky with exclusive booleans as in this case leaving both choices off the command line should NOT assume a default value but leave the existing value unchanged. Properties were not being updated correctly in the 'image set' command. Refactor it to use the same pattern as in other SetXxx commands. Add tests for arg handling. Change-Id: I123a64c9b4feecab25a3e2013cc047f55b1c9967
* | | Refactor oauth1 code for updatesSteve Martinelli2014-06-143-0/+413
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The keystoneclient code for oauth1 support has changed. As such, we should remove the delete, list and authenticate functions, since they are not in keystoneclient. Also, we must now pass in the project id when creating a request token. Additionally we must now pass in roles when authorizing a request token. Added functional tests to ensure output and input args are the same. bp add-oauth-support Change-Id: I559c18a73ad95a0c8b7a6a95f463b78334186f61
* | | Merge "Ignore most of the new hacking 0.9.2 rules"Jenkins2014-06-141-2/+3
|\ \ \
| * | | Ignore most of the new hacking 0.9.2 rulesDean Troyer2014-06-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So we can update requriements.txt. But fix a couple of easy ones: * Fix E251 (1 occurrance) * Fix E131 (1 occurrance) Change-Id: I62aaa423aa6da9e9f0ca026ec586b51cc6a6df03
* | | | Merge "Add support for extension list"Jenkins2014-06-144-0/+193
|\ \ \ \ | |/ / / |/| | |
| * | | Add support for extension listMatt Fischer2014-06-114-0/+193
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add support in the common section for extension list. This only supports Identity for now. Once the APIs for volume and compute are supported in the respective APIs, they will be added. Once network is added to this client, it will be added (the API already supports it). - Include extension fakes for volume and compute for pre-enablement. Change-Id: Iebb0156a779887d2ab06488a2a27b70b56369376 Closes-Bug: #1319115
* | | Merge "Add role assignments list support to identity v3"Jenkins2014-06-132-0/+415
|\ \ \ | |/ / |/| |
| * | Add role assignments list support to identity v3henriquetruta2014-05-302-0/+415
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The assignments manager and its test class were created. Some fake stubs were also added on the fakes.py module. The "openstack role assignment list" command was created. Change-Id: Iae94f4fee608ea3e09ff38961ad22edc38efb89c Implements: blueprint roles-assignment-list Closes-Bug: 1246310
* | | Merge "Add tests for identity endpoints"Jenkins2014-06-102-0/+288
|\ \ \ | |/ / |/| |
| * | Add tests for identity endpointsMatt Fischer2014-05-152-0/+288
| | | | | | | | | | | | | | | Change-Id: If15cc74fafbbe52fa86aa353f2598aa31daf0695 Closes-Bug: #1319450
* | | Merge "Fixed several typos throughout the codebase"Jenkins2014-05-281-1/+1
|\ \ \
| * | | Fixed several typos throughout the codebaseAlex Gaynor2014-05-211-1/+1
| | |/ | |/| | | | | | | Change-Id: I048ee857fc1215fea7f60978364894e1b5abdf66
* | | Merge "Fix server image create"Jenkins2014-05-281-5/+1
|\ \ \ | |/ / |/| |
| * | Fix server image createDean Troyer2014-05-081-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | The final find_resource() call errored because servers.create_image() returns an image ID rather than an Image resource. Reset expectations and arguments. Change-Id: I1b9132f66091f9df76198724156acb7a6fb2f6fe
* | | Change volume create --volume-type to --typeDean Troyer2014-05-152-14/+148
| |/ |/| | | | | | | | | | | This makes it consistent with the other --type options in OSC. Also add a few more volume_create tests. Change-Id: I50ef927932cabf157ecdfd6c4faa1914b4fdf413
* | Merge "Implement CRUD operations for Identity Providers"Jenkins2014-05-092-0/+395
|\ \ | |/ |/|