1778 Commits

Author SHA1 Message Date
xiexs
c27f9e3c6c Fix a bug of "openstack volume delete"
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
2015-11-27 11:17:22 +00:00
Jenkins
8d523266fc Merge "Add unit tests for "server stop" command." 2015-11-26 20:25:55 +00:00
Tang Chen
dacd5dce28 Add unit tests for "server stop" command.
Change-Id: Idfa82f7f3aee3824aedf8b551be7942659530457
Implements: blueprint osc-unit-test-framework-improvement
2015-11-27 19:21:01 +08:00
Tang Chen
cfff32aed6 Add unit tests for "server start" command.
Change-Id: I19060419a17b8e081e8f51c08959f24b84e7e570
Implements: blueprint osc-unit-test-framework-improvement
2015-11-27 19:20:07 +08:00
Tang Chen
9f38df9208 Add unit tests for "server resume" command.
Change-Id: I8961e72b6901a52612cf62f52c02b6c2ff3dcd94
Implements: blueprint osc-unit-test-framework-improvement
2015-11-27 19:19:04 +08:00
Tang Chen
c176987063 Add unit tests for "server suspend" command.
Change-Id: Idfdd98fd27d97e1216abe9b14d3dea7c8f2a5a68
Implements: blueprint osc-unit-test-framework-improvement
2015-11-27 19:17:27 +08:00
Tang Chen
4062d59965 Add unit tests for "server unlock" command.
Change-Id: I4fbf115f925a6ffdeaec3d856d22224fa7730729
Implements: blueprint osc-unit-test-framework-improvement
2015-11-27 19:14:47 +08:00
Tang Chen
cb16599f10 Add unit tests for "server lock" command.
Change-Id: I0396fc4836ee918298bbe3860b7c1f42d3b97e33
Implements: blueprint osc-unit-test-framework-improvement
2015-11-27 19:12:55 +08:00
Tang Chen
7886fdd3de Add unit tests for "server unpause" command.
Change-Id: Ia74d9875b8aa413b84d0077d22adb75b866a5701
Implements: blueprint osc-unit-test-framework-improvement
2015-11-27 19:09:16 +08:00
Tang Chen
569ff3dcd8 Abstract a helper function for server.xxx() tests.
The test cases for server.xxx() are all the same, with one or more faked servers.
So use a helper function to reduce code duplicate.

Change-Id: I660c7731e2de8bf4d815b414a621d8d9ca6d5a8b
Implements: blueprint osc-unit-test-framework-improvement
2015-11-27 19:01:46 +08:00
Tang Chen
96331689f0 Add multiple servers test case to TestServerDelete.
This patch adds a multiple servers test case to class TestServerDelete.

Change-Id: I8b0c37ec2a8e7b23889e25c9004f867f2907f630
Implements: blueprint osc-unit-test-framework-improvement
2015-11-27 14:30:06 +08:00
Tang Chen
f9a41788cf Use setup_servers_mock() in the base class in TestServerDelete.
Use setup_servers_mock() in class TestServerDelete to coordinate
the test class format.

Change-Id: I1901d6b781d97820667984241f4d68764d045854
Implements: blueprint osc-unit-test-framework-improvement
2015-11-27 14:29:47 +08:00
Tang Chen
bf657ef286 Move setup_servers_mock() to class TestServer.
This function will be used in almost every test case.
So move it to the base class to avoid define it each
time a test case is added.

Change-Id: I060b54f0935b42a85042ad217d851fea649ec8d9
Implements: blueprint osc-unit-test-framework-improvement
2015-11-27 13:10:03 +08:00
Jenkins
d69906a06a Merge "Add unit tests for "server start" command." 2015-11-26 19:34:26 +00:00
Jenkins
840ffa72e2 Merge "Add unit tests for "server resume" command." 2015-11-26 19:34:22 +00:00
Jenkins
566bbb78f9 Merge "Add unit tests for "server suspend" command." 2015-11-26 19:16:47 +00:00
Jenkins
9a6672b8aa Merge "Change 'Object Store' to 'Object Storage'" 2015-11-26 18:41:06 +00:00
Jenkins
0fa9228dbc Merge "Add unit tests for "server unlock" command." 2015-11-26 16:39:02 +00:00
Jenkins
906c4923a9 Merge "Add unit tests for "server lock" command." 2015-11-26 16:34:38 +00:00
Jenkins
d2e8cc6cc9 Merge "Add unit tests for "server unpause" command." 2015-11-26 16:34:30 +00:00
Jenkins
46fe0dddff Merge "Abstract a helper function for server.xxx() tests." 2015-11-26 16:34:27 +00:00
Jenkins
dc541b1e2c Merge "Add multiple servers test case to TestServerDelete." 2015-11-26 16:34:25 +00:00
Jenkins
2217f0a6df Merge "Use setup_servers_mock() in the base class in TestServerDelete." 2015-11-26 16:34:21 +00:00
Jenkins
68e10e0bbc Merge "Move setup_servers_mock() to class TestServer." 2015-11-26 16:29:31 +00:00
Tang Chen
a2047d3f9f Trivial: Fix typo in find() in network.
Change-Id: Ic54fbb9160adefe3d025d537125e125128f75ee6
2015-11-27 16:52:56 +08:00
Tang Chen
c48afe6032 Trivial: Fix a typo.
Change-Id: I236b4f53ee23cc97900e6244ab709404cc44a4ca
2015-11-27 13:20:44 +08:00
Xi Yang
32e0ed6980 Change 'Object Store' to 'Object Storage'
Because the official documents uses 'Object Storage',
so change it in this project.

