summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add sort support to image list"Jenkins2015-02-073-0/+118
|\
| * Add sort support to image listzhiyuan_cai2015-02-063-0/+118
| | | | | | | | | | | | | | | | | | | | Add sort support to image list by sorting items in the client side. The parameter syntax follows this spec[1]. [1] https://review.openstack.org/#/c/145544/ Change-Id: I42b487d18f00f937db1938daa46487cea2a896ab Closes-Bug: #1410251
* | Merge "Begin low-level API for Network v2"Jenkins2015-02-073-84/+259
|\ \
| * | Begin low-level API for Network v2Dean Troyer2015-01-223-84/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | | api.network.APIv2 starts with network_list() support to flush out the skeleton of the Network API. list_dhcp_agent() supports the --dhcp option of 'network list' Change-Id: I9a2b90cde84eced1f2ea6a014b769e2bae668211
* | | Merge "Check volume status before extending size"Jenkins2015-02-064-10/+215
|\ \ \
| * | | Check volume status before extending sizelin-hua-cheng2015-02-064-10/+215
| | |/ | |/| | | | | | | | | | | | | | | | Added test for Volume Set as well. Change-Id: I8e6794f67b160ca328fcafa8f1d67138b4f3becd Closes-Bug: #1415182
* | | Added capabilities/options to 'openstack flavor list'Igor_Bolotin2015-02-031-0/+274
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | command to match capabilities already provided by 'nova flavor-list': —public | --private | --all options allows to list public only (default), private only or all flavors. —long displays more field. This option also fetches properties (extra-specs) for each flavor using separate API call for each flavor and it’s too slow to be done by default. However as an administrator - sometimes I need to be able to see them for all flavors. Removed empty “Extra Specs” column as well as "Swap" and "RXTX Factor" from default output. DocImpact Closes-Bug: #1416780 Change-Id: I30cfa2c75e28daf17b936543a177c23ae1743c37
* | Add filter to image listDean Troyer2015-01-275-96/+350
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Hides previously broken --page-size option * Adds --property to image list for filtering on properties * Adds Visibility, Protected, Owner, Properties/Tags to --long output * Adds api.utils.simple_filter() for selecting matches out of a list of objects * Adds tests for all of the above * Updates image docs There are additional filtering options to be added in later reviews. Change-Id: I32feff0ad61aae749b33621c817658d7dc90c3aa Closes-bug: 1401902
* | Merge "fix the wrong order of assertEqual args"Jenkins2015-01-2727-283/+283
|\ \
| * | fix the wrong order of assertEqual argswanghong2015-01-2727-283/+283
| |/ | | | | | | | | | | Let's fix them thoroughly. Change-Id: I8a1f042fb614b05c9836a49041f3883638b870b0
* | Add 'find by name' to --nic for creating serverzhiyuan_cai2015-01-272-0/+82
|/ | | | | | | Add 'find by name' feature to --nic option for creating server. Closes-Bug: #1353040 Change-Id: Idd0a30415d8360a57e33efedf2467593652683d4
* Begin low-level API for Image v1 and v2Dean Troyer2015-01-204-53/+404
| | | | | | | | | image list for v1 and v2: * Add --public|--private to command parsers * Implement local public/private filtering for v1 image_list() * Pass public/private filter to server for v2 image_list() Change-Id: Ie7c24ea2d1bf2b3b1b7fa342eb45fee45894634d
* Merge "Add helpful messages when authN'ing with password"Jenkins2015-01-162-2/+6
|\
| * Add helpful messages when authN'ing with passwordSteve Martinelli2015-01-162-2/+6
| | | | | | | | | | | | | | | | | | | | Setting up auth options can be complicated, and we currently don't do any checking before we build all our auth parameters to send off to keystoneclient. We should do some basic checking to guide new users. Change-Id: I9c88f1c9637b3870c151952ecc797aaf65be271a Closes-Bug: #1400531
* | Merge "Update service clist commands for v2 and v3"Jenkins2015-01-162-2/+27
|\ \
| * | Update service clist commands for v2 and v3Dean Troyer2015-01-162-2/+27
| |/ | | | | | | | | | | | | | | | | | | | | | | Changes to the 'service list' commands for Identity v2 and v3: * Document support for --long * Add Description to v3 output with --long * v3 output is now (ID, Name, Type), with (Description, Enabled) added with --long * Change v2 output to match v3 output, with the absense of Enabled. * Update doc to match Closes-Bug: #1411337 Change-Id: I999e3df22f61350cdeba63bbb7d01145c2ffeeaf
* | Default user domain id and project domain idSteve Martinelli2015-01-161-0/+1
|/ | | | | | | | | | | | | If either of OS_USER_DOMAIN_ID or OS_USER_DOMAIN_NAME are present then we don't tinker with anything. Otherwise, we should set the USER_DOMAIN_ID to 'OS_DEFAULT_DOMAIN', as this provides a better UX, since the end user doesn't have to specify these arguments. Same logic applies for OS_PROJECT_DOMAIN_ID. Closes-Bug: #1385338 Change-Id: I8a4034c16a1dd50d269f809abab8e960d5de20f7
* Merge "Check if service.name available before access"Jenkins2015-01-152-11/+99
|\
| * Check if service.name available before accesszhiyuan_cai2015-01-042-11/+99
| | | | | | | | | | | | | | | | | | | | | | Currently v3 endpoint commands access service.name directly, while name is not a required attribute of service. So if we associate an endpoint to a service without name, we will get an AttributeError executing v3 endpoint commands later. This patch addresses this issue by checking if service.name is available before accessing it. Change-Id: I3dd686ef02a2e21e2049a49cb55634385c2ecfaf Closes-Bug: #1406737
* | Upgrade hacking to 0.10Steve Martinelli2015-01-121-1/+1
| | | | | | | | | | | | Also resolve the only error that was produced. Change-Id: Ic81ab01aa0cddc15bb27419d7fec3e5a6d4ec0c7
* | Request token authorizeSteve Martinelli2015-01-091-2/+10
| | | | | | | | | | | | Command doc and tweaks to the code Change-Id: I8f251bf9ca77f16b01a509844e79ddde82048b0d
* | Merge "Request token creation docs + tweaks"Jenkins2015-01-091-2/+10
|\ \
| * | Request token creation docs + tweaksSteve Martinelli2015-01-081-2/+10
| |/ | | | | | | | | | | | | Added command docs, and changed request token to take in name or id of a project, and also support a domain option. Change-Id: I87363274e5b7a0c687e234f5a4bcaaf166d28840
* | Allow user list to filter by projectSteve Martinelli2015-01-081-0/+47
|/ | | | | | | | Adds a --project filter to `os user list`, which really calls the role assignment manager behind the scenes. Change-Id: I57a75018f12ed3acdf8f6611b6b58bd974f91da2 Closes-Bug: #1397251
* Merge "type should be required for v2.0 service create"Jenkins2015-01-031-4/+71
|\
| * type should be required for v2.0 service createlin-hua-cheng2014-12-301-4/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated the service name to be optional, mostly matching the cli arguments with v3 service create. Implemented the following changes on service create: - if only a single positional is present, it's a <type>. This is not currently legal so it is considered a new case. - if --type option is present the positional is handled as <name>; display deprecation message - if --name option is present the positional is handled as <type>. Making --type optional is new, but back-compatible - Made --name and --type mutually exclusive. - only '--name <service-name> <type>' shall appear in the help output Change-Id: I8fd4adba3d8cd00d5a8cacc2c494d99d492c45a3 Closes-Bug: #1404073
* | Merge "Rename column to `default project id` for long listing v3 user"Jenkins2015-01-022-27/+36
|\ \
| * | Rename column to `default project id` for long listing v3 userSteve Martinelli2015-01-022-27/+36
| | | | | | | | | | | | | | | | | | | | | Previously this column was coming up as empty, since user's have a `default project id`, not just `project id`. Change-Id: I3d7f7eb600e9526b9c6cc2a8c5d6009b9100b1f5
* | | Merge "Command docs: domain"Jenkins2015-01-021-6/+4
|\ \ \
| * | | Command docs: domainDean Troyer2014-12-311-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the implementation of --enable|--disable on domain create and set commands to our usual style. Change-Id: I10f2b96281a114fa3cf3b001394844770b2a8632
* | | | Merge "Allow service description to be set for KS V3"Jenkins2014-12-302-4/+85
|\ \ \ \ | |/ / / |/| | |
| * | | Allow service description to be set for KS V3lin-hua-cheng2014-12-232-4/+85
| | |/ | |/| | | | | | | | | | Change-Id: Ibf84882c9a9f408268c225190436fc1a534e1017 Closes-Bug: #1404997
* | | Merge "add multi-delete support for compute/image/net/volume"Jenkins2014-12-234-4/+4
|\ \ \
| * | | add multi-delete support for compute/image/net/volumewanghong2014-12-234-4/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part1, add support for these objects: compute.server imagev1.image imagev2.image network.network volume.volume volume.backup volume.snapshot Closes-Bug: #1400597 Change-Id: Ice21fee85203a8a55417e0ead8b509b8fd6705c1
* | | add multi-delete support for identitywanghong2014-12-236-6/+6
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | This is part2. Add support for these objects: identity.project(v2.0) identity.role(v2.0) identity.user(v2.0) identity.project(v3) identity.role(v3) identity.user(v3) identity.group(v3) Closes-Bug: #1400597 Change-Id: I270434d657cf4ddc23c3aba2c704d6ef184b0dbc
* | Don't import form keystoneclient.openstack.commonJamie Lennox2014-12-173-3/+3
|/ | | | | | | | The keystoneclient.openstack.common directory is where we sync files from oslo incubator. It is not a public directory and should not be being consumed by openstackclient. Change-Id: I011bb95c2c824e2dbc4b822ca922ae77b8d9b955
* Merge "Liberalize version matching a bit"Jenkins2014-11-211-3/+3
|\
| * Liberalize version matching a bitDean Troyer2014-11-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For class-loading purposes we can just use the major version, so accept that. Only Identity and Compute were affected; Compute is included just to be pedantically complete. For command groups we also just use the major version so fix Compute and the version option handling. Change the internal default for Identity to a simple '2' so it is also consistent with the rest of the world. Then comes microversioning... Closes-Bug: #1292638 Change-Id: Ibaf823b31caa288a83de38d2c258860b128b87d8
* | Merge "Fix volume create --image"Jenkins2014-11-192-0/+159
|\ \
| * | Fix volume create --imageDean Troyer2014-11-182-0/+159
| | | | | | | | | | | | | | | | | | | | | 'volume create --image' should allow an image name to be used. Closes-Bug: #1383333 Change-Id: I996d46db321eef2d75c3d19b480319f8a78c09b3
* | | Merge "add keystone v3 region object"Jenkins2014-11-192-0/+421
|\ \ \ | |/ / |/| |
| * | add keystone v3 region objectwanghong2014-11-182-0/+421
| | | | | | | | | | | | | | | | | | | | | Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Change-Id: Ia6f607630dbf507681733c3ab3b9b7c55de30f49 Closes-Bug: #1387932
* | | Merge "Add arg to 'server image create' tests"Jenkins2014-11-182-5/+10
|\ \ \
| * | | Add arg to 'server image create' testsDean Troyer2014-11-142-5/+10
| | |/ | |/| | | | | | | | | | | | | | | | The 'protected' column was not being checked. Also add it to image.fakes.IMAGE. Change-Id: Ie431e9871a7da78b5a3924bfbc51d5575d994d86
* | | Add additional support for --or-showSteve Martinelli2014-11-142-0/+156
|/ / | | | | | | | | | | | | | | Add --or-show for the following: * v2 roles * v2 projects Change-Id: Ibbae19cda668575b9527fbd259f1298c48b8265b
* | Merge "Beef up object-store tests"Jenkins2014-11-135-58/+228
|\ \
| * | Beef up object-store testsDean Troyer2014-10-225-58/+228
| | | | | | | | | | | | | | | | | | | | | | | | * Add object top-to-bottom tests * Move some fakes around * Clean up existing object tests Change-Id: If8406da611c11bbd2b1bf5153e45b720b0eea442
* | | Merge "Use fixtures from keystoneclient for static data"Jenkins2014-11-121-134/+11
|\ \ \
| * | | Use fixtures from keystoneclient for static dataJamie Lennox2014-10-311-134/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We should use the fixture generation code from keystoneclient rather than keep our own copies of the token and discovery structure. Change-Id: I53c1d2935d1d65c39b8abea89427af2fc3edd181
* | | | Swap remaining assertEqual argumentsDean Troyer2014-11-071-22/+22
| | | | | | | | | | | | | | | | Change-Id: I1abdebb298b93074657a7ba65a7186d814969780