Commit Graph

442 Commits (5abb253c3c12fa6fe8c0407b8f394223a400090b)

Author SHA1 Message Date
Attila Fazekas 5abb253c3c Start making setup.py similar to other OpenStack Projects
* Try /etc/tempest DIR if the config file not found
* Exit immediately if the config file not found
* Remove pika from dependencies
* tempest named starter script (pep8 removed run_tests.sh)

Change-Id: I1f0b1fb061a265c5f8e39627efd26decdc61ef63
2012-12-05 19:51:26 +01:00
Jenkins 10f84cea01 Merge "Remove unused configuration variables" 2012-12-04 14:59:32 +00:00
Jenkins 4ef897c9fa Merge "Fix and simplify arbitrary_string. lp#1085048" 2012-12-04 14:58:37 +00:00
Attila Fazekas 9492d355c4 Remove unused configuration variables
* from the config sample
* from the config.py
* from the config template

Change-Id: Ic4c57f8c20d3e4107adc3a64b234fe578c4d899c
2012-12-04 13:58:15 +01:00
Jaroslav Henner 47737d88fc Fix and simplify arbitrary_string. lp#1085048
The previous behaviour:

	In [4]: data_utils.arbitrary_string(size=3, base_text='test')
	Out[4]: 'tes'

	In [5]: data_utils.arbitrary_string(size=4, base_text='test')
	Out[5]: 'testtesttesttest'

didn't seem sane. Fixed to more sane:
	In [5]: data_utils.arbitrary_string(size=2, base_text='test')
	Out[5]: 'te'

	In [6]: data_utils.arbitrary_string(size=4, base_text='test')
	Out[6]: 'test'

	In [7]: data_utils.arbitrary_string(size=6, base_text='test')
	Out[7]: 'testte

Change-Id: Idf38329b26846b15de929e7d00c6dd1353bde068
2012-12-04 00:13:21 +01:00
Jaroslav Henner 7ccda8c5c1 Simplify parse_image_id.
Change-Id: I7915e7a9f252da84fa76cec282c546444afa7c59
2012-12-03 20:00:34 +01:00
Jenkins af6fca5d69 Merge "Fix pep8 failures in test_ec2_security_groups.py" 2012-12-03 18:02:43 +00:00
Jenkins b442d09488 Merge "Fix issue with 404 logs on wait for delete." 2012-12-03 15:08:15 +00:00
Jenkins 17a1c0010d Merge "test_absolute_limits.py to check limits response" 2012-12-03 15:07:43 +00:00
Jenkins 54321742dc Merge "Don't try to cleanup volume that doesn't exist." 2012-12-03 05:50:54 +00:00
Dan Prince 9821fde485 Don't try to cleanup volume that doesn't exist.
Updates the test_volume_create_get_delete test so that it no
longer tries to cleanup when the volume variable is None.

This resolves UnboundLocalError errors which can occur in
the test suite when volumes aren't getting created correctly.

Change-Id: I483219c4bb78c9dbc21be7a974bd208014ec1740
2012-12-01 23:10:24 -05:00
Matthew Treinish 426326ec7a Fix issue with 404 logs on wait for delete.
In some cases the wait on volume deletes will receive a 404
error which results in a log output. However for these tests
this is the expected behavior so the log output isn't needed.

This adds a flag to suppress log output on 404 errors, which
is then used on all wait functions.

Fixes: bug 1084283
Change-Id: Id455a22317ecbdf318e9ad2ea0a76ad9f08ca899
2012-11-30 19:06:03 -05:00
Matthew Treinish 12eb3aaa4b Fix pep8 failures in test_ec2_security_groups.py
Change-Id: Ic2fcd64ca3441265dd1ad18e0c4eef6c559372cb
2012-11-30 16:52:14 -05:00
Dan Prince 461c4b2566 Don't log stack trace on S3/EC2 client errors.
Not all configurations of OpenStack have the EC2/S3 API's
enabled. For that matter the S3 "API" in Nova (object-store)
isn't even production ready. As such it would be really nice to
hide exceptions if the S3 and EC2 clients in Tempest can't be
configured.

