10870 Commits

Author SHA1 Message Date
zhufl
0419088f9d Replace the usage of 'os' with 'os_primary'
Read-only property 'os' has moved to 'os_primary' in version 'Pike'
and will be removed in version 'Queens', so this is to replace
the usage of 'os' with 'os_primary'.

Change-Id: I9f7c13da05a8c4a63529c11aa6213a7269abee6d
2017-05-23 10:45:48 +08:00
Jenkins
fcefb26f2a Merge "Replace assertEqual([], items) with assertEmpty(items)" 2017-05-21 21:55:45 +00:00
Jenkins
a4a8abaf93 Merge "Deprecate default value for v3_endpoint_type" 2017-05-19 15:46:22 +00:00
Jenkins
6dde22d511 Merge "Add check after unset_flavor_extra_spec" 2017-05-19 15:46:14 +00:00
Jenkins
8bdf881aa4 Merge "Create deleted server in resource_setup" 2017-05-19 15:26:54 +00:00
zhufl
406e913f3b Create deleted server in resource_setup
In ServersNegativeTestJSON, two testcases need deleted
server, so we can create it in resource_setup to reduce
the total run time.

Change-Id: I5ef7188318cc2907055ce31fd77345df8d3e791f
2017-05-19 11:13:08 +08:00
OpenStack Proposal Bot
e7eaab4ee4 Updated from global requirements
Change-Id: I3f3d138d205d9fc2841c039b24e978c817b81d51
2017-05-18 12:56:52 +00:00
Jenkins
dcfcc8d485 Merge "Fix volume attach tests failing when using FIP as ssh method" 2017-05-18 02:51:45 +00:00
Kevin_Zheng
7a547df426 Fix volume attach tests failing when using FIP as ssh method
When use floating as connect_method, tests:
test_attach_detach_volume[id-52e9045a-e90d-4c0d-9087-79d657faffff]
test_list_get_volume_attachments[id-7fa563fe-f0f7-43eb-9e22-a1ece036b513]
will fail due to that they are under the same class, so when these tests
setup, and using floating as connect_method only one floating IP was
created.We first associated it to instance created at test1 and then we
created another instance in test2 and tried to associate this IP again to
the new server, since the IP was already associated to instance created in
test1, error will happen when try to do this.

This patch fix this by delete the servers after first test finished.

Closes-Bug: #1686664

Change-Id: Ie3afb31bd0d3245760f799b2256228159b328619
2017-05-17 07:09:07 +00:00
Jenkins
62d9761dfe Merge "Add additional assertions for volume transfer test" 2017-05-17 02:41:57 +00:00
Jenkins
e88ed43bcf Merge "Merge test_snapshot_create_with_volume_in_use" 2017-05-16 11:25:39 +00:00
Jenkins
d1251b1ca4 Merge "Correct invalid client in ServersNegativeTestMultiTenantJSON" 2017-05-16 10:57:55 +00:00
Jenkins
839e49245a Merge "Add test case for show volume summary" 2017-05-16 10:57:47 +00:00
Jenkins
389439eade Merge "Fix for implied roles test" 2017-05-16 10:57:29 +00:00
Jenkins
a8006de318 Merge "Update document theme and section headers" 2017-05-16 08:50:57 +00:00
jeremy.zhang
48b235f476 Replace assertEqual([], items) with assertEmpty(items)
This patch is to replace assertEqual([], items) with assertEmpty(items),
which the items is a empty list.

Change-Id: Ibdd1e141740497b819e08ac8abeb74740b8a6cf9
2017-05-16 14:53:05 +08:00
Hemanth Nakkina
b4c0c82282 Deprecate default value for v3_endpoint_type
To make endpoint_type default values consistent across services,
keystone v3_endpoint_type default value is deprecated in Pike and
will be changed to publicURL in next release

Change-Id: Iacdfb61e718b8ae45eab25e8041829989486a2ed
Closes-Bug: #1687141
2017-05-15 10:03:50 +05:30
zhufl
93d7011c90 Add check after unset_flavor_extra_spec
This is to add check for flavor_extra_specs disappearing
after unset_flavor_extra_spec, now no any such check in
Tempest.

Change-Id: I8b749bdbf4e1e34cec2b37f25ec734a5c99422d8
2017-05-15 03:49:04 +00:00
Jenkins
9552aeffc0 Merge "Reduce server rescue/unrescue times" 2017-05-13 10:31:26 +00:00
jeremy.zhang
768b334a07 Add additional assertions for volume transfer test
When a transferred volume is accepted by another user in different
tenant, the user and tenant of the volume should be changed. This
patch is to add explicit assertions for these two attributes in
volume transfer test.

