Commit graph

928 commits

Author SHA1 Message Date
Jenkins
0d8dab6288 Merge "keystone: fix catalog output when region is unset" 2016-05-25 18:56:14 +00:00
Jenkins
646f702958 Merge "Refactor service unit tests" 2016-05-25 15:19:58 +00:00
Julien Danjou
e44bb009d3 keystone: fix catalog output when region is unset
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
2016-05-25 16:13:48 +02:00
Tang Chen
8ce5d90136 Refactor service unit tests
Add a FakeService class, and refactor service unit tests
to use this class.

Change-Id: I650ad83386a58205ebe42274d2bf2f508436bfa6
2016-05-25 13:06:39 +08:00
Jenkins
f97fa2e6d2 Merge "Search by user defined ID for service providers" 2016-05-25 02:44:56 +00:00
Jenkins
2402dcfc35 Merge "Refactor TestVolumeShow with FakeVolume" 2016-05-24 23:30:56 +00:00
Jenkins
478b776937 Merge "Search by user defined ID for identity providers" 2016-05-24 23:30:22 +00:00
Steve Martinelli
58094bff80 Search by user defined ID for service providers
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
2016-05-24 18:45:58 +00:00
Jenkins
59f8e32674 Merge "Add network support for "quota set"" 2016-05-23 20:13:35 +00:00
Jenkins
26865846bf Merge "Add FakeType class and update volumetype test in VolumeV2" 2016-05-23 19:52:34 +00:00
Jenkins
02bca14a4b Merge "Add FakeSnapshot class and update snapshot test in VolumeV2" 2016-05-23 19:52:03 +00:00
Steve Martinelli
21530d026e Search by user defined ID for identity providers
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
2016-05-23 15:18:11 -04:00
Huanxuan Ao
5f69894753 Add FakeType class and update volumetype test in VolumeV2
This patch adds FakeType class and update unit tests for
volume type with FakeType class

Change-Id: I86ecc68dd1a1e919f3325cd9456974a0cfadbe61
2016-05-23 14:16:39 +08:00
Huanxuan Ao
dc71d16529 Add FakeSnapshot class and update snapshot test in VolumeV2
Add FakeSnapshot class and update unit tests for snapshot
commands with the FakeSnapshot class.

Change-Id: If039a48b9d5f8430cc3d041b8c7ec30af8ff0e03
2016-05-21 17:34:04 +08:00
Dean Troyer
c3d4810850 Fix image tests to use warlock resources
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
2016-05-20 07:07:16 -05:00
Fang Zhen
b92cf77fb5 Add network support for "quota set"
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
2016-05-19 20:42:59 +08:00
Jenkins
7a0845ec11 Merge "Add support of setting snapshot state" 2016-05-18 16:49:07 +00:00
Jenkins
c655569628 Merge "Add ip version filter to subnet list" 2016-05-17 22:28:06 +00:00
Jenkins
dcc8256982 Merge "Add FakeBackup class and updata backup unittest in volumeV2" 2016-05-17 17:20:07 +00:00
ting.wang
0fa2e8df92 Refactor TestVolumeShow with FakeVolume
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
2016-05-17 20:14:18 +08:00
Jenkins
5dfedd6445 Merge "Enhance exception handling for "network delete" command" 2016-05-17 03:04:42 +00:00
Huanxuan Ao
4956c354b2 Add FakeBackup class and updata backup unittest in volumeV2
Change-Id: I39762bedaeaaf1894f48912ca1b7d59ab50f9f78
2016-05-17 09:58:05 +08:00
Jenkins
3d12ae8e03 Merge "Add VLAN Transparent option to `osc network`" 2016-05-16 22:57:25 +00:00
Jenkins
f0e64eb55a Merge "Refactor TestRemoveProjectImage with FakeImage class" 2016-05-16 22:51:21 +00:00
Jenkins
11be59db8c Merge "Added --no-route to the router set command" 2016-05-16 22:51:15 +00:00
Jenkins
22e738c751 Merge "Refactor TestImageList with FakeImage class" 2016-05-16 22:46:09 +00:00
Jenkins
91fcca271e Merge "Refactor TestAddProjectToImage with FakeImage class" 2016-05-16 22:46:02 +00:00
Jenkins
c471a97aef Merge "Fix network router type display" 2016-05-16 22:39:53 +00:00
Manjeet Singh Bhatia
668bc028d1 Add ip version filter to subnet list
This patch will add argument ip-version to command
subnet list