Change-Id: I584c79ae3f00a215d26178002c686af2ac517c7e
2012-11-30 09:58:19 -05:00
Jenkins 5f2b39f979 Merge "Adds a Quotas client for Nova" 2012-11-30 14:16:55 +00:00
rajalakshmi-ganesan a4ab007479 test_absolute_limits.py to check limits response
This commit adds a test case that checks if all the absolute limit
values are returned in the REST call to Nova API Extension
"/limits". Also modifies limits_client.py file for JSON and XML
requests so as to make it less verbose. 'get_specific_absolute_limit'
method is added in the limits_client.py file. As method
'get_personality_file_limit' is removed, "test_server_personality.py"
is modified.

Fixes: bug #1025294
Change-Id: Id334cd73645273d7b80b25ba698d03dc5599a211
2012-11-30 15:47:53 +05:30
Jenkins f51463d7a7 Merge "Spelling: executng=>executing" 2012-11-29 15:38:11 +00:00
Rohit Karajgi 07599c524b Adds a Quotas client for Nova
* Adds a client for the 'os-quota-sets' extension
* Adds basic Admin and non-admin tests for GET and PUT operations for the
Quotas API
* Adds some tests to check Quota enforcement for create server (bug 1034453)

Fixes LP Bug #1040760
Fixes LP Bug #1034453
Change-Id: I7eb0041dbc80d8733bb2df54e4fc4755cfe9ae9c
2012-11-28 20:55:02 -08:00
Jenkins b74e5e3770 Merge "fix some typo" 2012-11-27 23:15:21 +00:00
Joe Gordon 979da33802 Spelling: executng=>executing
Change-Id: I8965640c1b9282ae218d716f25eb377e3ee7fe82
2012-11-27 11:46:59 -08:00
ravikumar-venkatesan f443a4e4fb fix some typo
Change-Id: I724797219205d9ab68e4fd9bf3af632a69e6b2b2
2012-11-27 19:16:41 +00:00
Jenkins f92620e760 Merge "Add start of the EC2/S3 API testing to tempest" 2012-11-27 16:51:11 +00:00
Attila Fazekas a23f500725 Add start of the EC2/S3 API testing to tempest
Continues the effort of the https://review.openstack.org/#/c/3064/

* add EC2 keypair and volume tests
* add EC2 snapshot from volume test
* add EC2 floating ip disasscioation
* add EC2 operation on security group
* add EC2/S3 image registration
* add EC2 instance run test
* add Integration test with ssh, console, volume
* add S3 object and bucket tests

Change-Id: I0dff9b05f215b56456272f22aa1c014cd53b4f4b
2012-11-27 14:52:26 +01:00
Daryl Walleck 3d3f610136 Adds JSON client for servers admin API
* Added JSON client for basic server admin actions

Change-Id: If9f8d67e4d57b7242b9d08a6ae29a551a515bb22
2012-11-26 16:31:55 -06:00
Jenkins c8521f2c18 Merge "Added Swift tests: * account: delete account metadata * container: retrieve/delete container metadata * object: retrieve/copy(2 ways) object Syntax bug fix in container_client.py: return resp. body => return resp, body Fixed passing headers parameter in head method in rest_client.py: return self.request('HEAD', url, headers) Removed unused imports." 2012-11-20 14:01:03 +00:00
nayna-patel ddb489cfe5 fix for Bug1078481
Change-Id: I9b730abae07cf52b0ff4fd7b74e91cc4948630f5
2012-11-20 00:09:43 +00:00
Jenkins 2c1c54d5fe Merge "use deleted=False instead of deleted=0 in queries" 2012-11-19 17:36:23 +00:00
Jenkins f13882a863 Merge "make it possible to run only one test in tempest" 2012-11-19 16:51:37 +00:00
Sean Dague aff466e020 use deleted=False instead of deleted=0 in queries
Mysql treats 0 and False as the same thing, but this isn't true for
postgresql which is much more strongly typed. Our whitebox testing
was failing on postgresql because of this assumption.

