8160 Commits

Author SHA1 Message Date
Jenkins
22dd1c9d94 Merge "Use tempest.lib clients for bulk ops" 2016-03-04 07:56:23 +00:00
Jenkins
63053dbeff Merge "Unit tests: mock some time.sleep and time.time" 2016-03-04 07:08:54 +00:00
Jenkins
ff88f4c3c4 Merge "Make network clients use rest_client" 2016-03-04 05:59:43 +00:00
Jenkins
6596dbd666 Merge "Make identity clients use rest_client" 2016-03-04 05:40:59 +00:00
Jenkins
523033a396 Merge "Make image clients use rest_client" 2016-03-04 05:37:57 +00:00
Jenkins
c3ccd11d17 Merge "Make volume clients use rest_client" 2016-03-04 05:26:12 +00:00
Jenkins
9dcc388d19 Merge "Make database/telemetry clients use rest_client" 2016-03-04 05:21:53 +00:00
Ken'ichi Ohmichi
1f52fd92df Use tempest.lib clients for bulk ops
We have duplicated bulk ops code on tempest.lib and network_client
module. So this patch removes these methods from the module and
makes tests use tempest.lib ones for the code cleanup.

Change-Id: I685be88bbd47837d99b49938cfaa66ff2e199cb3
2016-03-03 12:27:57 -08:00
OpenStack Proposal Bot
7e48e4c6e5 Updated from global requirements
Change-Id: I7442a698a22deefafed8b3449df0378a1f3a3ffd
2016-03-03 18:07:50 +00:00
Ken'ichi Ohmichi
70172a717c Make network clients use rest_client
Now service_client is unnecessary because that is the same as
rest_client. This patch makes network clients use the rest_client,
and we will remove service_client for the cleanup in the future.

This patch removes these clients from a certain test because this
test is just for service_client, not rest_client as the test name.
We have added this test for verifying all arguments are passed into
rest_client via service_client. However, this patch some clients use
rest_client directly, so this test becomes meaningless for these
clients. That is a reason why the migrated clients(into tempest.lib
before) are not contained in this test.

Partially implements blueprint consistent-service-method-names

Change-Id: I1922d0937162827f5c720bf3d331f9c7695506d2
2016-03-03 09:47:27 -08:00
Ken'ichi Ohmichi
d35a133c26 Make identity clients use rest_client
Now service_client is unnecessary because that is the same as
rest_client. This patch makes identity clients use the rest_client,
and we will remove service_client for the cleanup in the future.

This patch removes these clients from a certain test because this
test is just for service_client, not rest_client as the test name.
We have added this test for verifying all arguments are passed into
rest_client via service_client. However, this patch some clients use
rest_client directly, so this test becomes meaningless for these
clients. That is a reason why the migrated clients(into tempest.lib
before) are not contained in this test.

Partially implements blueprint consistent-service-method-names

Change-Id: I5de906bcc0e32063ff17ee75f8dcf91b99165d03
2016-03-03 09:47:27 -08:00
Ken'ichi Ohmichi
e76510d0eb Make image clients use rest_client
Now service_client is unnecessary because that is the same as
rest_client. This patch makes image clients use the rest_client,
and we will remove service_client for the cleanup in the future.

This patch removes these clients from a certain test because this
test is just for service_client, not rest_client as the test name.
We have added this test for verifying all arguments are passed into
rest_client via service_client. However, this patch some clients use
rest_client directly, so this test becomes meaningless for these
clients. That is a reason why the migrated clients(into tempest.lib
before) are not contained in this test.

NOTE: This patch changes __init__() of images_client to use
      **kwargs because service_client removed them if each value
      is None, but rest_client doesn't do it. The purpose of the
      __init__() is just for calling self.skip_path(), so this
      change is more readable also.

Partially implements blueprint consistent-service-method-names