Change-Id: If7458d4979e53aec7e2633c4f1779c3810f9a3f1
Closes-Bug: #1581179
2016-05-16 22:37:14 +00:00
reedip
00c149a28f Add VLAN Transparent option to `osc network`
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
2016-05-16 08:32:07 +00:00
ting wang
69be96ae72 Refactor TestRemoveProjectImage with FakeImage class
Change-Id: Id40ea8a3cf59738fa254da0bca4ad6551565f5de
Co-Authored-By: xiexs <xiexs@cn.fujitsu.com>
Implements: blueprint improve-image-unittest-framework
2016-05-16 13:02:44 +08:00
Hideki Saito
bc93ebfe5c Added --no-route to the router set command
Deprecated --clear-routes

Closes-Bug #1565034

Change-Id: I4a8975edc026aecd2a362fd1929c984cfab8ade6
2016-05-16 12:02:00 +09:00
Richard Theis
fd5fd924d1 Additional network protocol support
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
2016-05-14 07:54:41 -05:00
ting.wang
2724eaac5d Refactor TestImageList with FakeImage class
Change-Id: Ia60f75f65bba4c25a0a87b570b081424f982efca
Co-Authored-By: xiexs <xiexs@cn.fujitsu.com>
Implements: blueprint improve-image-unittest-framework
2016-05-14 14:20:56 +08:00
xiexs
2b4c543cdd Refactor TestAddProjectToImage with FakeImage class
Change-Id: I6733601f12389eb744dbf0be64b7c556356b4730
Co-Authored-By: ting wang <bx_wang@outlook.com>
Implements: blueprint improve-image-unittest-framework
2016-05-14 14:17:01 +08:00
Jenkins
e1c53250bc Merge "Refactor TestVolumeList with FakeVolume" 2016-05-12 12:23:34 +00:00
Jenkins
56680c83fe Merge "Add unit tests for "server show" command" 2016-05-11 13:26:55 +00:00
Jenkins
b60ff95edf Merge "Use find_resource() instead of get() in _prep_server_detail()" 2016-05-11 13:26:30 +00:00
ting.wang
553e154960 Refactor TestVolumeList with FakeVolume
Change-Id: Idbe7ee1d9688ea5937852cce1a746016bf98fa74
Co-Authored-By: xiexs <xiexs@cn.fujitsu.com>
Implements: blueprint improve-volume-unittest-framework
2016-05-11 17:25:48 +08:00
Jenkins
fe02162bd3 Merge "Implement "address scope set" command" 2016-05-11 07:59:04 +00:00
Jenkins
94de0d3ebd Merge "Implement "address scope show" command" 2016-05-11 07:11:43 +00:00
Jenkins
0acb743611 Merge "Implement "address scope list" command" 2016-05-11 07:11:36 +00:00
Jenkins
b503267616 Merge "Implement "address scope delete" command" 2016-05-11 06:53:56 +00:00
Jenkins
2aa99b4d50 Merge "Implement "address scope create" command" 2016-05-11 06:42:25 +00:00
Huanxuan Ao
cc78d48a28 Implement "address scope set" command
This patch add a command that supports
setting address scope properties.

Change-Id: I9c4b5068a8abb986a9dc18b167b48b924d16ff42
Closes-Bug: #1566269
2016-05-11 10:08:47 +08:00
Huanxuan Ao
32da111c17 Implement "address scope show" command
This patch add a command that supports
showing address scope details

Change-Id: Ic0b41c1cab8c618904c7a6046d7493db5b74b430
Partial-Bug: #1566269
2016-05-11 10:08:47 +08:00
Huanxuan Ao
aa5ff67e3f Implement "address scope list" command
This patch add a command that supports
listing address scopes

Change-Id: Id14757011560cacf28011ba51841a8e23b824f33
Partial-Bug: #1566269
2016-05-11 10:08:47 +08:00
Huanxuan Ao
4cb5e0bc79 Implement "address scope delete" command
This patch add a command that supports
deleting a address scope

Change-Id: Ie028058c759b9511d105a530d7e89b841865e7d6
Partial-Bug: #1566269
2016-05-11 10:08:47 +08:00
Huanxuan Ao
98bee08e0f Implement "address scope create" command
This patch supports creating a new address scope,
with --ip-version,--project,--project-domain
and --share or --no-share options.

Change-Id: I37c73391a41ac239dd72d55dbc0adbebd7701f4a
Partial-Bug: #1566269
2016-05-11 10:08:35 +08:00
Tang Chen
06780dd880 Add unit tests for "server show" command
Change-Id: I6eb0c4e7d5d3e677764b253e3324720a784a110b
2016-05-11 09:33:51 +08:00