1863 Commits

Author SHA1 Message Date
Tang Chen
ee6855858f Refactor TestCreateNetwork: Setup identity client in setUp() in TestCreateNetworkIdentityV2
This patch setup the v2 identity client only once in setUp() for TestCreateNetworkIdentityV2.

Change-Id: I9d7a83e5e67e810a5c5f760fb9c40ce450f7dc99
Implements: blueprint osc-network-unit-test-refactor
Related-to: blueprint neutron-client
2015-12-05 10:52:05 +08:00
Tang Chen
16d07e7101 Refactor TestCreateNetwork: Setup identity client in setUp() in TestCreateNetworkIdentityV3
This patch setup the v3 identity client only once in setUp() for TestCreateNetworkIdentityV3.

Change-Id: Ia20db01af85f868a88bf905174b8556979b0a39a
Implements: blueprint osc-network-unit-test-refactor
Related-to: blueprint neutron-client
2015-12-05 10:52:05 +08:00
Tang Chen
3cc38d2844 Refactor TestCreateNetwork: Setup cmd in setUp() in TestCreateNetworkIdentityV2
This patch setup the tested command only once in setUp() for TestCreateNetworkIdentityV2.

Change-Id: I689980674c9500c0c040d27164ec61f5fcf40ee5
Implements: blueprint osc-network-unit-test-refactor
Related-to: blueprint neutron-client
2015-12-05 10:52:05 +08:00
Tang Chen
af6269d310 Refactor TestCreateNetwork: Setup cmd in setUp() in TestCreateNetworkIdentityV3
This patch setup the tested command only once in setUp() for TestCreateNetworkIdentityV3.

Change-Id: Iff5119fa24c9cc0caa72ff0e8f63e8dcac72470a
Implements: blueprint osc-network-unit-test-refactor
Related-to: blueprint neutron-client
2015-12-05 10:52:05 +08:00
Tang Chen
038334ff98 Refactor TestCreateNetwork: Split TestCreateNetwork into two classes for identity v2 and v3
In TestCreateNetwork, both Identity v2 and v3 clients are tested. As a result, we should
initialize the identity client again and again in each test function.

To reduce redundant code, this patch split TestCreateNetwork to TestCreateNetworkIdentityV2 and V3.
And then initialize the identity client only once in each of them.

Change-Id: I349fe7f827524beb541efe7dd9460c534254b80c
Implements: blueprint osc-network-unit-test-refactor
Related-to: blueprint neutron-client
2015-12-05 10:52:05 +08:00
Tang Chen
29b9945677 Refactor network test: Introduce TestNetworkv2 and TestNetwork to improve unit test of network
The class inherit architecture in network unit test is different from other test classes,
which leads to lots of redundant code. This patch will make it the same as the other test
classes. And it will be more convenience for the coming up refactor.

Change-Id: I6f239dd54b9401ff2bbcf7ffdeb18769a450f573
Implements: blueprint osc-network-unit-test-refactor
Related-to: blueprint neutron-client
2015-12-05 10:52:05 +08:00
Jenkins
a207c27fc8 Merge "Add --volume to Image create" 2015-12-04 10:36:45 +00:00
Jenkins
b5d1192768 Merge "Trivial: Remove unuseful doc of "network list" command." 2015-12-04 08:20:10 +00:00
Tang Chen
b4e88aa3ce Trivial: Remove unuseful doc of "network list" command.
There is actually no "--dhcp" option in "network list" command.
So remove the doc from .rst file.

Change-Id: I481b260f99be635be4de8e6780206af47cdaa7ce
2015-12-05 10:43:06 +08:00
Jenkins
2a8b5798be Merge "Introduce FakeImage class" 2015-12-04 03:51:35 +00:00
Tang Chen
ca76260bf8 Trivial: Improve doc for "server create" command
The following options of "server create" command support searching
by both name and ID. So add this info into doc.

--image, --volume, --flavor, --security.

Change-Id: I93b167da58144e5de6c9996009b7ea2449fb4cd8
2015-12-04 11:51:15 +08:00
Jenkins
ff48f92128 Merge "Updated from global requirements" 2015-12-03 21:40:48 +00:00
Jenkins
4ed9e88078 Merge "Support "server list" searching by both image name and ID." 2015-12-03 20:36:59 +00:00
Jenkins
c39b720f00 Merge "Support "server list" searching by both flavor name and ID." 2015-12-03 20:36:48 +00:00
Jenkins
5645c0e11d Merge "Add multi deletion testcase for openstack volume delete" 2015-12-03 20:31:21 +00:00
Jenkins
74283637ce Merge "Fix exception when doing volume set operation" 2015-12-03 16:15:56 +00:00
OpenStack Proposal Bot
ad17d847f8 Updated from global requirements
Change-Id: I3ca62d29df56ec45bf1fe10d920c1f9ed5f5b4f1
2015-12-03 15:07:55 +00:00
Xi Yang
197d86dffa Fix exception when doing volume set operation
The v2 SetVolume extends from show.ShowOne and returns None
after setting volume operation. It will raise an exception.
This patch is going to fix the issue by changing the parent
class of SetVolume to command.Command.