Change-Id: I6655b31239d4f3d0c4601b875a4a26778fc9dd2d
2016-03-03 09:47:17 -08:00
Ken'ichi Ohmichi
90d446a34d Make volume clients use rest_client
Now service_client is unnecessary because that is the same as
rest_client. This patch makes volume clients use the rest_client,
and we will remove service_client for the cleanup in the future.

This patch removes these clients from a certain test because this
test is just for service_client, not rest_client as the test name.
We have added this test for verifying all arguments are passed into
rest_client via service_client. However, this patch some clients use
rest_client directly, so this test becomes meaningless for these
clients. That is a reason why the migrated clients(into tempest.lib
before) are not contained in this test.

Partially implements blueprint consistent-service-method-names

Change-Id: I1f7d8bfdb23500342984508333321422f8e2366b
2016-03-03 09:41:30 -08:00
Ken'ichi Ohmichi
9086eea7c9 Make database/telemetry clients use rest_client
Now service_client is unnecessary because that is the same as
rest_client. This patch makes database and telemetry clients
use the rest_client, and we will remove service_client for the
cleanup in the future.

This patch removes these clients from a certain test because
this test is just for service_client, not rest_client as the
test name. We have added this test for verifying all arguments
are passed into rest_client via service_client. However, this
patch some clients use rest_client directly, so this test becomes
meaningless for these clients. That is a reason why the migrated
clients(into tempest.lib before) are not contained in this test.

NOTE: This patch changes __init__() of versions_client to use
      **kwargs because service_client removed them if each value
      is None, but rest_client doesn't do it. The purpose of the
      __init__() is just for calling self.skip_path(), so this
      change is more readable also.

Partially implements blueprint consistent-service-method-names

Change-Id: Ie99bbbe7655138c4c3ecae69ae0b361198a9651d
2016-03-03 09:40:15 -08:00
Jenkins
e257898517 Merge "Tokens need user domain be created correctly" 2016-03-03 17:07:48 +00:00
Jordan Pittier
0e53b61f85 Unit tests: mock some time.sleep and time.time
Similar to what Cinder did here [1], this patch mocks time.sleep
to make tests run faster. Some code actually measure the wall clock
to wait for a specific duration before raising a TimeoutError, so
we also need to mock time.time.

This removes ~5sec in unit test and also removes some busy waiting.

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

Change-Id: I69ba35eff591a5df28049273f3aba15c31f52d00
2016-03-03 14:33:45 +01:00
Jenkins
2881a59d70 Merge "Add more detail info to EndpointNotFound" 2016-03-03 11:30:34 +00:00
Jenkins
8eb795b08f Merge "Make object/orchestration clients use rest_client" 2016-03-03 11:30:13 +00:00
Jenkins
392d47c2ea Merge "Fix ambiguous method name" 2016-03-03 11:29:54 +00:00
Jenkins
d37f98d9eb Merge "Make identity service client class name consistent" 2016-03-03 11:25:17 +00:00
Jenkins
9984801b85 Merge "Security Groups multi-node scenario" 2016-03-03 07:59:21 +00:00
Yair Fried
9591412eb0 Fix ambiguous method name
Change-Id: I58a3b2e733637241f97b94f3cbe580b218f95c03
2016-03-03 09:14:40 +02:00
Jenkins
ca6f1646a7 Merge "Fix test_get_service_by_host_name" 2016-03-03 05:29:21 +00:00
Jenkins
0bb28b1eb7 Merge "Add LOG.info to boot from volume tests" 2016-03-03 05:29:11 +00:00
Jenkins
f6b16007db Merge "Implement TIMEOUT_SCALING_FACTOR for tempest" 2016-03-03 05:16:15 +00:00
Ken'ichi Ohmichi
b6cf83a64f Add more detail info to EndpointNotFound
When EndpointNotFound exception happens, the detail contains service
value only, but the exception depends on the other values also.
So this patch adds these value to EndpointNotFound exception for
more easy debugging.

