1655 Commits

Author SHA1 Message Date
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
xiexs
a41a8c42af Add "openstack server shelve" into OSC
Currently, the shelve operation is not supported by OSC.
So, this patch attempts to add it into OSC.

Change-Id: I92545300bef006a069338168d2de800e8a58af69
Implements: blueprint introduce-shelve-into-osc
2015-11-24 00:40:26 -05:00
Jenkins
42a5909f6a Merge "Trivial: Fix wrong doc for wait_for_status()." 2015-11-23 06:07:37 +00:00
Tang Chen
6957fb3ee7 Trivial: Fix wrong doc for wait_for_status().
Two trivial fixes:
1. docs for parameters are not sorted correctly
2. missing doc for a parameter

Change-Id: I0cfb65e0f897c391b9b6e7225251e88855b07a56
2015-11-24 09:22:22 +08:00
OpenStack Proposal Bot
46e061785f Updated from global requirements
Change-Id: If8a37fdf90f3e97712a5d223d8e166840d036ab2
2015-11-21 16:23:01 +00:00
Tang Chen
a6291663ff Remove the old fake server data.
The old fake server framework has be replaced with the new
class FakeServer, which is stronger in:
1. faking multiple servers with random names and ids
2. faking methods in a server
3. easier to use

So remove the old fake server data, and use class FakeServer
from now on.

Change-Id: Ife8ee37a7ce14d9a3201104bce8075a918a97613
Implements: blueprint osc-unit-test-framework-improvement
2015-11-21 17:50:03 +08:00
Tang Chen
c9041622ef Use class FakeServer in TestServerResize.
There are the same problems with TestServerCreate in TestServerResize.
Use the new class FakeServer to fix them.

Change-Id: Ibde3e68a7bc55bbbf8357ba98be2559a6d0d41b6
Implements: blueprint osc-unit-test-framework-improvement
2015-11-21 17:49:54 +08:00
Tang Chen
588d73461e Use class FakeServer in TestServerImageCreate.
There are the same problems with TestServerCreate in TestServerImageCreate.
Use the new class FakeServer to fix them.

Change-Id: Ie723fa95620549f09a81ef72953f46877ef9252a
Implements: blueprint osc-unit-test-framework-improvement
2015-11-21 17:49:37 +08:00
Tang Chen
1cf5c5525b Use class FakeServer in TestServerDelete.
There are the same problems with TestServerCreate in TestServerDelete.
Use the new class FakeServer to fix them.

Change-Id: Icdcc90cc93ed1080187fb0edca885b0db56ab35d
Implements: blueprint osc-unit-test-framework-improvement
2015-11-21 17:49:03 +08:00
Tang Chen
815cd8a199 Use class FakeServer in TestServerCreate.
In the current TestServerCreate, there are several problems:

1. The fake create() returns a server with no 'networks' field.
   The new_server is used to fake the created server which is
   supposed to be returned by create(), but it has a 'networks'
   field.

   They have the same name and id, but they are actually not
   the same server.

   As a result, when checking the return value from create(),
   'networks' is not checked.

2. The fake server is not accessable in the test functions.
   So each time a test function wants to get the server name
   or id, it has to use the constants defined in compute_fakes.

   This is not good. We should make the fake server accessable
   in all test functions to ensure they actually get the same
   server.

This patch fix them both by using the new class FakeServer to
fake a server.

Change-Id: I8ffc8e233f8710034329ed33fccb2c734898ec2d
Implements: blueprint osc-unit-test-framework-improvement
2015-11-21 13:33:20 +08:00
Jenkins
4c7bbdae28 Merge "Have configuration tests support OCC" 2015-11-21 01:17:57 +00:00
Dean Troyer
5e46176540 Add command wrapper doc
This is a follow-up to I6c750730963615895f5d9953487d2d5a905885a8 that
removed a command deprecation warning wrapper.  This documents the
technique for later use.

Change-Id: Ieaa1e6b7eed4e5b037b4bfb6cf488e1290fc69f7
2015-11-20 15:23:14 -06:00
Jenkins
9ee8b4a71d Merge "Remove deprecated 'project usage list' command" 2015-11-20 21:09:20 +00:00
Tang Chen
319fc09430 Trivial: Remove doc for non-existing param in format_dict().
There is no parameter named format.

Change-Id: I286006430efb2850b978b6f2abaed87216156d12
2015-11-21 19:02:32 +08:00
Richard Theis
99498b0ab3 Unable to set some compute quotas
The OpenStackClient mapping of 'openstack quota set' arguments isn't
correct for compute quota items that have to different names.  For
example, the --injected-file-size argument is mapped to
injected_file_size, but the compute quotas item is actually
injected_file_content_bytes.  This incorrect mapping prevented the
impacted compute quota items from being set.

The problem impacts the following 'openstack quota set' arguments:
  --injected-file-size
  --injected-path-size
  --properties
  --secgroup-rules
  --secgroups

This patch set also expands the compute quota unit tests to verify
all compute quota items that can be set.

Change-Id: I0a2f241e425f4811e4ae55be183ac0c8b0805c2a
Closes-Bug: #1475831
2015-11-20 13:08:42 -06:00
TerryHowe
c0cc538077 Have configuration tests support OCC
Change-Id: Ia8b0e5672e2e6cf6a37582bf231385aafda8836d
2015-11-20 10:57:36 -06:00
Jenkins
65e6c7bc63 Merge "Add unit tests for "server pause" command." 2015-11-19 21:21:52 +00:00
Tang Chen
5c0959c4fe Add unit tests for "server pause" command.
This patch adds unit tests for "server pause" command,
including one and multiple servers.

Change-Id: If5551e77d7dd4f7f48c6ee4a7f80f8313817f492
Implements: blueprint osc-unit-test-framework-improvement
2015-11-20 15:47:13 +08:00
Jenkins
cddf4c309e Merge "Introduce random server faking mechanism." 2015-11-19 21:21:48 +00:00
Jenkins
4776bf672b Merge "Enable FakeResource to fake methods." 2015-11-19 21:19:50 +00:00
Tang Chen
b1cc7fb4f6 Introduce random server faking mechanism.
This patch introduces a new server faking mechanism to support
multiple servers faking.

Server names and ids can be generated randomly, and use APIs in
class FakeServer to get one or more servers.

Change-Id: Ic54f3bf7c77294dc7dfb9acdbf4a721eb5eef6af
Implements: blueprint osc-unit-test-framework-improvement
2015-11-19 18:23:11 +08:00
Tang Chen
20bf1ef675 Enable FakeResource to fake methods.
Use MagicMock to fake a method in FakeResource. A new function:

    add_method(name, return_value)

is added to FakeResource. The caller specifies method @name and @return_value,
the function will add an attribute with @name, which is a callable MagicMock
object whose return value is @return_value.

When user access the attribute with a (), @return_value will be returned by
MagicMock, which looks like a function call.

Change-Id: I12eb876cbebab064773df7b5dd612de69bbf3f01
Implements: blueprint osc-unit-test-framework-improvement
2015-11-19 18:23:08 +08:00