summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add option "--name" to command "openstack object create"Rajasi Kulkarni2016-09-262-0/+24
| | | | | | | | | | | Option "--name" can be used to set as the object name of the file to be uploaded in the container. Similar to option "--object-name" in command "swift upload". Added unit test case to ensure an exception is raised when using option "--name" for uploading multiple objects. Change-Id: Ied7827841f6ca1cf9d4b48e304cbe5d62eda38ab Closes-Bug: #1607972
* Add functional test for snapshot in volume v1Huanxuan Ao2016-09-252-3/+92
| | | | | | | Add functional test for snapshot commands in volume v1. Tests can always help to find or avoid bugs. Change-Id: Ieb0ab9c763d381a6343b4c4a8a5874f3e682f24f
* Merge "Add unit tests for backup commands in volume v1"Jenkins2016-09-232-0/+435
|\
| * Add unit tests for backup commands in volume v1Huanxuan Ao2016-09-232-0/+435
| | | | | | | | | | | | | | | | There was not any unit tests for backup commands in volume v1 so that sometimes some small bugs maybe ignored, this patch add unit tests for them. Change-Id: Ic67c1b80243f7b3d15dabd25e4e4a1b1517a8b59
* | Merge "Fix unset commands to pass normally when nothing specified"Jenkins2016-09-234-0/+571
|\ \ | |/
| * Fix unset commands to pass normally when nothing specifiedHuanxuan Ao2016-09-234-0/+571
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After I found this problem appear in "volume unset", I checked all the volume command and also found some same problems. This patch fix them all. The main reason of we ignored this problem before is there was not any tests for it. So I add tests for "nothing unset" for them all to test and aviod this problem. Also, I add unit tests for all snapshot commands in volume v1 by the way in this patch. We will need more tests to avoid some ignored problem. Change-Id: I46775f24643d715e168b30785b8b531c0431a55b Partial-bug: #1588588
* | Merge "Add --description to Neutron commands"Jenkins2016-09-233-1/+17
|\ \
| * | Add --description to Neutron commandsAnkur Gupta2016-09-233-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added simple option for floating ip description when creating a floating ip. Added option for create and set router as well. Partially Implements: blueprint neutron-client-descriptions Partially Implements: blueprint network-commands-options Change-Id: Ib8cd8af449e9ff33b980017b2527a6b196894a00
* | | Merge "Use assertGreater replace assertTrue"Jenkins2016-09-231-1/+1
|\ \ \
| * | | Use assertGreater replace assertTruezheng yin2016-09-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | we can use assertGreater(a,b) to replace assertTrue(a>b) Change-Id: Idd92a99bf5fd25785a47645d46bcfcad23ed870a
* | | | Merge "Introduce overwrite functionality in ``osc port set``"Jenkins2016-09-231-0/+44
|\ \ \ \
| * | | | Introduce overwrite functionality in ``osc port set``reedip2016-09-211-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The overwrite functionality allows user to overwrite either the binding-profile or the fixed-ips of a specific port. Change-Id: I8ec3d04eeaf28972ee545fcdda4d5f7bd9deb915 partially-implements: blueprint allow-overwrite-set-options
* | | | | Merge "Overwrite/Clear support for subnets"Jenkins2016-09-231-0/+33
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Overwrite/Clear support for subnetsReedip2016-09-211-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the overwrite/clear functionality for allocation-pool and host-routes in subnets. Change-Id: Idfa41173d0c054c5bfb4eda8c5f614928012555a implements: blueprint allow-overwrite-set-options
* | | | | Merge "Add "volume backup set" command in volume v2"Jenkins2016-09-221-0/+69
|\ \ \ \ \
| * | | | | Add "volume backup set" command in volume v2Huanxuan Ao2016-09-221-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "volume backup set" command in volume v2 (v2 only) to set backup name, description and state Change-Id: If17e8457db9a4704fb5bb9c75921ed82fd0069cf Closes-Bug: #1613261
* | | | | | Merge "Add filtering options to os network list command"Jenkins2016-09-221-0/+162
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | Add filtering options to os network list commandHa Van Tu2016-09-221-0/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the following filtering options: '--name', '--internal', '--share' and '--no-share', '--enable' and '--disable', '--project' and '--project-domain', '--status'. Change-Id: I7e9dd372ee572c6ee8cdba7fac3182f9dc0a137b Partially-Implements: blueprint network-commands-options Closes-Bug: #1578819
* | | | | | Merge "Implement "volume transfer request show/accept" command"Jenkins2016-09-226-6/+270
|\ \ \ \ \ \
| * | | | | | Implement "volume transfer request show/accept" commandHuanxuan Ao2016-09-226-6/+270
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "volume transfer request show" and "volume transfer accept" commands in volume v1 and v2. Also add the unit tests, docs, release note and functional tests Implements: bp cinder-command-support Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com> Change-Id: I5787fc486b3401307125caa316f517b9c96a95a5
* | | | | | Merge "Add network segment create, delete and set support"Jenkins2016-09-224-23/+392
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Add network segment create, delete and set supportRichard Theis2016-09-094-23/+392
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add network segment create, delete and set in support of routed networks. This patch set includes documentation, unit tests and functional tests for the following new commands: - "os network segment create" - "os network segment delete" - "os network segment set" This patch set also includes support for the name and description properties. These new commands are currently marked as beta commands. Change-Id: I86bc223c4adc5b5fe1b1ee5c9253e43ba52fb5ed Depends-On: Ib194125162057fccb4e951587c2fa4ec2e2f098c Partially-Implements: blueprint routed-networks
* | | | | | Merge "Fix "volume unset" command pass normally when nothing specified"Jenkins2016-09-221-0/+99
|\ \ \ \ \ \
| * | | | | | Fix "volume unset" command pass normally when nothing specifiedHuanxuan Ao2016-09-211-0/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When nothing specified in "volume unset" command, there will be an error message says that the "--properties" option is required, it is unusual behaviour, this patch fix it and also add unit test for it. Also, this patch add unit test for "volume show" command by the way. Change-Id: I5b5d587670acf0af4262b8521292455bf9f60fe5 Partial-bug: #1588588
* | | | | | | Merge "Refactor volume unit test with FakeVolume class in volume v1"Jenkins2016-09-222-136/+131
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Refactor volume unit test with FakeVolume class in volume v1Huanxuan Ao2016-09-212-136/+131
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FakeVolume class has been added in the fake.py in volume v1, this patch refactors the volume command unit tests with the FakeVolume class. Change-Id: Ic3c1a46d5bff9048d0095f5739ae9e5a34ca6b5b
* | | | | | Use correct router add/remove interface methodsrabi2016-09-211-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the correct openstacksdk method names. Change-Id: I07b463753eedf41f79c6e00e9224d0f7697a1bd3 Closes-Bug: #1625954
* | | | | | Merge "Remove unnecessary setUp"Jenkins2016-09-211-3/+0
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Remove unnecessary setUpzhufl2016-09-211-3/+0
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setUp will be automatically called around each testcase, so this is to remove setUp that doing nothing additional than super to keep code clean. Change-Id: I47be2be6f0e9785eb166f89d411582d6292babc1
* | | | | Merge "Fix openstack quota set/show --class not work"Jenkins2016-09-202-12/+78
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Fix openstack quota set/show --class not workqtang2016-09-142-12/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | identity_client should not be used for quota class operation. Update code to fix the qutoa class set/show issue. Change-Id: I71c59c08a0d5da29982497f589e1efe131997f21 Closes-Bug: #1609233
* | | | | Merge "Add --description to Create/Set Network"Jenkins2016-09-202-0/+13
|\ \ \ \ \
| * | | | | Add --description to Create/Set NetworkAnkur Gupta2016-09-192-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added simple option for network description to create and set network. Change-Id: I90ce4db4e365a56ecddb00d59f4c5aa2ebbd49a3 Partially-Implements: blueprint network-command-options
* | | | | | Merge "Add 'description' option to os subnet (pool) create/set cmd"Jenkins2016-09-203-0/+113
|\ \ \ \ \ \
| * | | | | | Add 'description' option to os subnet (pool) create/set cmdCao Xuan Hoang2016-09-203-0/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds '--description' option to the commands. Change-Id: Ifc2828670c3c48a87a0493d98686a5babf9b2ae7 Closes-Bug: #1614458 Closes-Bug: #1614823 Partially-Implements: blueprint network-commands-options
* | | | | | | Merge "Provide support to list ports by network"Jenkins2016-09-201-2/+9
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | |
| * | | | | | Provide support to list ports by networkReedip2016-09-191-2/+9
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new --network option provides a list of ports connected with the current network. Change-Id: I6a45184887b3e65f792391cb7e91f4ad85f29e03 Partial-Bug:#1562067 Partially-Implements: blueprint network-commands-options
* | | | | | Merge "router list if availability_zone ext not enabled"Jenkins2016-09-191-0/+36
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | router list if availability_zone ext not enabledUkesh Kumar Vasudevan2016-09-151-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when calling router list with --long OSC expects the availability_zone field in the response, even if this extension is not loaded: As per the document, http://developer.openstack.org/api-ref/networking/ v2/?expanded=list-routers-detail, The availability zone(s) for the router is available when router_availability_zone extension is enabled. Added testcase to test router list without availability zone Change-Id: Ic9abb06140eb310b797ade8b0463a876d8bea1b8 Closes-bug: #1622565
* | | | | | Merge "Add filtering options to os subnet pool list command"Jenkins2016-09-191-0/+138
|\ \ \ \ \ \
| * | | | | | Add filtering options to os subnet pool list commandCao Xuan Hoang2016-09-191-0/+138
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the following filtering options: '--share' and '--no-share', '--default' and '--no-default', '--project' and '--project-domain', '--name', '--address-scope' options to the command. Change-Id: I7ad9ed6842c6b3475ebf316fb5b954c7f5a7d7e3 Closes-Bug: #1613926 Partially-Implements: blueprint network-commands-options
* | | | | | Merge "Add filtering options to os subnet list command"Jenkins2016-09-191-1/+109
|\ \ \ \ \ \
| * | | | | | Add filtering options to os subnet list commandCao Xuan Hoang2016-09-191-1/+109
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the following filtering options: '--project' and '--project-domain', '--network', '--gateway', '--name', '--subnet-range' to the command. Change-Id: I575739486b9548492bd00f50130181b825534226 Partially-Implements: blueprint network-commands-options Closes-Bug: #1610883
* | | | | | Fix quota-update issue in LBaaSReedip2016-09-162-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently L7Policies cannot be updated( it was missing in implementation in neutronclient). The same has been taken care in the current patch. Also, currently quota doesnt support updating the members in an LBaaS pool. This patch temporarily removes it, till it is not confirmed that LBaaS v2 needs to support quotas for members or not. Change-Id: I25a54a57debb762a32a280ece8c081fc52365f0f Closes-Bug: #1624097
* | | | | | Fix Quota Support for HMsReedip2016-09-162-4/+4
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Health Monitors could not be updated using the `openstack quota update` CLI. This patch fixes the same. Change-Id: Ic5a4fa5dce5767e40139137131114834d564f89a Closes-Bug: #1624225
* | | | | Merge "Support mark volume as bootable in volume set"Jenkins2016-09-144-0/+76
|\ \ \ \ \
| * | | | | Support mark volume as bootable in volume setqtang2016-09-144-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add --bootable | --non-bootable option in volume set to mark or unmark volume as bootable. Change-Id: Ifa6c2dd1642202f55b6d50e3b8614d3513d488f6 Closes-Bug:#1535704
* | | | | | Merge "Support listing specified server's ports"Jenkins2016-09-141-0/+22
|\ \ \ \ \ \
| * | | | | | Support listing specified server's portsRui Chen2016-09-141-0/+22
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new option "--server" for "port list" command to list all of the ports that are attached on the specified server. Change-Id: I8b5550ea5068405b163711303465b704b5207410 Closes-Bug: #1614385
* | | | | | Merge "Multi REST API calls error handling of "volume unset" command"Jenkins2016-09-141-0/+27
|\ \ \ \ \ \