Change-Id: I1a7339814b1de6e0c5874ba5b56fc90db6fbb012
2012-11-19 07:54:55 -05:00
Jenkins 0002e9fb69 Merge "Make assertion failures more informative." 2012-11-16 22:57:16 +00:00
Jenkins d1d74c74fc Merge "exclude venv directories from local pep8" 2012-11-16 22:35:44 +00:00
Sean Dague c38bdd1173 be specific about metadata too long error
Tempest was catching a generic fail on the metadata too
long call, but a very specific error is supposed to be returned,
a 413. In real runs there was a bug in nova which crashed on the
request (fixed in https://bugs.launchpad.net/nova/+bug/1079387).

Fix tempest to only accept a 413 as valid on this request.

Make this an assertRaise test instead of a negative test

Change-Id: Id09394abc863ecd773f56dbc8a965d87ae7dde97
2012-11-16 10:50:44 -05:00
Sean Dague 422af977fe make it possible to run only one test in tempest
we were always adding 'tempest' to the list for tests in
run_tests.sh, which didn't let you use the wrapper for running
a single tempest test. This change should fix that.

Probably could be cleaner, but my bash-fu is weaksause.

Change-Id: I5a3600b14214dd38be505481dad5ab72998df386
2012-11-16 10:09:46 -05:00
Sean Dague 24e0f7f8d3 exclude venv directories from local pep8
make it more straight forward to run local pep8
by excluding any venv directories in your tree

Change-Id: Iecd0cb720a2254ff47c7d8209dd5a607e4d2fa93
2012-11-16 10:07:28 -05:00
Jaroslav Henner 3c3d179443 Make assertion failures more informative.
The assertIn, assertEquals and other assertions will output more information
than assertTrue, which outputs:
False is not True
on failure.

Change-Id: Ibbf90a479174d16cac5361519643b55744678a84
2012-11-16 10:28:47 +01:00
Larisa Ustalov 6c3c780556 Added Swift tests:
* account: delete account metadata
      * container: retrieve/delete container metadata
      * object: retrieve/copy(2 ways) object
Syntax bug fix in container_client.py:
      return resp. body => return resp, body
Fixed passing headers parameter in head method in rest_client.py:
      return self.request('HEAD', url, headers)
Removed unused imports.

Change-Id: Ica67d6ecae80f851e9e05ebeb4c7d461eba143ee
2012-11-12 09:41:21 +02:00
David Kranz 92d3f6308c Remove unnecessary test. Fixes bug 1072841.
Providing a bad status is no longer a failure so this case is not needed.

Change-Id: Id0b2282bf23c3ccd50e967111e943f93fc4ea683
2012-11-08 13:34:01 -05:00
Jaroslav Henner e27a4bfad8 Fix SyntaxError: invalid syntax - comma.
File "/var/jenkins/workspace/openstack-tempest_on-slave_testing/tempest/tempest/services/object_storage/account_client.py", line 36
    headers = {"X-Storage-Token", self.token}
                                ^
SyntaxError: invalid syntax

Change-Id: I850aba75a28edfd2990accadfb0f3e7115eba864
2012-10-23 17:16:46 +02:00
David Kranz 1301f8d026 Remove kong. Fixes bug 1052511.
Change-Id: I5e027c9539fd2c594d24447866e79c8caad9aa40
2012-10-22 17:03:47 -04:00
dwalleck e62b9f020e General cleanup/organization of compute tests
* Renamed services/nova to compute
* Added OpenStack license where missed to compute services/tests
* Broke down compute tests into separate packages by functionality

Change-Id: Ibb1f3ec74b83816205a0bed7d0e062ebf9677525
2012-10-16 13:25:11 -07:00
Wayne Vestal Weeks e6d43b804c flavors with disk sizes of 10 10 20 30 would fail unexpectedly before since flavor[1]['disk'] == flavor[0]['disk]
ammended for trailing whitespace

Fixes bug 1066121

Change-Id: Ic941d35a0d92ae37d0a8cb2123165f19392b0c8e
2012-10-12 18:15:38 -04:00
Jenkins 367603a2fe Merge "Tempest tests to cover live-block-migration" 2012-10-12 13:53:05 +00:00
Jenkins d246eb4350 Merge "Initial add of Swift tests" 2012-10-11 23:26:08 +00:00
Jenkins 3d7c5c78e0 Merge "Handle ImportError's when quantumclient is missing" 2012-10-10 20:49:22 +00:00
dwalleck 5d734431e2 Initial add of Swift tests
* Added Swift client
* Added Swift configuration
* Added basic Swift tests for objects, containers, and accounts

Change-Id: I92ac9f69f3e8fe227dff55a2a5b55001f37acb73
2012-10-10 15:45:51 -05:00
Dan Prince a4b709c80a Fix 'message' is not defined errors.
Updates the Tempest common rest client so that it sets the
'message' variable value in all cases. Previously some exceptions
could slip through and cause 'message' is not defined errors.

Change-Id: I09ec8a311fd60ab3b625f41a8eb4147fe5f777eb
2012-10-10 12:27:59 -04:00
Dan Prince bff5223950 Handle ImportError's when quantumclient is missing
Updates tempest/manager.py so that it ignore's ImportError
exceptions when quantumclient is not present.

Not all Tempest tests require a quantumclient so it makes sense not
to require it all the time. If a user tries to run quantum specific
tests they will simply get an error when trying to create the
network client instead should quantumclient not be present.

Change-Id: Iea5476eea91e0d92c3b4728f041a3ce72bb5a320
2012-10-10 11:50:44 -04:00
Wayne Vestal Weeks fa07a0e04e Added missing import for SkipTest in test_authorization.
Fixes bug 1058281

Change-Id: I41d706aeb67c9555bee0113247855b4a077775eb
2012-10-05 14:54:02 -04:00
Mate Lakat 99ee91441c Tempest tests to cover live-block-migration
Related to bug 1051881.

Two test cases: one to cover the live block migration on XenServer, and
the other to indicate that the machine status is left in an inconsistent
state in case a non-existing host is specified as target.
To run the live-migration tests with block migration, include:

    [compute]
    live_migration_available = true
    use_block_migration_for_live_migration = true

in your tempest.conf

To run these tests, the hypervisors must support the Storage XenMotion
feature.

Change-Id: I1e6cc903fa573ecd219a08bf4dddd9cc1f4f60df
2012-10-05 17:12:44 +01:00
Jay Pipes 444c3e64ed Refactor list servers negative test and fix remaining gate bugs
test_list_servers_negative had so many issues with it, it's hard
to list them here... but at least the following has been fixed:

* No longer will the test flatly delete all instances the tenant
  and alt tenant have during every test method run (!!)
* Fixtures -- 2 active and 1 deleted server -- are created in the
  class' setUpClass() method instead of having test methods
  constantly re-launch instances -- this reduces the test time
  down about 3 minutes
* Removed all non-negative tests
* Removed all tests that were skipped due to bugs that have been
* Skip the XML create_service() test for Identity Admin tests
  because of the upstream Keystone bug 1061738

This patch also includes patches for bug fixes that Sean Gallagher
contributed but needed to be rebased into this one in order
to get the full gate to pass.

Change-Id: I0b38cf045520d93031c7916dae2479daf69d0411
fixes: LP bug #1059802
fixes: LP bug #1060373
fixes: LP bug #1061740
fixes: LP bug #1061167
2012-10-04 19:26:35 -04:00