5523 Commits

Author SHA1 Message Date
Adam Gandelman
ab6106ddaa Skip IPv6 scenarios for baremetal
These tests attempt to create two isolated tenant networks and
boot servers on each.  Baremetal relies on flat networking that
does not support network isolation, so these tests should be skipped
in that case.

Change-Id: Ia7383114c17e4d901c81b8e7b6b2822a7ec4f908
2014-12-12 11:08:03 -08:00
Adam Gandelman
721f80d90d Remove use of 'cls.enabled = False'
Various network scenario tests have been setting this attribute
when raising skip exceptions.  It appears to no longer be used for
anything and can be removed.

Change-Id: I368f9e08cba6372010b9fed47f7730160e9d60b1
2014-12-12 11:07:39 -08:00
Jenkins
59101f7ea3 Merge "Updated from global requirements" 2014-12-12 17:30:19 +00:00
Jenkins
add5b7d642 Merge "Remove Nova v3 API code from RestClient" 2014-12-12 15:31:43 +00:00
Jenkins
cc4b3bc586 Merge "Raise a new exception NotImplemented for HTTP501" 2014-12-12 08:58:29 +00:00
Jenkins
ec269aa991 Merge "Remove XML related code from RestClient" 2014-12-12 08:23:32 +00:00
Matthew Treinish
e869ff3d32 Bump working version to 4
With the tempest-3 tag being published to signify the end of xml
testing in tempest we need to bump the working version to tempest-4
to indicate that the next tag will be 4.

Change-Id: I1fd12cb3e20692c60daa4eb19c6d876b00318d56
2014-12-11 11:46:21 -05:00
Ken'ichi Ohmichi
e8dfd67c55 Remove Nova v3 API code from RestClient
Nova v3 API has disappeared, and Tempest isn't testing the API on the
gate now. In addition, Nova team is creating a new REST API "Nova v2.1
API + microversions" and the interfaces are different from v3 API.
So it is not necessary to keep Nova v3 API tests in Tempest.
This patch removes Nova v3 API code from RestClient for code cleanup.

Change-Id: I46631092e1c851f4603035c3dcc11287b777323c
2014-12-11 11:42:58 +00:00
Ken'ichi Ohmichi
43a694a988 Raise a new exception NotImplemented for HTTP501
In _error_checker(), both HTTP500 and 501 are converted to the same
exception ServerFault. In addition, some method which extracts error
message raises a specific exception IdentityError without considering
HTTP code.
This patch adds a new exception NotImplemented and uses it for HTTP501
so that we can know which error response is returned from a server.

Change-Id: Ic8fc216377942619f11a2462b79d0597071ac294
2014-12-11 11:42:58 +00:00
Ken'ichi Ohmichi
938e3330e2 Remove XML related code from RestClient
XML API tests have been removed, but there is still some code related
to XML API tests in RestClient class.
This patch remove it for code cleanup.

Change-Id: I098fe348220bb24c022c4b0753da322e1cdb1893
2014-12-11 11:42:50 +00:00
Jenkins
919d0e8c8f Merge "Adds scenario for IPv6 addresses" 2014-12-11 08:59:59 +00:00
Jenkins
4b6f1f1610 Merge "Remove network debug" 2014-12-11 08:53:54 +00:00
Jenkins
87336afc21 Merge "Handle pagination keys in lister response" 2014-12-11 08:32:41 +00:00
Jenkins
c5fa893e61 Merge "Use assertIn to check for subnet membership" 2014-12-11 08:14:24 +00:00
OpenStack Proposal Bot
75a9aec499 Updated from global requirements
Change-Id: Icc3af198981cb427fb735b747aacfa02b85e7242
2014-12-11 07:20:52 +00:00
Ken'ichi Ohmichi
c240bccc91 Change rest client exceptions' inheritances
RateLimitExceeded, ServerFault and OverLimit raise at rest_client layer
and they should inherit from RestClientException for representing what
happens clearly. This patch changes them.

Change-Id: I0b74bd44a88cc68bdaeab6bd605722d47f5a28a9
2014-12-11 03:09:53 +00:00
Jenkins
3a94488ced Merge "Move safe_body() into specific class" 2014-12-11 02:00:32 +00:00
Jenkins
03371c59ad Merge "Make InvalidServiceTag inherit from TempestException" 2014-12-11 02:00:22 +00:00
Jenkins
07a3f45625 Merge "Framework for staged setup" 2014-12-11 01:52:04 +00:00
Ken'ichi Ohmichi
e9140bfb08 Move safe_body() into specific class
safe_body() is used in RestClient class only, so this patch
moves safe_body() into the class for the code cleanup.

