summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Rename endpoint type to interface"Jenkins2015-07-173-10/+10
|\
| * Rename endpoint type to interfaceTerryHowe2015-07-153-10/+10
| | | | | | | | | | Change-Id: I4e21d09bc747e8210f4f79a1d6c4c7ccf2f25d1c Closes-Bug: #1454392
* | Merge "only return endpoints that have url"Jenkins2015-07-171-0/+40
|\ \
| * | only return endpoints that have urlGuojian Shao2015-07-161-0/+40
| | | | | | | | | | | | | | | Change-Id: I97a502252c0c377fce573e92b83c0122812f6f80 Closes-Bug: #1474656
* | | add --project-domain option for user v3Guojian Shao2015-07-161-0/+62
|/ / | | | | | | | | | | | | | | | | user v3 create/set only support --project option, we need --project-domain to prevent collisions between project names exist. Change-Id: I2d62e5b9bb6df4c5c5a9542514faf2e4365bb18b Closes-Bug: #1475357
* | Merge "Remove the --dhcp option to network list"Jenkins2015-07-141-48/+0
|\ \
| * | Remove the --dhcp option to network listTerryHowe2015-07-081-48/+0
| |/ | | | | | | | | | | | | | | | | | | The --dhcp option lists agents, not networks. This does not make a lot of sense. Another command should be created to list agents. BackwardsIncompatibleImpact Closes-Bug: #1472613 Change-Id: I5ecfe3fc046a07eb64a4dabd41dbd99de7c2215f
* | temporarily skip help testsSteve Martinelli2015-07-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | We're trying to change cliff for the better, by improving the UX of the help command. But cliff tests against the tip of OSC. Temporarily skip the tests that are failing and then update them once the fix for cliff has been merged. The patch in question: https://review.openstack.org/#/c/201258/ Change-Id: Ie1e7ddd66477ddf4a3bafedad12934e900ace48f
* | Merge "Remove testing of cliff command line options"Jenkins2015-07-122-31/+4
|\ \
| * | Remove testing of cliff command line optionsTerryHowe2015-07-082-31/+4
| |/ | | | | | | | | | | These options are part of cliff, let cliff test them. Change-Id: I802c25ba80048607eef6909a21709dcda63231cc
* | Merge "Fix address parsing for server ssh command"Jenkins2015-07-121-0/+54
|\ \
| * | Fix address parsing for server ssh commandTerryHowe2015-07-081-0/+54
| |/ | | | | | | | | | | | | | | | | There seem to be three formats for the server address field and the old code only supported the old format. This code adds a parser for all three formats. Change-Id: I7f12d2c69ff70556907ea6f31a0e0bba91b68b49 Closes-Bug: #1469843
* | Fix wrong mock method calllin-hua-cheng2015-07-113-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no assert_called() method in mock, replace it with assert_called_with() method. The old method used to work with mock 1.0.1 because it was a noop in magicmock. Needs https://review.openstack.org/#/c/200583 to pass the requirements check. https://review.openstack.org/#/c/193935/ changed the OS_* vars we source by forcing v2password as the auth method. change our identity v3 test setup by setting v3password Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Closes-Bug: 1473454 Depends-on: I0cfab6d13e5d9e744cb302c86a2c21269923e75d Change-Id: Id22765c7e044797e03d19ad1b103fadec2726aa2
* | openstack catalog list always returns publicURL for internalURL and adminURLMartin Schuppert2015-07-081-8/+10
|/ | | | | | | | With this change 'openstack catalog list' returns the correspoding URL for publicURL, internalURL and adminURL in _format_endpoints . Change-Id: I5d946c9d70a2d3c22a7cc77067fec8e2e9aa4940 Closes-Bug: 1472629
* Merge "Add --os-endpoint-type cli optional argument"Jenkins2015-07-034-0/+31
|\
| * Add --os-endpoint-type cli optional argumentRoxana Gherle2015-07-024-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | User should be able to specify the endpoint type through a CLI optional argument/ENV variable setting. We will name this new optional argument: --os-endpoint-type (Env: OS_ENDPOINT_TYPE) and based on the value given, the service API will use that specific endpoint type. Possible values: public, admin, internal. DocImpact Closes-Bug: #1454392 Change-Id: Ife3d4e46b44c0ddcd712b1130e27e362545a9a29
* | Merge "Move update code from image create command"Jenkins2015-07-021-67/+65
|\ \
| * | Move update code from image create commandMarek Aufart2015-07-021-67/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Openstack image create command updates existing image (with same name) by default. That might be confusing since glance allows create multiple images with same names and may lead to unwanted image update by image create command. Image update code was moved from image create action to image set action. BackwardsIncompatibleImpact Change-Id: I1686c6544c366262efab9e33c066d5f8a667f707 Closes-Bug: #1461817
* | | Merge "Add functional tests for image set"Jenkins2015-07-011-2/+4
|\ \ \
| * | | Add functional tests for image setTerryHowe2015-06-161-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch includes functional tests for image set and it includes a change to use the OSC utils.format_dict method to format the properties. This will give a more user friendly format to the image commands and it gives a more consistent testable format to the output. Instead of: {u'a': u'b', u'c': u'd'} The user will see: a=b, c=d Change-Id: Ib396316586ffc5dbab231064d5b6dc9425507934
* | | | Merge "Add tests for 'list' and 'show' for volume qos v1"Jenkins2015-07-012-0/+111
|\ \ \ \
| * | | | Add tests for 'list' and 'show' for volume qos v1David Moreau Simard2015-06-292-0/+111
| | | | | | | | | | | | | | | | | | | | Change-Id: I1b4d998f3ec1bd5cb8dd4c9e0d04fd3b3049e9d7
* | | | | Merge "Add support for volume API v2 QoS commands"Jenkins2015-06-302-0/+489
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Add support for volume API v2 QoS commandsDavid Moreau Simard2015-06-292-0/+489
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds the following commands: volume qos associate volume qos create volume qos delete volume qos disassociate volume qos list volume qos set volume qos show volume qos unset Change-Id: If3c679557ac9abb0dfc75d290b96fb9c8d46c7b7 Partial-Bug: #1467967
* | | | | Alphabetize tests for v1 qos_specsDavid Moreau Simard2015-06-291-74/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a follow up of sorting the methods for volume v1 qos_specs. Change-Id: I428167297e7110e586d139bf38fd22d321836e80
* | | | | Merge "Add support for volume API v1 QoS commands"Jenkins2015-06-272-0/+388
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Add support for volume API v1 QoS commandsDavid Moreau Simard2015-06-262-0/+388
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds the following commands: volume qos associate volume qos create volume qos delete volume qos disassociate volume qos list volume qos set volume qos show volume qos unset Change-Id: I72ea1b9a4d0bd0e35eda03071ea438b75439fce9 Partial-Bug: #1467967
* | | | fix confused domain argument for network create v2Guojian Shao2015-06-261-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we have used domain scope arguments --project-domain, --user-domain and --group-domain in identity commands, for example, role add v3, to prevent resources conflict from same resource name existence. To keep with the style of identity commands, it's better to rename --domain to --project-domain. Closes-Bug: #1468988 Change-Id: Ic6ccb895cf9be4a3d5f0001525e3b80cd340da8b
* | | | Merge "Enables retrieval of project's parents and subtree"Jenkins2015-06-252-0/+169
|\ \ \ \
| * | | | Enables retrieval of project's parents and subtreeRodrigo Duarte Sousa2015-06-092-0/+169
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the possibility to retrieve a project and list its parents and subtree in the hierarchy. Co-Authored-By: Rodrigo Duarte <rodrigods@lsd.ufcg.edu.br> Co-Authored-By: Samuel de Medeiros Queiroz <samuel@lsd.ufcg.edu.br> Implements: bp hierarchical-multitenancy Change-Id: I874f6faffc8a2db9d99f12cbe0a69c0a30c0d9df
* | | | Add support to inherited project role grant callsSamuel de Medeiros Queiroz2015-06-221-0/+46
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Once inherited project role grant calls are implemented on python-keystoneclient, python-openstackclient also should support such calls. This patch add such support as well as its related tests. Co-Authored-By: Raildo Mascena <raildo@lsd.ufcg.edu.br> Change-Id: Id72670be8640e5c6e2490a6ef849e9ec3493b1a9 Implements: blueprint hierarchical-multitenancy
* | | Merge "Add support for volume backup v2 command"Jenkins2015-06-182-1/+153
|\ \ \
| * | | Add support for volume backup v2 commandAmey Bhide2015-06-042-1/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | openstack backup create openstack backup list openstack backup restore Implements: blueprint volume-v2 Change-Id: I77965730065dd44f256c46bcc43c1e6a03b63145
* | | | Merge "Add support for volume snapshot v2 command"1.5.0Jenkins2015-06-162-4/+194
|\ \ \ \ | |_|/ / |/| | |
| * | | Add support for volume snapshot v2 commandAmey Bhide2015-06-042-4/+194
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | openstack snapshot create openstack snapshot set openstack snapshot unset openstack snapshot list Implements: blueprint volume-v2 Change-Id: Ia1d9f4426baa0099281a9931f4eec99ebe1969b1
* | | 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