Commit Graph

31 Commits (0ea2c01d757375d54aa9a9de34c2c9995bb48d13)

Author SHA1 Message Date
Slawek Kaplonski 79d8b0ff9b Log server console output during create/get timestamp
Methods {create,get}_timestamp now have possibility to
pass "server" variable to it.
That allows to log instance's console output in case if
SSH to instance would not be available.

Change-Id: I1352e9d559e67510917c2eecd9ecbbb387fdfdb6
2018-07-30 22:46:56 +02:00
Andrea Frittoli cd36841ca2 Move test decorators to common
services and extension decorators are based on CONF and needed by
Tempest only, so moving them to tempest.common.
Since a few plugnis use them today, use debtcollector to avoid
breaking all dependencies.

Change-Id: Ibd52153d00b8e60fb8c89e38d94e358ddc787251
2017-08-23 17:09:33 +00:00
Jordan Pittier 3b46d27c90 Move the `attr` decorator from to tempest/lib
I think it's a good idea to move all utility decorators into
tempest/lib/ This patch does that for the `attr`

Change-Id: Iaafbb112b6eee458089cc49918359a8a8d0485e2
2017-04-14 11:16:36 +02:00
Sean Dague 49505df20f make -e full run tempest scenarios serially
The scenario tests end up generating a large load on target
environments. In most cases this means the whole system is running at
an extremely unrealisticly high load, and many of our scenario
failures are probably traceable back to this.

This classifies many more scenario tests as slow so that during normal
full runs they are not run, they are still accessible for running with
the tox -e all flag.

Selection based on

Depends-on: Ia303773cabffc25d910cd1c0950d6739592bade6
Change-Id: I35cf4a77ff61d04ed8be58acff3edf47b1ae36f7
2017-03-03 20:50:46 +00:00
zhufl 6b7040a511 Add skip if public_network_id is not specified
If public_network_id is not specified in tempest.conf,
the testcases using it should be skipped, otherwize we will
get errors like:
    BadRequest: Bad request
    Details: {u'message': u"Invalid input for external_gateway_info.
              Reason: '' is not a valid UUID.",
              u'type': u'HTTPBadRequest', u'detail': u''}

Besides, _create_router in dynamic_creds will try to create_router
using self.public_network_id as external_gateway_info, which will also
raise Error when self.public_network_id is None, so here is to pass
external_gateway_info to create_router only when self.public_network_id
is not None.

Change-Id: I567f9a51d301bcfea782d549298dbd3a598f3b85
2017-02-15 15:08:24 +08:00
lkuchlan 8816ec5afa Remove redundant parameters for server creation
It's unnessesary to specify 'image_id', 'flavor' and 'wait_until'
parameters, since those parameters are already specified in the
common wrapper utility 'create_test_server'.

Change-Id: I9e070fd9122bcb083f1621b82cb1adc502f9986b
2017-02-14 09:08:52 +02:00
zhufl 13c9c893cc Make wait_until default as 'ACTIVE' in manager.create_server
All callings to manager.create_server pass wait_until='ACTIVE',
so this is to make wail_until default as 'ACTIVE', not None.

Change-Id: I630cf047ed419fbf0cc073b5984fa29b456da451
2017-02-10 14:53:20 +08:00
Ken'ichi Ohmichi c85a951881 Switch to decorators.idempotent_id on scenario
So many modules are using test.idempotent_id and this is for
switching to decorators.idempotent_id on scenario.

Change-Id: Ieae5a2ee6937ad4339aff531eadc5e4986d7ec42
Related-Bug: #1616913
2017-02-06 15:17:31 -08:00
Xiangfei Zhu 0b5dca099f Fix test_shelve_volume_backed_instance
test_shelve_volume_backed_instance actually created an instance with the
volume attached as a data disk rather than the root disk. This fix makes
it create an instance with the volume as the root disk.

