summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
* Not use the deprecated argumentDave Chen2015-06-081-1/+1
| | | | | | | | | `project` argument is deprecated in keystoneclient for V3 API, and use `default_project` instead, should use `default_project` as the argument name in the openstackclient accordingly. Change-Id: Ib9d70801c933a184afcdab75204393efa764fa87 Closes-Bug: #1462389
* Merge "add --domain argument to v3 project set"Jenkins2015-06-041-0/+15
|\
| * add --domain argument to v3 project setGuojian Shao2015-05-291-0/+15
| | | | | | | | | | | | | | | | | | Currently argument 'domain' is not supported by command 'os project set', but it is required by keystone v3 update project API to match the domain id. Closes-Bug: #1460122 Change-Id: I1b32f67f78b369f6134a74cdf9a4811b7539d44b
* | Allow --insecure to override --os-cacertDean Troyer2015-06-041-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Change --insecure to ignore the --os-cacert setting. This is a change from before where OSC followed the requests pattern of cacert taking priority. This logic is also introduced in os-client-config 1.3.0; we do not require that release yet so it is duplicated here for now. That change will come with the upcoming global options refactor. Closes-Bug: #1447784 Change-Id: Iaa6d499ed0929c00a56dcd92a2017487c702774a
* | Rework shell testsDean Troyer2015-06-021-212/+175
| | | | | | | | | | | | | | | | | | | | | | This is the first step in reworking the shell argument handling, clean up and add tests to ensure functionality doesn't change. * Rework shell tests to break down global options and auth options. * Make tests table-driven * Remove 'os_' from 'cacert' and 'default_domain' internal option names Change-Id: Icf69c7e84f3f44b366fe64b6bbf4e3fe958eb302
* | Merge "Add --wait to server delete"Jenkins2015-06-012-0/+86
|\ \
| * | Add --wait to server deleteMatt Riedemann2015-05-292-0/+86
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the server delete command to wait for the server to be deleted (obviously). The wait method is the same model that Tempest uses, i.e. wait for a 404 on server GET (successful deletion), fail if the server went to ERROR status, or fail if a timeout is reached. The default timeout of 300 seconds is also what Tempest uses. Closes-Bug: #1460112 Change-Id: I0e66c400903e82832944d1cad61e7eb30177c3e8
* | Merge "Add support for volume v2 API"Jenkins2015-05-316-0/+464
|\ \
| * | Add support for volume v2 APIAmey Bhide2015-05-306-0/+464
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added following commands for volume V2 API: volume show volume delete volume type show volume type delete snapshot show snapshot delete backup show backup delete Implements: blueprint volume-v2 Change-Id: I68bd303c194f304ad15f899d335b72a8bf3ebe10
* | Add cli tests for --verify and friendsDean Troyer2015-05-281-1/+53
|/ | | | | | | | | | The tests that will change after the verify-always-true bug is fixed are currently commented out. The commented asserts show where we want to go. Also fixes --verify parser value Change-Id: I891e3ead5fc3da3ed2ecba5d2befd9e910778655
* Fix shell testsTerryHowe2015-05-281-9/+9
| | | | | | | | Personally, I think these tests should be removed, they are testing OCC. An internal OCC change on a private method broke this test. Change-Id: I760bf90ef8bd97e30be7838874337be695d45285
* Merge "Add support for v2 image set command"Jenkins2015-05-271-0/+50
|\
| * Add support for v2 image set commandAmey Bhide2015-05-271-0/+50
| | | | | | | | | | Partial-Bug: #1405562 Change-Id: Ie30802d720a247748c45099c38450cc6c76bbc2a
* | Merge "Remove oslo serialization requirement"Jenkins2015-05-271-1/+2
|\ \ | |/ |/|
| * Remove oslo serialization requirementSteve Martinelli2015-05-261-1/+2
| | | | | | | | | | | | | | | | | | Recently oslo serialization has started to also include python-msgpack. Since we were only using it for json support, we should just use python's json support. Especially since it's only used by our tests. Change-Id: I0f8d939d6fca7608eaa3eea7ea4ca93296aaab3a
* | Add missing properties to image set commandAmey Bhide2015-05-251-0/+9
|/ | | | | | | | Enable user to update the following image properties from OSC: container-format, disk-format, size Closes-Bug: #1446362 Change-Id: Id9f40f15702e8f14f0327a37fcc7d7971338c258
* Merge "Add os-client-config cli tests"Jenkins2015-05-111-1/+255
|\
| * Add os-client-config cli testsDean Troyer2015-05-011-1/+255
| | | | | | | | | | | | | | Add tests for --os-cloud handling and precedence between CLI, env vars and clouds.yaml. Change-Id: I91d96f483d395f19ffcf74ec0187718ba01a1c41
* | Merge "Federation Service Providers CRUD operations"Jenkins2015-05-062-0/+428
|\ \
| * | Federation Service Providers CRUD operationsMarek Denis2015-04-152-0/+428
| | | | | | | | | | | | | | | | | | | | | | | | | | | Adds CRUD support for service providers as it's now available through keystoneclient Closes-Bug: 1435962 Depends-On: If802e8a47e45ae00112de3739334b4b5482d0500 Change-Id: Ic55101e50209070aa49ca2adc91c89ba754c8c68
* | | Add image show testsDean Troyer2015-05-014-8/+166
| |/ |/| | | | | | | | | | | | | | | Image v2 uses warlock objects rather than the usua Resource objects so we need to test for those. This adds a subset of the Image v2 schema that should be enough to test for proper warlock image handling. Depends-On: Ic95db2f63d9f5f37e29f0d7e048397da311fbf8c Change-Id: Ib89cce87f110a554f40e726718e31d39b500a6ae
* | Merge "Add parent field to project creation"Jenkins2015-04-302-0/+110
|\ \
| * | Add parent field to project creationRodrigo Duarte2015-03-232-0/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding the possibility to create projects hierarchies by adding the parent field in the create project call. Co-Authored-By: Victor Silva <victor@lsd.ufcg.edu.br> Implements: bp hierarchical-multitenancy Change-Id: I4eac4f5bc067634cc38c305dacc59ab1da63c153
* | | Fix security group create description bugDean Troyer2015-04-222-0/+203
| | | | | | | | | | | | | | | | | | | | | | | | --description is optional in our CLI but the server requires it to be non-empty. Set a default value of the given name. Closes-Bug: #1434172 Change-Id: I81507a77ad8d815000ff411784ae71e229c77f78
* | | Merge "Handle the pagination for image list"1.1.0Jenkins2015-04-202-13/+30
|\ \ \
| * | | Handle the pagination for image listTerryHowe2015-04-202-13/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle the paginatiion for image list. We were sorting the data here, so nothing lost for the generator. Change-Id: I2d7d4b3d5c9f650953f309c971ac53b64f6f7f77
* | | | Add --os-cloud supportDean Troyer2015-04-182-251/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new option --os-cloud that allows the configuration values for multiple clouds to be stored in a local file and selected with a single option. Internal option names have had 'os_' removed to be comptible with the options returned from OpenStackConfig().get_one_cloud(). The config file is ~/.config/openstack/clouds.yaml: Sample ------ clouds: devstack: auth: auth_url: http://192.168.122.10:35357/ project_name: demo username: demo password: 0penstack region_name: RegionOne devstack: auth: auth_url: http://192.168.122.10:35357/ project_name: demo username: demo password: 0penstack region_name: RegionOne Co-Authored-By: Monty Taylor <mordred@inaugust.com> Change-Id: I4939acf8067e44ffe06a2e26fc28f1adf8985b7d Depends-On: I45e2550af58aee616ca168d20a557077beeab007
* | | | Merge "Defer client imports"Jenkins2015-04-192-0/+11
|\ \ \ \
| * | | | Defer client importsDean Troyer2015-04-152-0/+11
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So we really weren't deferring the loading of client libs dadgummit, do that for real where possible. This shaves a couple of tenths off the static import times. Also defer as much import-time procesing as possible. This is a little ugly in api.auth but this also eliminates import of the auth plugins until they are needed. Change-Id: Ia11d4b9cf98231d37449103fc29101dc17afb009
* | | | Merge "Fix session timing"Jenkins2015-04-171-8/+9
|\ \ \ \ | |/ / / |/| | |
| * | | Fix session timingDean Troyer2015-04-071-8/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subclass keystoneclient.session.Session to add the timing hooks to record the elapsed time returned by requests.Response objects, including the redirection history. Redirects are included individually and not rolled into the total time for the original request. This works for all clients that use OSC's session. Closes-Bug: #1402577 Change-Id: I9360c90c151579b89a37edb8c11c17feb15b3cb9
* | | Add support to remote_idMarco Fargetta2015-03-302-7/+231
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The federation APIs for the identity providers introduce a new parameter for every identity provider, named remote_ids, which contains a list of entity ID associated with. This parameter can be provided during the creation of the identity provider and can be updated at any time. For more information look at the blueprint: https://blueprints.launchpad.net/keystone/+spec/idp-id-registration This patch add the support to this new parameter in the command line by inserting the option "--remote-id" in the following commands: - "identity provider create" - "identity provider set" Additionally, the values can be read from a file, specified by "--remote-id-file", containing an entity id per line. Change-Id: Ie93340ee57e54128daa70d8a7bd0a9975ff7eef4 Depends-On: I12a262c55b5f6b5cc7007865edf30f14269da537 Implements: blueprint idp-id-registration
* | Merge "Add project and domain params to network create"Jenkins2015-03-242-0/+107
|\ \
| * | Add project and domain params to network createColleen Murphy2015-03-192-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this patch, openstackclient has no way to specify to which project a network belongs upon creation. Instead, it uses the project ID that the user is authenticating with to fill the tenant_id column. This is a problem because an admin user is unable to specify a project for a non-admin network. To fix this and to improve feature parity with the neutron client, this patch adds project and domain parameters to the network create command and uses the given project name to look up the project ID. Neutron does not allow the project to be changed after creation, so no such parameter has been added to the neutron set command. Neutron calls the field 'tenant_id', but this change exposes the parameter as '--project' to support the newer terminology. If no project is specified, the client defaults to the previous behavior of using the auth project. Change-Id: Ia33ff7d599542c5b88baf2a69b063a23089a3cc4
* | | Add the ability to set and unset flavor propertiesMarek Aufart2015-03-191-1/+76
| |/ |/| | | | | | | | | | | | | | | | | Added flavor set and unset command which allow manage flavor properties called extra_specs. Command flavor show output was extended with these properties. Closes-Bug: 1434137 Change-Id: Ie469bade802de18aab9d58eda3fff46064008163
* | Merge "Move OSC auth plugins so they can be found"Jenkins2015-03-101-1/+2
|\ \
| * | Move OSC auth plugins so they can be foundDean Troyer2015-03-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The plugin detection at the top of openstackclient.api.auth did not detect the plugins at the bottom of that file because, surprise, they had not been declared yet so the entry points were ignored. Move both plugin subclasses into openstackclient.api.auth_plugin. Fix a problem with the password callback that was otherwise made worse with this change. Closes-Bug: 1428912 Change-Id: Idc3b72534071e0013c8922884a8bc14137509a0f
* | | Merge "Add identity v3 catalog show"Jenkins2015-03-101-0/+34
|\ \ \
| * | | Add identity v3 catalog showTerryHowe2015-03-091-0/+34
| | | | | | | | | | | | | | | | Change-Id: Ia6b6c25eded43b899b3aa026227ad2859f1c67dd
* | | | Merge "Add identity v3 catalog list"Jenkins2015-03-101-0/+84
|\ \ \ \ | |/ / /
| * | | Add identity v3 catalog listTerryHowe2015-03-071-0/+84
| |/ / | | | | | | | | | Change-Id: Id4c1371ca28b9fd884ec75061edca700fd69886c
* | | Merge "Fix identity v2 catalog list"Jenkins2015-03-081-11/+24
|\ \ \
| * | | Fix identity v2 catalog listTerryHowe2015-03-041-11/+24
| |/ / | | | | | | | | | | | | | | | | | | The v2 catalog list was only printing the last endpoint in the catalog. Change-Id: I5401a11eedb3be1513c86261329de50c8ad82720
* | | Merge "Rename --verify for server resize to avoid conflict"Jenkins2015-03-051-5/+5
|\ \ \ | |/ / |/| |
| * | Rename --verify for server resize to avoid conflictzhiyuan_cai2015-02-161-5/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Currently server resize command has a verify argument for user to confirm resize operation. But this argument is also registered by openstack client shell which is used to enable server certificate verification. So verify argument can not be correctly passed to server resize command. This patch renames --verify to --confirm (nova client has a resize-confirm command) to solve this problem. Change-Id: I751aa3df16c3b637b82944dd350afc5cbab62120 Closes-Bug: #1416542
* | Merge "Fix auth-required for help command"Jenkins2015-03-021-21/+40
|\ \
| * | Fix auth-required for help commandDean Troyer2015-02-271-21/+40
| |/ | | | | | | | | | | | | | | | | | | When we got picky with the auth arguments we broke using help without any auth config supplied. This rearranges things a bit to do the argument checking when the deferred auth request to Identity occurs so commands that do not need auth have a chance to live short but useful lives. Closes-Bug: #1399588 Change-Id: I8ceac491cf65e25eddb62ab2713f471fe686756d
* | change oslo namespace to avoid warningTerry Howe2015-02-251-1/+1
|/ | | | Change-Id: Ieff86f841623e1ce34b79c66bc5e8b1b239fa3e9
* Merge "Restrict groups and users from changing domains"Jenkins2015-02-101-46/+0
|\
| * Restrict groups and users from changing domainsSteve Martinelli2015-02-091-46/+0
| | | | | | | | | | | | | | | | | | | | Similar to projects, we shouldn't allow users and groups to change domains. The server side tosses up an error but osc should restrict that behaviour in the first place. Related-Bug: #1418384 Change-Id: I860291a5859c576021b18e35d1a12c32abfb6ca5