Change-Id: Iaaee981c5d0c17133cc426479904c584e28f8578
2017-05-13 14:14:44 +08:00
Jenkins
06e0f00edd Merge "Remove base_routers module" 2017-05-13 05:36:23 +00:00
zhufl
529eefabc9 Merge test_snapshot_create_with_volume_in_use
test_snapshot_create_with_volume_in_use can be mostly
covered in test_snapshot_delete_with_volume_in_use, except
"Snapshot a volume which attached to an instance with
 force=False", so this is to move that test step to
test_snapshot_delete_with_volume_in_use and remove
test_snapshot_create_with_volume_in_use, so the total
run time can be reduced.

These two testcases are not used in the newest defcore
json files.

Change-Id: Ib04fe2d2127681cd89bfea3cc2d09f4aafbc6f34
2017-05-12 16:04:09 +08:00
Jenkins
861542db91 Merge "Deprecate Heat/Orchestration configuration options" 2017-05-11 16:58:40 +00:00
zhufl
0c042a5ab1 Reduce server rescue/unrescue times
Server rescue/unrescue is time consuming,
test_rescued_vm_associate_dissociate_floating_ip [23.838659s]
test_rescued_vm_add_remove_security_group [21.670585s]

This is to:
1. create a rescued server in resource_setup to be shared
   between two testcases
2. delete server in RESCUE status directly without unrescue it
   in resource_cleanup
3. move setup of floating ip and security groups from resource_setup
   to inside the testcases because they are used only once

Change-Id: Ic47dc1fa1bcb6ae7f43a6f37565971c94e5494af
2017-05-11 09:40:43 +08:00
Jenkins
72d54b6877 Merge "Remove the heat tests" 2017-05-10 23:11:21 +00:00
Jenkins
7ba497d5c7 Merge "Move methods related to metering_label" 2017-05-10 20:48:42 +00:00
Jenkins
7495382c56 Merge "Switch BaseAdminNetworkTest on test_routers_dvr" 2017-05-10 20:48:34 +00:00
Jenkins
3f230a3e90 Merge "Using fixtures instead of deprecated mockpatch module" 2017-05-10 20:19:49 +00:00
Masayuki Igawa
d2a657de0e
Update document theme and section headers
This commit updates the document theme. It is clear, simple, up-to-date
and beautiful. And this commit also updates section headers to fix the
document index.

Change-Id: Ia1e8e16e5f5ddb06e4c4ccb4979b0750b88a4db4
2017-05-09 15:34:45 -04:00
zhufl
5376ab33a1 Correct invalid client in ServersNegativeTestMultiTenantJSON
In ServersNegativeTestMultiTenantJSON's setUp, self.client
should be self.servers_client, otherwise we will get:
<AttributeError: "'ServersNegativeTestMultiTenantJSON' object
has no attribute 'client'">, and so we will encounter twice
unnecessary rebuild_server.

Change-Id: Ie5559bd4f1cbbb0b128946c21bd737585f79ffad
2017-05-09 15:56:50 +08:00
Jenkins
a93a8e927c Merge "Separate admin test from RoutersNegativeTest" 2017-05-08 22:51:40 +00:00
Jenkins
01545ff018 Merge "Remove _remove_router_interface_with_port_id()" 2017-05-08 22:48:04 +00:00
Jenkins
7db050e405 Merge "Refactor resource cleanup methods in compute.base" 2017-05-07 16:10:18 +00:00
jeremy.zhang
79a1cbf2dd Add test case for show volume summary
Show volume summary is a new api implemented in volume v3. This patch
is to add a simple test case for this new feature.

Including:

[1] Add v3 volumes_client as library
[2] Add show volume summary api to v3 volumes_client
[3] Add unit tests for show volume summary api
[4] Add test case: test_show_volume_summary
[5] Add release note

Change-Id: I9904bc53896e7d58a22aef11f6a3128147c0a373
2017-05-07 16:09:17 +08:00
Jenkins
a99cba9ea6 Merge "Share a server in ServersOnMultiNodesTest" 2017-05-07 02:01:11 +00:00
Jenkins
69966c9e46 Merge "Correct skip condition for migrate_server" 2017-05-06 10:17:10 +00:00
Jenkins
2b4deb3b09 Merge "Use a helper to create aggregate" 2017-05-06 09:36:54 +00:00
Ngo Quoc Cuong
54555c1610 Using fixtures instead of deprecated mockpatch module
This module mockpatch of oslotest[1] is deprecated since version 1.13
and may be removed in version 2.0. Use fixtures.Mock* classes instead[2]