Change-Id: Ice80d5ab19438162ba7a5705fa78c1ab91c1ccd5
2014-12-10 23:39:50 +00:00
Ken'ichi Ohmichi
53c963a916 Make InvalidServiceTag inherit from TempestException
Exceptions which inherit from RestClientException should raise based
on an error response which is returned from REST API servers(nova-api,
etc). However, InvalidServiceTag is not now.
We have a plan RestClient is implemented in tempest-lib and related
exceptions also are moved to tempest-lib.
For doing that, this patch separates an unrelated exception from
RestClientException.

Change-Id: I49d50fb14b18c6fb263308a68d7ac6a97b1a9800
2014-12-10 23:39:50 +00:00
Andrea Frittoli
a5ddd556c6 Framework for staged setup
Split up the resource_setup in a number of methods to avoid
calls to tearDownClass when not needed, and enforce good
practices in the structure of the setUpClass.

Partially-implements bp:resource-cleanup

Change-Id: I3eae85f8e42f8ed58c87e6336792faf66c8f13aa
2014-12-10 21:42:29 +00:00
Jenkins
10c0e4fa42 Merge "Skip test_update_router_admin_state for baremetal" 2014-12-10 20:32:26 +00:00
Jenkins
02a73e9e7d Merge "Check that the number of fixed_ips is at least one" 2014-12-10 19:45:19 +00:00
Sean M. Collins
2bc293ee97 Use assertIn to check for subnet membership
For dual stacked networks, the gateway port will have multiple subnets
associated

Change-Id: I450f896f29051921b011e1643f1a1e24ed82ac08
2014-12-10 10:45:39 -07:00
Ken'ichi Ohmichi
5f93d37ed1 Remove unused TOKEN_CHARS_RE
TOKEN_CHARS_RE is not used in rest_client.py, and this patch
removes it.

Change-Id: I33db1b937efc6393d979da6c3f6b55cf31b5779c
2014-12-10 05:26:38 +00:00
Matthew Treinish
53483137c7 Remove network debug
This commit removes all of the network debugging gorp usage from
tempest. These were added as a crutch over a year ago to enable
real neutron testing in the gate, which was impossible to debug
at the time. This debug info is an inherent layer violation in tempest
which is only supposed to be black-box and not care about any of the
underlying internals. It also assumes a single host environment and
that tempest is running on that machine, which is mostly specific to
the gate and devtest setups. Additionally the amount of output on a
failure is staggering to the point where keeping this around is
counter-productive. If we are unable to debug issues at this point
neutron needs to improve their logging so people can figure out what
failed.

Change-Id: Ia1ed4ab3cd2e4941fb072b3390f4859420989e74
2014-12-09 20:26:05 -05:00
Sean M. Collins
08803f64e6 Check that the number of fixed_ips is at least one
In DevStack-Gate, we are attempting to run dual stacked, so even when
running IPv6 tests, an IPv4 address will be present.

Change-Id: I303d15cdf9fb458df49e4b8eaf3adc41226bf176
Required-By: I3d416275f77913769b98e77f7e47bed17fc4d1cc
2014-12-09 17:19:51 -07:00
Jenkins
fc7d4ff1fe Merge "Test to create bulk port" 2014-12-10 00:12:01 +00:00
Adam Gandelman
cf61121ac2 Skip test_update_router_admin_state for baremetal
The baremetal deployment relies on a flat network without tenant isolation.
The router servicing this single network should not be taken up and down,
especially if there are other tests running that may be accessing things
via public IP.  This is accounted for already during network/router/subnet
creation, but this test needs to be skipped as well.

Change-Id: I4064e134493085d90a0f0967b7b9ad640aadf75c
Closes-bug: #1400902
2014-12-09 14:13:28 -08:00
Jenkins
8be1f240c9 Merge "Temporarily disable service-type test" 2014-12-09 17:30:28 +00:00
Doug Wiegley
b29d3cb9b0 Temporarily disable service-type test
With the advanced services disabled this test fails. In order to make
forward progress on the services split this test needs to be disabled
to allow the services split to move forward.

Related-Bug: #1400370

