summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "keystone: fix catalog output when region is unset"Jenkins2016-05-252-4/+23
|\
| * keystone: fix catalog output when region is unsetJulien Danjou2016-05-252-4/+23
| | | | | | | | | | | | | | | | | | | | If no region is set in Keystone, null is deserialized as None and the region has None has value, which triggers a type error when building the output string. This patch fixes that. Change-Id: I7637dc2595655cf452f38308f99fe66ac782e16d
* | Merge "Refactor service unit tests"Jenkins2016-05-252-73/+101
|\ \
| * | Refactor service unit testsTang Chen2016-05-252-73/+101
| | | | | | | | | | | | | | | | | | | | | Add a FakeService class, and refactor service unit tests to use this class. Change-Id: I650ad83386a58205ebe42274d2bf2f508436bfa6
* | | Merge "Search by user defined ID for service providers"Jenkins2016-05-251-0/+1
|\ \ \ | |/ / |/| |
| * | Search by user defined ID for service providersSteve Martinelli2016-05-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IDs for service providers can be user defined (like, Bob). This causes issues with the usual get by ID method. Keystone server side has implemented changes to search by ID when listing, which should resolve the issue with minimal changes to the client side. Change-Id: Ic705806e4bc7bb24f946a1fce803a0a0a4d788c1 Closes-Bug: 1555830
* | | Merge "Refactor TestVolumeShow with FakeVolume"Jenkins2016-05-243-9/+54
|\ \ \
| * | | Refactor TestVolumeShow with FakeVolumeting.wang2016-05-173-9/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the meantime, add some static methods in FakeVolume for ease of use and add info() method with "property" decorator in FakeResource to allow those static methods to get fake information. Change-Id: I98ad520f32afd529fda77a4592f645130282537f Co-Authored-By: xiexs <xiexs@cn.fujitsu.com> Implements: blueprint improve-volume-unittest-framework
* | | | Merge "Search by user defined ID for identity providers"Jenkins2016-05-241-0/+1
|\ \ \ \ | |_|_|/ |/| | |
| * | | Search by user defined ID for identity providersSteve Martinelli2016-05-231-0/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IDs for service providers can be user defined (like, Bob). This causes issues with the usual get by ID method. Keystone server side has implemented changes to search by ID when listing, which should resolve the issue with minimal changes to the client side. Change-Id: Ic58df22b3445d3293a8e1c76c5da79badebf6528 Closes-Bug: 1479837
* | | Merge "Add network support for "quota set""Jenkins2016-05-232-0/+62
|\ \ \
| * | | Add network support for "quota set"Fang Zhen2016-05-192-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "quota set" command support compute and volume quotas previously. This patch add support network. Partially-implements: blueprint neutron-client-quota Closes-bug: 1489441 Change-Id: I9d297f52bc30614b3493f09ed15f8f1d3f8ff952
* | | | Merge "Add FakeType class and update volumetype test in VolumeV2"Jenkins2016-05-232-117/+158
|\ \ \ \
| * | | | Add FakeType class and update volumetype test in VolumeV2Huanxuan Ao2016-05-232-117/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds FakeType class and update unit tests for volume type with FakeType class Change-Id: I86ecc68dd1a1e919f3325cd9456974a0cfadbe61
* | | | | Merge "Add FakeSnapshot class and update snapshot test in VolumeV2"Jenkins2016-05-232-122/+196
|\ \ \ \ \ | |/ / / / | | | / / | |_|/ / |/| | |
| * | | Add FakeSnapshot class and update snapshot test in VolumeV2Huanxuan Ao2016-05-212-122/+196
| |/ / | | | | | | | | | | | | | | | | | | Add FakeSnapshot class and update unit tests for snapshot commands with the FakeSnapshot class. Change-Id: If039a48b9d5f8430cc3d041b8c7ec30af8ff0e03
* | | Fix image tests to use warlock resourcesDean Troyer2016-05-202-43/+21
|/ / | | | | | | | | | | | | | | | | | | We have been testing (incorrectly) Image v2 using our usual FakeResource objects, when the v2 API actually uses warlock schema modelled resources. Bring this to the tests (TestImageSet was already doing this) Change-Id: Ia6ed3a8e28a8961f770c241b49d47cce9ff328d3
* | Merge "Add support of setting snapshot state"Jenkins2016-05-181-2/+18
|\ \
| * | Add support of setting snapshot stateXi Yang2016-03-091-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | This patch is going to add the functionality of setting snapshot state which OSC currently lacks. Closes-Bug:#1535239 Change-Id: I2afd6567416e75ba0c70b73351cf1eb5394b3373
* | | Merge "Add ip version filter to subnet list"Jenkins2016-05-171-0/+16
|\ \ \
| * | | Add ip version filter to subnet listManjeet Singh Bhatia2016-05-161-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch will add argument ip-version to command subnet list Change-Id: If7458d4979e53aec7e2633c4f1779c3810f9a3f1 Closes-Bug: #1581179
* | | | Merge "Add FakeBackup class and updata backup unittest in volumeV2"Jenkins2016-05-172-113/+193
|\ \ \ \
| * | | | Add FakeBackup class and updata backup unittest in volumeV2Huanxuan Ao2016-05-172-113/+193
| |/ / / | | | | | | | | | | | | Change-Id: I39762bedaeaaf1894f48912ca1b7d59ab50f9f78
* | | | Merge "Enhance exception handling for "network delete" command"Jenkins2016-05-172-16/+152
|\ \ \ \
| * | | | Enhance exception handling for "network delete" commandTang Chen2016-04-142-16/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch rework "network delete" command following the rules in doc/source/command-errors.rst. In "network delete" command, there are multiple REST API calls, and we should make as many of them as possible. And log error for each one, give a better error message. Also return a non-zero exit code. Change-Id: I39ae087dd7bd08d049d513abfa6c5cab2bd13b2b Partial-Bug: #1556719
* | | | | Merge "Add VLAN Transparent option to ``osc network``"Jenkins2016-05-161-0/+6
|\ \ \ \ \
| * | | | | Add VLAN Transparent option to ``osc network``reedip2016-05-161-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | osc network set and network create now support --transparent-vlan|--no-transparent-vlan options to add/remove vlan transparency from the network. Change-Id: I845eb8f541cd32a4c4b28f929a63b205e7e31756 Closes-Bug: 1545537
* | | | | | Merge "Refactor TestRemoveProjectImage with FakeImage class"Jenkins2016-05-161-11/+9
|\ \ \ \ \ \
| * | | | | | Refactor TestRemoveProjectImage with FakeImage classting wang2016-05-161-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id40ea8a3cf59738fa254da0bca4ad6551565f5de Co-Authored-By: xiexs <xiexs@cn.fujitsu.com> Implements: blueprint improve-image-unittest-framework
* | | | | | | Merge "Added --no-route to the router set command"Jenkins2016-05-161-0/+36
|\ \ \ \ \ \ \
| * | | | | | | Added --no-route to the router set commandHideki Saito2016-05-161-0/+36
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deprecated --clear-routes Closes-Bug #1565034 Change-Id: I4a8975edc026aecd2a362fd1929c984cfab8ade6
* | | | | | | Merge "Refactor TestImageList with FakeImage class"Jenkins2016-05-161-18/+21
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | |
| * | | | | | Refactor TestImageList with FakeImage classting.wang2016-05-141-18/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia60f75f65bba4c25a0a87b570b081424f982efca Co-Authored-By: xiexs <xiexs@cn.fujitsu.com> Implements: blueprint improve-image-unittest-framework
* | | | | | | Merge "Refactor TestAddProjectToImage with FakeImage class"Jenkins2016-05-161-14/+18
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Refactor TestAddProjectToImage with FakeImage classxiexs2016-05-141-14/+18
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6733601f12389eb744dbf0be64b7c556356b4730 Co-Authored-By: ting wang <bx_wang@outlook.com> Implements: blueprint improve-image-unittest-framework
* | | | | | Merge "Fix network router type display"Jenkins2016-05-162-10/+10
|\ \ \ \ \ \
| * | | | | | Fix network router type displayRichard Theis2016-05-052-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The OpenStack SDK maps the network "router:external" field to "is_router_external". However, OSC was using the incorrect mapping, "router_external". This caused OSC to display router type as "Internal" for all networks. Change-Id: Ifcd1349ab7c5881baee751936d076bf6aa058852 Closes-Bug: #1572228
* | | | | | | Additional network protocol supportRichard Theis2016-05-142-12/+234
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following network protocol support to the "os security group rule create" command: - Add "--icmp-type" and "--icmp-code" options for Network v2 only. These options can be used to set the ICMP type and code for ICMP IP protocols. - Change the "--proto" option to "--protocol". Using the "--proto" option is still supported, but is no longer documented and may be deprecated in a future release. - Add the following Network v2 IP protocols to the "--protocol" option: "ah", "dccp", "egp", "esp", "gre", "igmp", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "udplite", "vrrp" and integer representations [0-255]. The "os security group rule list" command now supports displaying the ICMP type and code for security group rules with the ICMP IP protocols. Change-Id: Ic84bc92bc7aa5ac08f6ef91660eb6c125a200eb3 Closes-Bug: #1519512 Implements: blueprint neutron-client
* | | | | | Merge "Refactor TestVolumeList with FakeVolume"Jenkins2016-05-122-64/+63
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | |
| * | | | | Refactor TestVolumeList with FakeVolumeting.wang2016-05-112-64/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Idbe7ee1d9688ea5937852cce1a746016bf98fa74 Co-Authored-By: xiexs <xiexs@cn.fujitsu.com> Implements: blueprint improve-volume-unittest-framework
* | | | | | Merge "Add unit tests for "server show" command"Jenkins2016-05-111-0/+95
|\ \ \ \ \ \
| * | | | | | Add unit tests for "server show" commandTang Chen2016-05-111-0/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6eb0c4e7d5d3e677764b253e3324720a784a110b
* | | | | | | Merge "Use find_resource() instead of get() in _prep_server_detail()"Jenkins2016-05-111-7/+5
|\ \ \ \ \ \ \
| * | | | | | | Use find_resource() instead of get() in _prep_server_detail()Tang Chen2016-05-091-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is such a comment in test_server.py: # Call .get() to retrieve all of the server information # as findall(name=blah) and REST /details are not the same # and do not return flavor and image information. This is an out of date comment. There is no function named findall() in OSC now. So use find_resource() instead of get(), and remove this comment. Change-Id: I8d79afc5f341fb5caf771d905506b7f1c7a41ae8
* | | | | | | | Merge "Implement "address scope set" command"Jenkins2016-05-111-0/+67
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | |
| * | | | | | | Implement "address scope set" commandHuanxuan Ao2016-05-111-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch add a command that supports setting address scope properties. Change-Id: I9c4b5068a8abb986a9dc18b167b48b924d16ff42 Closes-Bug: #1566269
* | | | | | | | Merge "Implement "address scope show" command"Jenkins2016-05-111-0/+53
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Implement "address scope show" commandHuanxuan Ao2016-05-111-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch add a command that supports showing address scope details Change-Id: Ic0b41c1cab8c618904c7a6046d7493db5b74b430 Partial-Bug: #1566269
* | | | | | | | Merge "Implement "address scope list" command"Jenkins2016-05-112-0/+60
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Implement "address scope list" commandHuanxuan Ao2016-05-112-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch add a command that supports listing address scopes Change-Id: Id14757011560cacf28011ba51841a8e23b824f33 Partial-Bug: #1566269