[1]OpenStack Testing Framework and Utilities
[2]https://docs.openstack.org/developer/oslotest/api/oslotest.mockpatch.html#module-oslotest.mockpatch

Change-Id: I916b9fd3ccd50b2f61850fcce2056f3b5833ba24
2017-05-05 21:00:58 +07:00
Matt Riedemann
0fe1c03d74 Skip test_volume_extend_when_volume_has_snapshot until bug 1687044 is fixed
This test is still failing at a really high rate:

http://status.openstack.org/elastic-recheck/#1687044

And that's just the jobs where elastic-recheck didn't time out
waiting to get logs, so the actual failure rate is probably higher.

Let's skip it for now.

Change-Id: I49cfa97c5a2a8d30514adb59d9ad3ae35a6ade37
Related-Bug: #1687044
2017-05-05 09:31:07 -04:00
Jenkins
fa9539cfbd Merge "Fix deprecation warnings" 2017-05-05 13:07:06 +00:00
Jenkins
7833486f68 Merge "Merge test_list_get_two_volume_attachments" 2017-05-05 07:51:03 +00:00
Jenkins
892088b0cd Merge "Add missing IPs validation to test_rebuild_server" 2017-05-05 04:42:30 +00:00
zhufl
517a807bcf Share a server in ServersOnMultiNodesTest
In ServersOnMultiNodesTest, server01 can be safely shared among
testcases, so we can save two create_test_server.

Change-Id: I2b9165a26feeb5ce5fa7442872b2212d22d7f575
2017-05-05 11:06:56 +08:00
Ken'ichi Ohmichi
3fd5f0e8cc Remove base_routers module
base_routers just contained some methods for test_routers only.
This patch moves such methods into test_routers directly and removes
base_routers module for simple inheritance.

Change-Id: I855a345ea6331103901c512d790ed802674c8fcc
2017-05-04 18:40:36 -07:00
Ken'ichi Ohmichi
7e5773c15d Switch BaseAdminNetworkTest on test_routers_dvr
test_routers_dvr doesn't use BaseRouterTest specific methods at all,
so it is not necessary to inherit from BaseRouterTest. This patch
removes such unnecessary dependency for simple inheritance.

Change-Id: Ic9d741f64128e4532c2206a57954c7d1958bacef
2017-05-04 18:37:31 -07:00
Ken'ichi Ohmichi
7e74d98ce3 Move methods related to metering_label
The moved methods are used at test_metering_extensions only, so the
base module is not a good place to keep such methods. This patch moves
them into test_metering_extensions for keeping the base method simple.

Change-Id: I84c36cc3597b53953b4fb9fc7c42932682d44795
2017-05-04 18:21:13 -07:00
zhufl
b926695bbe Use a helper to create aggregate
In AggregatesAdminTestJSON, the multi lines of creating
aggregate repeated for many times, so this is to use a
helper to create aggregate, so to make the code focus on
main test steps.

Change-Id: I3625fa9073ebe09a43e9ebeb5a117890f9385189
2017-05-05 00:50:24 +00:00
Ken'ichi Ohmichi
66278273d3 Separate admin test from RoutersNegativeTest
Most tests of RoutersNegativeTest don't require admin credential,
test_router_set_gateway_used_ip_returns_409 only requires it.
So this patch makes RoutersNegativeTest inherit from BaseNetworkTest
which is based on non-admin credential. In addition, this patch makes
a test stop using _add_router_interface_with_subnet_id() on the test
class for simple code and removing the dependency to BaseRouterTest.

NOTE: test_router_set_gateway_used_ip_returns_409 is not used on
      defcore side. So this path change doesn't affect on defcore.

Change-Id: I8bf2d523e52353989be8f83b06c0ce6718931e8c
2017-05-04 16:26:22 -07:00
Ken'ichi Ohmichi
ea2a31abfd Remove _remove_router_interface_with_port_id()
_remove_router_interface_with_port_id() is just a wrapper method
which calls remove_router_interface() with an assertion.
The assertion seems unnecessary because it is called on the cleanup
and we don't do such check on the other places.
This patch just replaces the redunadnt method with direct call.

Change-Id: I82fd96be1f27dc9f9e58b5eeaa562ef3404f3382
2017-05-04 16:06:04 -07:00
Jenkins
1dc133f185 Merge "Fix recent releasenotes typo" 2017-05-04 16:59:47 +00:00