Change-Id: I719aa7ec2507b7936c08d17108511260830ad099
Closes-Bug: 1613946
2016-08-16 21:26:50 -07:00
zhufl 8ed23d2645 Use skip_checks instead of skipUnless in TestShelveInstance
All testcases in TestShelveInstance should be skipped if
CONF.compute_feature_enabled.shelve is false, so this is to
use skip_checks to avoid adding skipUnless decorator for
each testcase individually.

Change-Id: I41f57fc92cf0294e922b87667b84d4aa3ac87663
2016-07-13 13:48:12 +08:00
ghanshyam 017b5fe060 Move shelve server logic in compute utility
shelve server logic has been duplicated many place and
also needed by more tests.

It better to make that a utils function and used from there.

Change-Id: I391f0bb92da1ddc76efcf026e8dea536edfd3706
2016-04-15 18:49:26 +09:00
Jenkins 97f119f978 Merge "Remove redundant import from scenario tests" 2016-02-06 00:42:36 +00:00
Sean Dague 20e9861d51 Consolidate the ssh code
The entire mechanism for ssh validation is a mess. The fact that there
is a parameter which is server_or_ip, so you never know if it's an
object or an address, and that every one of 7 layers need to handle
either case, makes doing any enhancements here for failure detection

This change implements a get_server_ip method that gets the fixed or
floating IP address before passing it to the remote client.

Change-Id: I76d818bf9e1bd26b1e499464fc9213764afee279
2016-01-29 08:50:21 +00:00
Alexander Gubanov ea75ca9cc1 Remove redundant import from scenario tests
Change-Id: I8dc5b70fd80ee2c2683d88b808a3bfeb8cbd34ef
2016-01-26 13:43:13 +02:00
lanoux 5fc14522c6 Migrate scenario tests ssh-auth-strategy
Migrate the scenario tests to the new ssh-auth-strategy.

Partially implements: blueprint ssh-auth-strategy

Change-Id: I50759d32e47d975ec64ca129a13b2ae4459917e4
2015-12-01 16:02:01 +00:00
Jenkins cca55181f9 Merge "Move get_server_or_ip method to common class" 2015-11-18 04:14:05 +00:00
Alexander Gubanov c8829f8b44 Move get_server_or_ip method to common class
Moved to common class duplicate part of code for "get server or IP"
which used in few scenario tests.

Change-Id: I6368c24764e2515dc8bbcd82d1b0623c24bc77cd
2015-11-17 11:28:44 +02:00
Ken'ichi Ohmichi c4e4f1cb3f Fix H404/405 violations for scenario tests
There is a lot of H404/405 violations in Tempest now, and that leads
difficult to migrate the code to tempest-lib or the other projects'
repos. This patch fixes these violations for scenario tests.

Change-Id: Ia2b3cdbd0da49eeb16742c1eed05ea56ca41a8f7
2015-11-17 09:15:12 +00:00
Alexander Gubanov 2388e2a9c3 Modify scenario tests
Replaced floating_ip methods in few scenarios tests
already implemented in basic class.

Change-Id: I4e92e349ae29b20f62e6e49b5f80a54d06ee9f0a
2015-11-07 11:16:28 +02:00
Matt Riedemann 73764bf6ec test_shelve_instance: cleanup class scope variable usage
This removes the class variables for keypair and security group
so we don't rely on tight coupling between method calls.

Change-Id: I8cdec35cbf3ca168c3d9979a771caa7221d4b511
Related-Bug: #1482299
2015-10-14 11:50:59 +02:00
Alexander Gubanov abd154c87a Refactor tempest scenarios tests
Moved methods "write_timestamp" and "get_timestamp",
which are duplicated in few scenarios, to the common class.

Change-Id: I527557a3cf3618ffa6589dbd1dbc92f2268ed50e
2015-09-29 23:24:10 +03:00
Jenkins 9f7568ad76 Merge "Fix typos in scenario tests, etc." 2015-09-19 17:26:20 +00:00
Takashi NATSUME 6d5a2b44b1 Fix typos in scenario tests, etc.
a instance => an instance
paramater => parameter
suported => supported
Openstack => OpenStack