Change-Id: I05095e6ce56bc62485e964241047fd3b3864f181
2016-03-02 17:59:02 -08:00
Ken'ichi Ohmichi
19f68817fc Make object/orchestration clients use rest_client
Now service_client is unnecessary because that is the same as
rest_client. This patch makes object_storage and orchestration
clients use the rest_client, and we will remove service_client
for the cleanup in the future.

This patch removes these clients from a certain test because
this test is just for service_client, not rest_client as the
test name. We have added this test for verifying all arguments
are passed into rest_client via service_client. However, this
patch some clients use rest_client directly, so this test becomes
meaningless for these clients. That is a reason why the migrated
clients(into tempest.lib before) are not contained in this test.

Partially implements blueprint consistent-service-method-names

Change-Id: I763107de6a9f7b411a5892d2c53dcf99b7afa3ef
2016-03-02 17:32:32 -08:00
Jenkins
4aaa54936c Merge "Make compute keypairs_client use rest_client" 2016-03-03 01:17:56 +00:00
Sean Dague
02620fdfe4 Implement TIMEOUT_SCALING_FACTOR for tempest
This is a pattern we've had in Nova for a while that allows individual
test classes to be marked as slower. This timeout adjustment is needed
for test_volume_boot_pattern because going up and down with 3 guests,
and cleaning them all up, plus volumes and snapshots, takes
time. Especially on slower personal equipment. These fail for people a
lot, which makes them think their devstack is broken. And it means
that it leaves crud around when it times out, which ruins follow on
runs.

Change-Id: Ibf21bdf44339d00f0291d0ff14eb6bcc69798ccc
2016-03-02 15:52:51 -05:00
Jenkins
63b2183ee4 Merge "Added processing /compute URL for getting list of versions" 2016-03-02 20:51:16 +00:00
Jenkins
17faf86cb1 Merge "Use isinstance instead of type" 2016-03-02 17:08:47 +00:00
Jenkins
09a6015543 Merge "Make data_processing/baremetal use rest_client" 10.0.0 2016-03-02 14:55:33 +00:00
Yair Fried
ca5cfb5ef0 Security Groups multi-node scenario
If multi-node is enabled, tests traffic and secgroup across multiple
compute nodes. Uses different_host as scheduler_hints to distribute
servers

Fixes call to secgroup-rule creation to use proper tenant.

Change-Id: I6c2d04656beb7fd04e365cae01293561a8c0446f
2016-03-02 16:47:25 +02:00
Sean Dague
52abbd93a2 Add LOG.info to boot from volume tests
These tests fail a lot, more than nearly any other tests we have. When
reading the REST logs it's a bit hard to figure out what we were
conceptually doing because we repeat many of the same actions over and
over again.

This adds some LOG.info to provide a road map when looking at logs.

Change-Id: Ic9e3bf9b5720d6f250c9b003357ba4bc5fdebbe3
2016-03-02 08:27:22 -05:00
Jenkins
3492856f14 Merge "Add release notes for upcoming release" 2016-03-02 11:05:06 +00:00
Yuriy Nesenenko
2e10c9448f Fix test_get_service_by_host_name
This patch deletes skip decorator used in test_get_service_by_host_name
for making only one-way dependencies. This patch fixes this issue.

Related-Bug: #1530144
Change-Id: Id72863c4a4fa77aff42a7e69e7e8be8080166ae5
Depends-On: I21775106693176ca128dbfd9db0d43cfc58de00a
2016-03-02 10:45:39 +02:00
Jenkins
9d691b972a Merge "Properly handle failures during resource cleanup" 2016-03-02 07:07:37 +00:00
Ken'ichi Ohmichi
3ee057e3f8 Make compute keypairs_client use rest_client
Now service_client is unnecessary because that is the same as
rest_client. This patch makes keypairs_client use the rest_client,
and we will remove service_client for the cleanup in the future.