Change-Id: Ide264a371215bb6a56e52faab18296fb0cf0a74b
2014-12-09 15:21:33 +00:00
Jenkins
61fc0eb4ec Merge "Ensure extension aliases are used for nova based services" 2014-12-09 13:03:14 +00:00
Jenkins
6d4a2ad7fa Merge "Basic networks Scenario Test Enhancements" 2014-12-09 12:11:23 +00:00
Jenkins
bae6549374 Merge "Add more verbose info for wait_for_..._status methods" 2014-12-09 11:58:30 +00:00
Jenkins
464bc72465 Merge "Firewall as a service API Test Enhancement" 2014-12-09 11:19:00 +00:00
Jenkins
9819e7fd75 Merge "Scenario manager: catch Exception in get_remote_client" 2014-12-09 11:16:25 +00:00
Jenkins
40545e19d8 Merge "Ironic: Remove few misguided negative tests on ports" 2014-12-09 03:30:04 +00:00
Jenkins
bfd6e18238 Merge "Revert "Log the credentials used to clear networks"" 2014-12-09 02:46:41 +00:00
Matthew Treinish
54176ce7b1 Ensure extension aliases are used for nova based services
This commit fixes the extension checker in verify-tempest-config to
ensure that nova and nova based services are using the extension
aliases instead of the extension names. The extension names are meant
to be human readable and are not the best way to identify it. This is
what the tempest code is also expecting, however in some cases the
name was still being used by the verify tool, which was incorrect. As
part of this it was necessary to fix several other places where name
was being used instead of alias, or other extension list formatting
response checking was incorrect.

Change-Id: I35f5db655f065f29760515a26db1fb508d229393
2014-12-08 20:49:07 -05:00
Matthew Treinish
fe094eac8e Revert "Log the credentials used to clear networks"
This is using the incorrect format and it's spewing errors everywhere.

This reverts commit 38156b7a2a23666b1908c5c97d210b3676c12090.

Change-Id: If3d32320eb707531b9b37324ddbebeeb62574041
2014-12-09 01:19:27 +00:00
Jenkins
3dd8545b33 Merge "Log the credentials used to clear networks" 2014-12-09 00:38:40 +00:00
Jenkins
6e228dc393 Merge "Remove Volume V1 specific test base classes" 2014-12-08 16:22:36 +00:00
Martin Pavlasek
1102c3a8df Add more verbose info for wait_for_..._status methods
If this method failed because the resource will not reach desired
status, you just know expected status, not actual status at time of
timeout. It can help with debugging.

Change-Id: I583f0739bf771dd587acd13c1453ae6a440a9e87
2014-12-08 09:49:54 +01:00
Jenkins
1beedac2ba Merge "Support creating users with a default_project_id" 2014-12-08 05:13:38 +00:00
ghanshyam
99fe698aca Remove Volume V1 specific test base classes
As part of mentioned BP, all volume API tests have been shared
between V1 and V2. Now BaseVolumeV1Test & BaseVolumeV1AdminTest
class can be removed from base.py.

Partially implements: blueprint cinder-v2-api-tests

Change-Id: I57916c8cb0c4bb8d7e847655f13da2b399ab7783
2014-12-08 13:36:34 +09:00
Joe Gordon
38156b7a2a Log the credentials used to clear networks
Without knowing what credentials are used to cleanup its difficult to
figure out what "Clearing network: None, subnet: None, router: None"
means.

Change-Id: I649d64f8aecc77d13837b4f0a06911f975b5ccb8
2014-12-05 15:59:15 -05:00
Lucas Alvares Gomes
5ea777f0dd Ironic: Remove few misguided negative tests on ports
As part of https://bugs.launchpad.net/ironic/+bug/1398350 Ironic is fixing
a bug where the josn-fields in the resources only accepted string and
int, as part of the work Ironic will now support any json serializable
value on those fields.

Some negative tests on ports were considering float to be a malformed
value, which they are not. This patch is removing those tests.

This patch is also adding tests checking for the new supported values
in the API.

The patch in Ironic adding support for multiple types is this one:
https://review.openstack.org/#/c/137762/

Change-Id: I02e95d77a90b3c1a8e203cf83cc0ec28b5460e58
2014-12-04 11:16:57 +00:00
abhishek60014726
0737310252 Test to create bulk port
Add test to create bulk port for two different network
  -Create two different networks
  -Create a network_list
  -Call a bulk port function to create a ports
  -Verify the port network_id with the network id used
  -Verify the admin_state_up of the port

Change-Id: I39e3df635f24bbe0f288bb6ccf1300ee5132725e
2014-12-03 06:22:35 -08:00
Jenkins
70f996cba7 Merge "Remove unnecessary secgroup attrs from scenario tests" 2014-12-03 13:05:58 +00:00