Change-Id: I87c0996b48c452b3ff619b8214676ae377e6d0af
2015-11-26 16:35:54 +08:00
Xi Yang
d1a58653ab Use is_public to set access of volume type
Currently the 'public' and 'private' keys does not work
when creating volume type, 'is_public' should be used.

Change-Id: If34a66053ea6c192882a1b9d8bbb1d3666be3f83
Closes-bug: 1520115
2015-11-26 16:30:05 +08:00
Jenkins
487fff8cdb Merge "Move FakeServer to tests.common.v2.compute.fakes" 2015-11-26 04:03:00 +00:00
Jenkins
bf273985e9 Merge "Refactor: Order of security group class names" 2015-11-25 17:09:38 +00:00
Jenkins
970554206d Merge "Add functional tests for network crud" 2015-11-25 15:43:45 +00:00
Richard Theis
74f84f32f5 Refactor: Order of security group class names
Per comment in [1], refactor the security group class names to
be in alphabetical order.

[1] https://review.openstack.org/#/c/249223

Change-Id: If28a153cdab57c0659ff5c78b276766d4043467f
2015-11-25 08:54:52 -06:00
lin-hua-cheng
b3c2668c34 Move FakeServer to tests.common.v2.compute.fakes
FakeServer should not be in tests.fakes since this should
be just for generic re-usable classes.

Change-Id: I19209952de69626dfa3caadc5d1cc69b7feadeba
2015-11-25 00:17:49 -08:00
Jenkins
c0676fe17f Merge "Trivial: Add missing doc for parameter in wait_for_delete()." 2015-11-25 04:31:45 +00:00
Tang Chen
f3c69ceeb5 Trivial: Add missing doc for parameter in wait_for_delete().
The doc of parameter manager is missing.

Change-Id: I4e99c06ab713532d73615670ada0a61462285d76
2015-11-26 10:19:01 +08:00
Jenkins
9e14c0a7ce Merge "Remove the old fake server data." 2015-11-25 02:34:24 +00:00
Jenkins
ee43f65936 Merge "Use class FakeServer in TestServerResize." 2015-11-25 02:34:15 +00:00
Jenkins
1346ae58b9 Merge "Use class FakeServer in TestServerImageCreate." 2015-11-25 02:34:13 +00:00
Jenkins
27f1876ea8 Merge "Use class FakeServer in TestServerDelete." 2015-11-25 02:34:10 +00:00
Jenkins
1f2fcb570d Merge "Use class FakeServer in TestServerCreate." 2015-11-25 01:49:20 +00:00
Jenkins
1be15a8be7 Merge "Unable to set some compute quotas" 2015-11-25 00:05:43 +00:00
Jenkins
13dfacc5ff Merge "Add "openstack server shelve" into OSC" 2015-11-24 23:23:30 +00:00
Jenkins
b42396d445 Merge "Doc: Update and add IP address" 2015-11-24 23:08:55 +00:00
TerryHowe
3dc97c0d3f Add functional tests for network crud
Change-Id: If965a7389ffa5b7ad44f53eebc2e8b918c6d2ace
2015-11-24 15:29:59 -07:00
Steve Martinelli
510a4d9674 Remove py26 support
as of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.

Change-Id: I66d168ecc755a3ea0e01d5b6344d06d9e0d1378b
Closes-Bug: 1519510
2015-11-24 17:08:04 -05:00
Jenkins
11ea5b31af Merge "Doc: Add security group and security group rule" 2015-11-24 21:21:20 +00:00
Richard Theis
325420f6d1 Doc: Update and add IP address
Fix the 'ip floating' command documentation file name.
Add missing command list documentation for the 'ip fixed'
and 'ip floating pool' commands.  In addition, update the
command description and argument help to fix minor issues
and use consistent terminology.  And finally, cleanup the
Network command object formatting.

Change-Id: I0168891bc674c9f0d4df4062f7e93f497dc8fe6f
2015-11-24 14:03:51 -06:00
Richard Theis
41133fb82e Doc: Add security group and security group rule
Add missing command list documentation for the 'security group'
and 'security group rule' commands.  In addition, update the
command description and argument help to fix minor issues and
use consistent terminology.

Change-Id: I9f4a3fbac5637289f19511874e16391d3fe27132
2015-11-24 12:49:57 -06:00
Tang Chen
bfa223f615 Enable "openstack server resume" command to take multiple servers.
Current "openstack server resume" command could only resume one server.
Improve it to be able to handle more than one servers. Also improve
the doc to reflect the new feature.

Change-Id: I726eb86bfa3df3a9911f45770e6641264dbc1e0b
Implements: blueprint cmd-with-multi-servers
2015-11-24 18:54:03 +08:00
Tang Chen
4955117dff Enable "openstack server suspend" command to take multiple servers.
Current "openstack server suspend" command could only suspend one server.
Improve it to be able to handle more than one servers. Also improve
the doc to reflect the new feature.

Change-Id: Ic0417ee28f46c9198a35744c0180342e61966b26
Implements: blueprint cmd-with-multi-servers
2015-11-24 18:47:26 +08:00