Change-Id: Ib6842634161f233986665424e76d9067cb1520d6
2015-09-09 18:24:45 +09:00
PranaliDeore 9fe5eb311b Add shelve/unshelve volume backed instance test
Added missing testcase for unshelving a volume backed instance.

Closes-Bug: 1476622
Depends-On: Ic023853dbd787f0f29877d6135adb7299a87abdb
Change-Id: I46422a0829323340bc95213ba90b22163b9520f0
2015-08-25 11:01:33 +00:00
ghanshyam 9a3a9a2ee8 Return complete response from floating_ips_client
Currently compute floating_ips_client returns Response by removing
top key from Response.
For example-
return service_client.ResponseBody(resp, body['floating_ip'])

As service clients are in direction to move to Tempest-lib, all
service clients should return Response without any truncation.
One good example is Resource pagination links which are lost with current
way of return value. Resource pagination links are present in parallel
(not inside) to top key of Response.

This patch makes compute floating_ips_lient to return complete
Response body.

Implements: blueprint method-return-value-and-move-service-clients-to-lib

Change-Id: Ib11e815a944321589dd618c7696249f0e0eb3938
2015-08-18 17:03:55 +09:00
Ken'ichi Ohmichi 0eb153c636 Remove wait_for_server_status from servers_client
wait_for_server_status of compute client just calls the one of waiters
module and the method is a wrapper.
So the method seems redundant and it doesn't fit as service clients.

This patch removes wait_for_server_status from compute client and
replaces it with waiters' one.

Partially implements blueprint consistent-service-method-names

Change-Id: Ie821ea4ba0924b71caba80132e1c383fb5bb125d
2015-07-13 23:33:06 +00:00
Doug Hellmann 583ce2c043 Update all Oslo module use
Use graduated libraries where available and update the incubated modules
that remain.

Update imports for libraries that were being used already to avoid the
'oslo' namespace package.

Update config file for creating example configuration files and provide
a new sample file based on the options defined in the libraries.

Note: because of the number of libraries involved there is no real way
to break this change up into smaller pieces. Fortunately, most of the
changes are just to import statements.

Change-Id: Ia0de957b681cb924a57af98d99a9389ee234ed5b
2015-03-11 21:07:56 +00:00
Chris Hoge 7579c1a40e Add UUIDs to all tempest tests and gate check
Adds uuid4 as a decorator of the form:
to every test in the Tempest tree. Includes a gate check to
ensure the existence and uniqueness of the ids.

Modify check tool to ignore Tempest unit tests.

Change-Id: I19e3c7dd555a3ea09d585fb9091c357a300e6559
Co-Authored-By: Sergey Slipushenko <>
Implements: bp test-uuid
2015-02-26 16:05:16 -08:00
David Kranz e4e3b4100f Change fixed/floating ip clients to return one value and update tests
Add ResponseBodyData for cases like delete_floating_ips_bulk where a
string is returned as the body. The client has to dereference the data
but I think this is a bit cleaner than having some methods return two values.

Partially implements: blueprint clients-return-one-value

Change-Id: I87b092b2dd2a231049fc39312038f2a2d5101028
2015-02-11 10:25:12 -05:00
Ken'ichi Ohmichi 1b3461e6e8 Remove unnecessary secgroup attrs from scenario tests
Nova "create a server" API refers a security group name only in
security group attributes, but current scenario tests pass the
other attributes(rules, tenant_id, description) also.
That will be a problem on Nova v2.1 API because the API denies
unnecessary attributes for strict validation.
This patch removes them.

Change-Id: I764f00fc1e6a5486367a95a44976e41293aa84c0
2014-12-02 10:48:20 +00:00
JordanP c240f7bcd9 Add a shelve/unshelve scenario
Current test of shelve/unshelve in api/compute/servers/test_server_actions
only checks the API. Nova Bug #1257594 shows that shelve was once not
reliable. This addition should prevent this bug from ever coming back.

Change-Id: Ie9c28e0f17e25f75ce435ac574244cd3c3c69c9a
2014-11-17 13:17:43 +01:00