2734 Commits

Author SHA1 Message Date
Jenkins
17bc850440 Merge "Add functional tests for server group in ComputeV2" 2016-05-23 07:48:30 +00: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
4d44a3c13f Add some functional tests for commands in VolumeV2
VolumeV2 lacked functional tests for qos specs
and volume type commands, so I add them.
These tests are quite similar to those in v1,just
three difference:
1.Importing functional.common.test instead of
functional.tests.volume.v1.common
2.Adding test_volume_type_set_unset_project()
in test_volume_type.py.
3.Adding a test for "qos unset" command in
test_qos.py

Change-Id: Ic50e8c49ef01ac967c01ec41fb3f04cd51fea9e4
2016-05-23 12:19:49 +08:00
Jenkins
f44416b750 Merge "Fix image tests to use warlock resources" 2016-05-21 23:04:50 +00:00
OpenStack Proposal Bot
6c13212725 Updated from global requirements
Change-Id: I16dd97fa5cb3d7e008c9d3c357fe31f7c081c492
2016-05-21 15:52:23 +00: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
Huanxuan Ao
e10a5979bc Add functional tests for server group in ComputeV2
Change-Id: I43a6ce3a6d976f3d1bd68c0483c929977b660f0d
2016-05-21 16:06:17 +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
Jenkins
a68576b34b Merge "Avoid TypeError on message object additions" 2016-05-20 06:37:03 +00:00
Madhu Mohan Nelemane
a4d4e81c88 Avoid TypeError on message object additions
Change-Id: I634c1e158e93eeb55ab17fef8a0715b6678dffec
Closes-Bug: #1575787
2016-05-19 18:07:53 -07:00
Jenkins
be081ebb44 Merge "Fix i18n support for help and log.warning in image" 2016-05-19 20:19:36 +00: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
Xiaoyang Zhang
6c8e0dc1df Fix i18n support for help and log.warning in image
Change-Id: I6e2764aaf4b8c0efa78872646a7b3482ba044dc8
2016-05-19 20:34:46 +08:00
Jenkins
35ea7a9baa Merge "remove #noqa from i18n imports" 2016-05-19 09:08:57 +00:00
Jenkins
795656184e Merge "Pep8 environment to run on delta code only" 2016-05-18 20:39:42 +00:00
Jenkins
7a0845ec11 Merge "Add support of setting snapshot state" 2016-05-18 16:49:07 +00:00
OpenStack Proposal Bot
78c20f6f38 Updated from global requirements
Change-Id: Ib27d5b23d33a72da7b9eed8f1861de70ae586c85
2016-05-18 02:40:12 +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
cb068d8c68 Merge "Fix i18n support for help and error msg in network" 2016-05-16 23:33:23 +00:00
Jenkins
948c76b0a4 Merge "Support X.latest format for OS_COMPUTE_API_VERSION" 2016-05-16 22:57:28 +00: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
venkatamahesh
093f0ff003 Added CONTRIBUTING.rst file
Change-Id: I7edb273d36ba3536d5538029377e7b7535cfd115
2016-05-16 17:42:48 +05:30
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
Tang Chen
40f51c32ac Fix i18n support for help and error msg in network
Change-Id: Iab0dc489226601ac4ff123bb758f84ff16989395
2016-05-16 16:15:46 +08:00
Jenkins
6ab9e56310 Merge "Additional network protocol support" 2016-05-16 07:29:25 +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
OpenStack Proposal Bot
7a252128f9 Updated from global requirements
Change-Id: I61b3e84cbca369a5581aff38d65bb51af96e8baa
2016-05-15 02:57:05 +00:00
Adriano Fialho
2629fda947 Changed the nomenclature of credentials command
Removed the "s" of the "credentials command" in the documentation and renaming the file to credential.rst (instead of credentials)

Change-Id: If1df15b9a630a5452e05d14fb45e9ebb124583a7
2016-05-14 13:22:13 -03: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
Steve Martinelli
ebcbd6ba71 remove #noqa from i18n imports
hacking checks no longer fail on `import _`

Change-Id: Idd60f0a0e71e5081691eacb39e5091ab08fcce6d
2016-05-13 13:14:02 -07:00
Jenkins
e1c53250bc Merge "Refactor TestVolumeList with FakeVolume" 2016-05-12 12:23:34 +00:00
Sheel Rana
095edbc367 Pep8 environment to run on delta code only
Currently tox -epep8 will run flake8 on whole code.
To make this fast, flake8 support is added for only
updated(delta) code.

Same can be run by "tox -efast8".

Change-Id: I9c55fed32ae3060c21ec278398e9e07fb4a0fe13
Implements: BP tox-pep8-diff-part-only
2016-05-12 00:55:10 +05:30
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
8632c93d24 Merge "Fix functional test for floatingip add/remove in ComputeV2" 2016-05-11 09:04:20 +00:00
Jenkins
fe02162bd3 Merge "Implement "address scope set" command" 2016-05-11 07:59:04 +00:00