summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Switch to ksa Session"Jenkins2015-12-0214-37/+39
|\
| * Switch to ksa SessionDean Troyer2015-12-0214-37/+39
| | | | | | | | | | | | | | | | * Change session imports to keystoneauth1 * Change keystoneclient.exception imports to keystoneauth1 * Change exceptions raised from internal API from keystoneclient to openstack.common Change-Id: I046d89f561d6fe04baae53726f9749d2e7fe2056
* | Add class TestServerList to provide basic unit test for "server list" command.Tang Chen2015-12-021-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | This patch provide a class to test "server list" command. Only one simplest case in this patch. Some of the options in "server list" are complicated. And the server object contains lots of attributes need to be handled in specific ways. So other test cases will be added in other patches. Change-Id: Id9fdba8f149bd74187aa42516067dacebc6962b5 Implements: blueprint osc-unit-test-framework-improvement
* | Enable setup_servers_mock() to take attributes param.Tang Chen2015-12-021-1/+5
|/ | | | | | | | | | setup_servers_mock() is now able to set methods to the fake servers. But it cannot set attributes. This patch enable it to do so. This will be useful in "server list" test cases. Change-Id: Ic30d750ebe4650244707a368cdd5d622a8f1b8ed Implements: blueprint osc-unit-test-framework-improvement
* Merge "Introduce FakeVolume class"Jenkins2015-12-011-0/+84
|\
| * Introduce FakeVolume classxiexs2015-11-301-0/+84
| | | | | | | | | | | | | | | | | | | | Introduce FakeVolume to improve the current volume unittest framework with following two advantages: 1. generate more than one faking volumes 2. all faking volumes generated by random Change-Id: I9d56efa4fd4f03c82cd4e29622b6312566dbc453 Implements: blueprint improve-volume-unittest-framework
* | Merge "Add --limit option to "server list" command."Jenkins2015-12-011-1/+12
|\ \
| * | Add --limit option to "server list" command.Tang Chen2015-12-011-1/+12
| | | | | | | | | | | | | | | | | | This option will limit the total amount of items the command will list up. Change-Id: I46af0d479d795ebb6a74585d0f76629dd940b117
* | | Merge "Add unit testcases for "openstack flavor delete""Jenkins2015-12-011-0/+46
|\ \ \
| * | | Add unit testcases for "openstack flavor delete"xiexs2015-11-301-0/+46
| | |/ | |/| | | | | | | Change-Id: If23a71c678193e5c9c91300fddd17e79f674bf82
* | | Merge "Consistency of the --all argument for snapshots"Jenkins2015-12-013-3/+56
|\ \ \
| * | | Consistency of the --all argument for snapshotsJean-Philippe Evrard2015-11-303-3/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is inspired by the volume.py. It allow the user to use openstack snapshot list --all. Closes-Bug: #1517386 Change-Id: I72a53fcd0c5c5af539cd88b37e71b4331fa67473
* | | | Merge "Add project name/ID validation for "openstack quota show""Jenkins2015-12-013-3/+132
|\ \ \ \
| * | | | Add project name/ID validation for "openstack quota show"xiexs2015-11-293-3/+132
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | A validation is necessary to check the existence of project. This patch is similar to Ia2d8c96527820e25b074e6486d3f39c5ad7eae60. Change-Id: Id8895ba7a21ecad05942619a82a87c0dc68eae53
* | | | Merge "Add status column for "openstack image list""Jenkins2015-11-304-20/+36
|\ \ \ \
| * | | | Add status column for "openstack image list"xiexs2015-11-294-20/+36
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Actually, the status column is useful for the user. So, it`s better to output this info by default (or, user had to specify the extra option, i.e. --long). Change-Id: Id2a9f86f0de5310f8f5ff9a46bf1b7411094b519 Closes-Bug: #1519181
* | | | Merge "Add --marker option to "server list" command."Jenkins2015-11-301-1/+16
|\ \ \ \ | | |_|/ | |/| |
| * | | Add --marker option to "server list" command.Tang Chen2015-12-011-1/+16
| |/ / | | | | | | | | | | | | | | | | | | This option will give user a chance to display the server list from wherever they want. Change-Id: I92cca5e98cd473f1113a9106eb9d1f490694b1fe
* | | Merge "Add testcases for compute.v2.service"Jenkins2015-11-302-5/+109
|\ \ \ | |_|/ |/| |
| * | Add testcases for compute.v2.servicexiexs2015-12-012-5/+109
| |/ | | | | | | | | | | | | | | | | Add a set of testcases to test the classes of ListService and SetService in the compute.v2.service. And to be consistent with cinder term, use service_binary to represent the service binary. Change-Id: I9fe740f07c9ce3afdba7b7cca152d614170abb96
* | Merge "Use is_public to set access of volume type"Jenkins2015-11-302-5/+5
|\ \
| * | Use is_public to set access of volume typeXi Yang2015-11-262-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Currently the 'public' and 'private' keys does not work when creating volume type, 'is_public' should be used. Change-Id: If34a66053ea6c192882a1b9d8bbb1d3666be3f83 Closes-bug: 1520115
* | | Merge "Add "openstack server unshelve" into OSC"Jenkins2015-11-302-45/+90
|\ \ \ | |_|/ |/| |
| * | Add "openstack server unshelve" into OSCxiexs2015-11-282-45/+90
| | | | | | | | | | | | | | | | | | | | | | | | The unshelve operation is not supported by OSC, and this patch tries to add it. Change-Id: Ic60a4616cb63ad21c1a3c8e02611da8bad3a8bd0 Implements: blueprint introduce-shelve-into-osc
* | | Merge "Remove old fake flavor data."Jenkins2015-11-291-12/+0
|\ \ \
| * | | Remove old fake flavor data.Tang Chen2015-11-281-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new class FakeFlavor has been introduced to fake one or more flavors. So use it and remove the old fake flavor data. Change-Id: Ie3a33b36ae6e597c6a0b1d17ad13c73cf4b73bc9 Implements: blueprint improve-flavor-unit-test
* | | | Merge "Use FakeFlavor in TestServerCreate."Jenkins2015-11-291-11/+7
|\ \ \ \ | |/ / /
| * | | Use FakeFlavor in TestServerCreate.Tang Chen2015-11-281-11/+7
| | | | | | | | | | | | | | | | | | | | Change-Id: Ib82f845258b1ad78cbc8b23d28fa42e7ccc8097a Implements: blueprint improve-flavor-unit-test
* | | | Merge "User FakeFlavor in TestServerResize."Jenkins2015-11-291-8/+5
|\ \ \ \ | |/ / /
| * | | User FakeFlavor in TestServerResize.Tang Chen2015-11-281-8/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: Iac9b4583befaa4eb79ec59c39b97c613884ef2f7 Implements: blueprint improve-flavor-unit-test
* | | | Merge "Use FakeFlavor in TestFlavorUnset."Jenkins2015-11-291-7/+4
|\ \ \ \ | |/ / /
| * | | Use FakeFlavor in TestFlavorUnset.Tang Chen2015-11-281-7/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: Ifbd360db39d380efd9632300367b13283ac75f54 Implements: blueprint improve-flavor-unit-test
* | | | Merge "Use FakeFlavor in TestFlavorSet."Jenkins2015-11-291-5/+4
|\ \ \ \ | |/ / /
| * | | Use FakeFlavor in TestFlavorSet.Tang Chen2015-11-281-5/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: I335298b07afb3f969c76748527dda06cb5393fa8 Implements: blueprint improve-flavor-unit-test
* | | | Merge "Use FakeFlavor in TestFlavorList."Jenkins2015-11-291-11/+8
|\ \ \ \ | |/ / /
| * | | Use FakeFlavor in TestFlavorList.Tang Chen2015-11-281-11/+8
| | | | | | | | | | | | | | | | | | | | Change-Id: I3595877bed41bc476934ca924f1f9c8c0ad79176 Implements: blueprint improve-flavor-unit-test
* | | | Merge "Introduce class FakeFlavor to fake one or more flavors."Jenkins2015-11-291-0/+64
|\ \ \ \ | |/ / /
| * | | Introduce class FakeFlavor to fake one or more flavors.Tang Chen2015-11-281-0/+64
| | | | | | | | | | | | | | | | | | | | Change-Id: I1b20e7d50e478ce8114ca08aa455b7acad4ea7f5 Implements: blueprint improve-flavor-unit-test
* | | | Merge "Fix a bug of "openstack volume delete""Jenkins2015-11-271-4/+4
|\ \ \ \ | |/ / / |/| | |
| * | | Fix a bug of "openstack volume delete"xiexs2015-11-271-4/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | While multi volumes specified for the osc "openstack volume delete", only the last volume is deleted. This patch tries to fix it. Change-Id: I171b2869f85b29c88fda16eaf5bf163c55795df0 Closes-Bug: #1520541
* | | Refactor: Move FakeFlavorResource to compute_fakes.py.Tang Chen2015-11-282-19/+24
| | | | | | | | | | | | | | | | | | | | | Just like FakeServer and FakeResource, FakeFlavorResource should be in compute_fakes.py. Change-Id: I8315256fb90377605fa2190e24c9674f6aaf6efd Implements: blueprint improve-flavor-unit-test
* | | Refactor: Abstract datalist out in TestFlavorList to avoid redundant code.Tang Chen2015-11-281-53/+20
| | | | | | | | | | | | | | | | | | | | | | | | datalist has been set in each test case in TestFlavorList, which is not necessary. This patch abstract it out and remove all redundant code. Change-Id: I6f735f7d9fa29a8ab435adaef17ca559df1fdcee Implements: blueprint improve-flavor-unit-test
* | | Refactor: Abstract columns out in TestFlavorList to avoid redundant code.Tang Chen2015-11-281-53/+20
|/ / | | | | | | | | | | | | | | The columns has been set in each test case of TestFlavorList, which is not necessary. This patch abstract it out and remove all redundant code. Change-Id: Ideb2872f073755ac251bd603fd906410ea86c4ef Implements: blueprint improve-flavor-unit-tes
* | Merge "Add unit tests for "server stop" command."Jenkins2015-11-261-0/+20
|\ \
| * | Add unit tests for "server stop" command.Tang Chen2015-11-271-0/+20
| | | | | | | | | | | | | | | Change-Id: Idfa82f7f3aee3824aedf8b551be7942659530457 Implements: blueprint osc-unit-test-framework-improvement
* | | Merge "Add unit tests for "server start" command."Jenkins2015-11-261-0/+20
|\ \ \ | |/ /
| * | Add unit tests for "server start" command.Tang Chen2015-11-271-0/+20
| | | | | | | | | | | | | | | Change-Id: I19060419a17b8e081e8f51c08959f24b84e7e570 Implements: blueprint osc-unit-test-framework-improvement
* | | Merge "Add unit tests for "server resume" command."Jenkins2015-11-261-0/+20
|\ \ \ | |/ /
| * | Add unit tests for "server resume" command.Tang Chen2015-11-271-0/+20
| | | | | | | | | | | | | | | Change-Id: I8961e72b6901a52612cf62f52c02b6c2ff3dcd94 Implements: blueprint osc-unit-test-framework-improvement
* | | Merge "Add unit tests for "server suspend" command."Jenkins2015-11-261-0/+20
|\ \ \ | |/ /