Change-Id: Iefa453fe4adad06f2a0601a052c01e74004be5b7
Closes-bug: 1521896
2015-12-03 15:25:12 +08:00
Jenkins
9bcf17bf3e Merge "Convert 2.0 release notes to reno format" 2015-12-03 01:48:29 +00:00
Jenkins
5d71ed2b9c Merge "Add reno for release notes management" 2015-12-02 23:34:26 +00:00
Tang Chen
6cea1e0463 Trivial: Reorder doc of "server shelve" command to keep alphabetic order.
Change-Id: I616154a8c958b6980233014c7ae1c4544283d72d
2015-12-04 00:21:32 +08:00
Dean Troyer
e604a726b2 Convert 2.0 release notes to reno format
Change-Id: I3706f78152c77837ba17218d68b57ac10563bfa7
2015-12-02 14:57:27 -06:00
Dean Troyer
afd1b489ff Add reno for release notes management
Change-Id: Iaaf3f9ca7cb431e41adfb2a052e01e2240a63a07
2015-12-02 14:32:07 -06:00
Jenkins
40459b25e0 Merge "Add release notes for 2.0.0" 2015-12-02 11:29:20 +00:00
xiexs
6e747629ad Add multi deletion testcase for openstack volume delete
Change-Id: Id8e6e8311e46e4c8644d41d773aeb27416ca6a7e
2015-12-02 16:02:10 +08:00
Jenkins
a97624ba29 Merge "Switch to ksa Session" 2015-12-02 04:32:46 +00:00
Jenkins
a85880cef8 Merge "Add class TestServerList to provide basic unit test for "server list" command." 2015-12-02 03:04:26 +00:00
Tang Chen
d7c3048f56 Add class TestServerList to provide basic unit test for "server list" command.
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
2015-12-02 19:29:40 +08:00
Tang Chen
d37d27b2d6 Enable setup_servers_mock() to take attributes param.
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
2015-12-02 19:27:06 +08:00
Jenkins
fdcb56d7c4 Merge "Enable setup_servers_mock() to take attributes param." 2015-12-02 03:04:23 +00:00
xiexs
3f7c01cae5 Introduce FakeImage class
Introduce FakeImage to improve the current image unittest framework
with following two advantages:
1. generate more than one faking images
2. all faking images generated by random

Change-Id: Ide326fa2a047ddeea478bef97000083617a0b744
Implements: blueprint improve-image-unittest-framework
2015-12-02 10:17:51 +08:00
Dean Troyer
bf090c69c2 Switch to ksa Session
* 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
2015-12-02 01:55:14 +00:00
Jenkins
a9a7caf934 Merge "autodocument commands from plugins using stevedore.sphinxext" 2015-12-01 23:27:08 +00:00
Steve Martinelli
51e3105468 Add release notes for 2.0.0
Change-Id: I878609870701abaef60d49813b3184f473d936bf
2015-12-01 16:13:43 -06:00
Tang Chen
106f928cb6 Support "server list" searching by both image name and ID.
Nova API only supports list servers searching by image ID.
In OSC, we can support both image name and ID by mapping
the name to ID.

This patch also fix the inconsistent doc in .py and .rst files.

Closes-Bug: 1521492

Change-Id: I70613843f82d74732bd32a457cd4a31aba57825f
2015-12-01 06:59:22 +00:00
Tang Chen
0069a01967 Support "server list" searching by both flavor name and ID.
Nova API only supports list servers searching by flavor ID.
In OSC, we can support both flavor name and ID by mapping
the name to ID.

This patch also fix the inconsistent doc in .py and .rst files.

Partial-Bug: 1521492

Change-Id: I1d1a6aa91aef4e2846745babe8382481185fa96e
2015-12-01 06:59:08 +00:00
Steve Martinelli
727792da17 autodocument commands from plugins using stevedore.sphinxext
conflicting command names are a painpoint, so is manually updating
a list. let's autodocument the commands that are being use by
existing osc supporters.

Change-Id: If37d81dfd57cc79803668b64be1ccd776e319572
2015-12-01 01:23:56 -05:00
xiexs
fad7126e79 Remove list output from "compute service set"
Replace the super class from lister.Lister to command.Command,
as no need to display the status for the "set" command.

Change-Id: Ibaf3c1e349633223fca19937bbd9060d4f9ecbda
Closes-Bug: #1517804
2015-12-01 06:18:13 +00:00
Jenkins
cb73e781e0 Merge "Introduce FakeVolume class" 2015-12-01 04:20:45 +00:00
Jenkins
b221f2ceac Merge "Add --limit option to "server list" command." 2015-12-01 03:00:52 +00:00
Tang Chen
43c11c356b Add --limit option to "server list" command.
This option will limit the total amount of items the command will list up.

Change-Id: I46af0d479d795ebb6a74585d0f76629dd940b117
2015-12-01 10:12:58 +08:00
Jenkins
fc299fd190 Merge "Updated from global requirements" 2015-12-01 02:00:56 +00:00
Tang Chen
b36b477e81 Add --marker option to "server list" command.
This option will give user a chance to display the server list
from wherever they want.

Change-Id: I92cca5e98cd473f1113a9106eb9d1f490694b1fe
2015-12-01 09:30:43 +08:00
Jenkins
bf95d74c2d Merge "Add a changelog to see all changes into tagged releases" 2015-12-01 00:42:29 +00:00
Jenkins
b4b1a84bf9 Merge "Remove LICENSE APPENDIX" 2015-12-01 00:42:26 +00:00
Jenkins
5ad7dcd899 Merge "Add unit testcases for "openstack flavor delete"" 2015-12-01 00:27:15 +00:00
Jenkins
fcc1c0d68a Merge "Consistency of the --all argument for snapshots" 2015-12-01 00:27:11 +00:00
Jenkins
e6057f088b Merge "Add project name/ID validation for "openstack quota show"" 2015-12-01 00:03:10 +00:00
Jenkins
10aa2d9b0f Merge "Add status column for "openstack image list"" 2015-11-30 23:47:15 +00:00
OpenStack Proposal Bot
cb31eb8363 Updated from global requirements
Change-Id: Ia957c7f6023e1ac976a291fd081538c90870c802
2015-11-30 16:55:12 -06:00