Partially implements blueprint consistent-service-method-names

Change-Id: I250c7a4de9585dd299cddd515e141635095d1a5a
2016-03-02 13:51:51 +09:00
Ken'ichi Ohmichi
322e44328e Make data_processing/baremetal use rest_client
Now service_client is unnecessary because that is the same as
rest_client. This patch makes both data_processing_client and
baremetal_client use the rest_client, and we will remove
service_client for the cleanup in the future.

This patch removes these clients from a certain test because
this test is just for service_client, not rest_client as the
test name. We have added this test for verifying all arguments
are passed into rest_client via service_client. However, this
patch some clients use rest_client directly, so this test becomes
meaningless for these clients. That is a reason why the migrated
clients(into tempest.lib before) are not contained in this test.

Partially implements blueprint consistent-service-method-names

Change-Id: Icf85bcde4c0d1ee644c950323f4c6abe3b86a24e
2016-03-02 13:46:04 +09:00
Matthew Treinish
5ae7580305 Add release notes for upcoming release
The upcoming tempest release will include the stable library interface
this commit adds a release note for that and all the required supported
openstack releases boilerplate.

Change-Id: I87105c647f6cc621bbdd77ff1c44457dd1573276
2016-03-01 11:33:05 -05:00
Jenkins
37967561f0 Merge "Split roles_client for keystone v3 client" 2016-03-01 16:22:59 +00:00
Jenkins
611f304805 Merge "Instance ID was corrected" 2016-03-01 07:24:32 +00:00
Jenkins
54983e2829 Merge "Python 3 deprecated the logger.warn method in favor of warning" 2016-03-01 06:11:33 +00:00
Jenkins
0aeea56f18 Merge "remove largeops test" 2016-03-01 06:11:22 +00:00
Jenkins
fdf5cb791c Merge "Add documentation for the library interface" 2016-03-01 04:47:21 +00:00
Jenkins
e4df937d09 Merge "Updated from global requirements" 2016-03-01 02:51:18 +00:00
Andrea Frittoli (andreaf)
d9a18b0449 Properly handle failures during resource cleanup
The current code that cleans-up network resouces from the dynamic
credentials provider does not account for failures during the
cleanup itself (apart from 404).

When the cleanup is triggered by a failure during the setup, the
original failure is hidden which makes debugging impossible.

Catching all exceptions on cleanup, logging a warning and
re-rasing the original exception should fix that.

Fixes bug 1551264

Change-Id: I49dbb314a09fd9b49c9604bc8b5b8ed03ff218d4
2016-02-29 23:17:10 +00:00
Matthew Treinish
55511d98f1
Add documentation for the library interface
This commit adds documentation for the library interface, formerly
known as tempest-lib, and the release versioning.

Partially implements bp tempest-lib-reintegration

Change-Id: I623222a17fe3563bbe767fa803e8f771a21687a1
2016-02-29 15:35:26 -05:00
Arx Cruz
24bcb88767 Split roles_client for keystone v3 client
Partially implements blueprint consistent-service-method-names

Change-Id: Ib2b71d210f479f636e2998ae241117c8706286f3
2016-02-29 16:05:28 +00:00
Tom Cocozzello
5e3cff1d49 Tokens need user domain be created correctly
When calling get_token() there are many assumptions on the
domain when user_domain_id or user_domain_name and
project_domain_id or project_domain_name are not specified.
This is okay when running tempest against devstack, since
the user is in the default domain but in productions the
test user is rarely in the default domain. Instead we should
also pass user_domain_id or user_domain_name and
project_domain_id or project_domain_name to
get_token to create a token.

If there is a case where user_domain_id is None when passed
to get_token() the previous functionality still takes into effect.
Assuming the user is in the 'Default' domain.

Change-Id: I78c472f2284a8641c0c7cf0b3e0994984a04c5b0
Closes-Bug: #1548987
2016-02-29 14:33:50 +00:00