summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* Improve a network testcaseYan Xing'an2016-10-201-1/+3
| | | | | | Fix a typo networ to network, and add assertEqual lines. Change-Id: I13c0c775c1d5f7a8f579d387cd9bea1bdd74aebc
* Merge "Add necessary info to Floating IP list"Jenkins2016-10-171-0/+4
|\
| * Add necessary info to Floating IP listReedip2016-10-161-0/+4
| | | | | | | | | | | | | | | | | | This patch adds the Network ID and Project ID for the listed floating IPs when Neutron is enabled for OpenstackClient. Change-Id: I823090f2e6d30acd72247d30956f48f4d7672a50 Closes-Bug:#1566090
* | Merge "Add security groups options to "port create/set/unset""Jenkins2016-10-171-0/+220
|\ \
| * | Add security groups options to "port create/set/unset"Nguyen Phuong An2016-10-121-0/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds '--security-group' and '--no-security-group' options to "port create", "port set" and "port unset" commands. Change-Id: Iff60d8f29227017b0a3966efca6cdecba69abcea Partial-Bug: #1612136 Partially-Implements: blueprint network-commands-options
* | | Add support make a router HAReedip2016-10-161-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently router set CLI does not provide the support make a router highly available. The following patch enables the same. Checking for setting a router as HA is left on the neutron server itself. Partially-Implements: blueprint network-commands-options Change-Id: I0d0548cf037a14e5ccb2f732918ee9d1f63f43b4 Closes-Bug:#1631492
* | | Merge "Add a new column and a new option the 'os port list' cmd"Jenkins2016-10-121-0/+41
|\ \ \ | |/ / |/| |
| * | Add a new column and a new option the 'os port list' cmdNam Nguyen Hoai2016-10-121-0/+41
| |/ | | | | | | | | | | | | | | | | | | | | | | This patch will add a new column called status to the result of the 'os port list' command and --long option to 'os port list' command. Co-Authored-By: Ha Van Tu <tuhv@vn.fujitsu.com> Change-Id: I4f942414e969687304b578ed7f003dd219c0f2f8 Closes-Bug: #1613995 Closes-Bug: #1614321 Partially-Implements: blueprint network-commands-options
* | Merge "Add network support for Network QoS policies"Jenkins2016-10-112-0/+530
|\ \
| * | Add network support for Network QoS policiesRodolfo Alonso Hernandez2016-10-112-0/+530
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Added following commands: - network qos policy create - network qos policy delete - network qos policy set - network qos policy show - network qos policy list Closes-Bug: 1609037 Depends-On: I33bafeca979410d329ae10a82772ccdb48c10daa Change-Id: I63a8f63702514ff5814481bb021e2aa9d5f3d4b1
* | Merge "Refactor image v1 unit tests with FakeImage class"Jenkins2016-10-112-95/+185
|\ \
| * | Refactor image v1 unit tests with FakeImage classHuanxuan Ao2016-10-092-95/+185
| |/ | | | | | | | | | | | | | | Add FakeImage class, and refactor the unit tests with it in image v1. Change-Id: I9024ca5eca5c604e7588c1d905562bf6838309f1 Implements: bp improve-image-unittest-framework
* | Fix router unset --route optionChoe, Cheng-Dae2016-10-101-2/+2
|/ | | | | | | | | Fix the "--route" option one the "os route unset" command. The option did not convert gateway to nexthop which results "Router does not contain route" error. Change-Id: Ia57bc7ea77ad7c6030535180a6ce42b4928c9e56 Closes-Bug: 1631471
* Refactor qos spec unit test in volume v1Huanxuan Ao2016-10-042-159/+124
| | | | | | | Refactor qos spec unit test with FakeQos class in volume v1. Change-Id: Ia76bf41a911457282b293dfaf0af311b1a9194ce
* Merge "Add --ha option to os router create command"Jenkins2016-09-301-0/+25
|\
| * Add --ha option to os router create commandNam Nguyen Hoai2016-10-011-0/+25
| | | | | | | | | | | | | | | | This patch added --ha option which the 'os router create' command was missed. Change-Id: I77635fb17af32beb0d8ed9aa080ef79285719fdc Closes-Bug: #1610161
* | Merge "Replace 'MagicMock' with 'Mock'"Jenkins2016-09-302-13/+13
|\ \ | |/ |/|
| * Replace 'MagicMock' with 'Mock'Nguyen Phuong An2016-09-272-13/+13
| | | | | | | | | | Change-Id: I35ebb2f0c83ec4300e26a72d9217ed0208f526eb Closes-Bug: #1475722
* | Merge "Support "--no" option in aggregate set"Jenkins2016-09-292-10/+89
|\ \
| * | Support "--no" option in aggregate setRui Chen2016-09-242-10/+89
| |/ | | | | | | | | | | | | | | | | | | | | Supporting "--no-property" option will apply user a convenience way to clean all properties of aggregate in a short command, and this kind of behavior is the recommended way to devref. The patch add "--no-property" option in "aggregate set" command, and update related test cases and devref document. Change-Id: I7614a23c0db05144562330dc600dbab7d003d5d8 Implements: blueprint support-no-property-in-aggregate
* | Merge "Remove beta label for network segment resource"Jenkins2016-09-292-79/+0
|\ \
| * | Remove beta label for network segment resourceRichard Theis2016-09-282-79/+0
| |/ | | | | | | | | | | | | | | With Ocata development opened, neutron network segments are no longer beta resources. Change-Id: I25be51c30df17c746136471b88840f64a03187b9 Partially-Implements: blueprint routed-networks
* | Merge "Add and modify options for "volume create" command"Jenkins2016-09-292-10/+183
|\ \
| * | Add and modify options for "volume create" commandHuanxuan Ao2016-09-282-10/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.Add mutually exclusive options into a mutually exclusive group. 2.Add "--source-replicated", "--consistency-group", "--hint" and "multi-attach" options 3.Make --size option to be optional under some cases Closes-Bug: #1568005 Closes-Bug: #1627913 Implements: bp implement-cinder-features Co-Authored-By: Roman Vasilets <rvasilets@mirantis.com> Change-Id: I2c4c3073195d33774e477f4d7f22e383b14b41dd
* | | Merge "Implement "consistency group list" command"Jenkins2016-09-292-0/+177
|\ \ \ | |/ /
| * | Implement "consistency group list" commandHuanxuan Ao2016-09-282-0/+177
| |/ | | | | | | | | | | | | | | | | | | Add "consistency group" object in volume v2 (v2 only) and implement "consistency group list" command Change-Id: Ifa90d97f4b223f9a5b00708cff07fa2c5e2635f0 Implements: bp cinder-command-support Partial-Bug: #1613964 Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
* | Merge "Update default nova api version to 2.1"Jenkins2016-09-281-1/+1
|\ \
| * | Update default nova api version to 2.1qtang2016-09-281-1/+1
| |/ | | | | | | | | | | | | | | | | | | Ref:https://review.openstack.org/#/c/311653/ We should use 2.1 as the default nova version now The API_MIN_VERSION of novaclient has already changed to 2.1 Change-Id: I9ff16cf052556e5d3756f81e02a8e76e8f315df5 Closes-bug: #1588171
* | 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
* 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 "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-224-6/+194
|\ \ \ \ \ \
| * | | | | | Implement "volume transfer request show/accept" commandHuanxuan Ao2016-09-224-6/+194
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-222-3/+323
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Add network segment create, delete and set supportRichard Theis2016-09-092-3/+323
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
|\ \ \ \ \ \ \ | |/ / / / / /