4014 Commits

Author SHA1 Message Date
Daryl Walleck
8a707dbd9d Addresses LP#917976
* Adds basic logging when exceptions occur

Change-Id: I29fc8f72f593437fdc8b0433182d55465e5d26f0
2012-01-29 21:07:51 -06:00
sapan-kona
ed37d73aa1 Fixes LP#902358 - Test case for Floating IPs
Adds test cases for Nova's Floating IP extension

Change-Id: Ic5d7d86161ab43bfd37727d3f89042a5b188c80d
2012-01-27 23:22:20 +05:30
sapan-kona
f1e3f00afc Fixes LP#903978 - Write testcases for test_server_actions (boundary)
Adds test cases for reboot and rebuild of non-existing server

Made a few style-related fixups
Changed the error response code from 422 to 404 and converted the indentation
to 4 space width.
Added nonexistant server action tests for reboot and rebuild
Restored the deleted new lines.

Change-Id: I61d0ff23c90811467e7f710450e23bee53cf2e22

Added nonexistant server action tests for reboot and rebuild

Change-Id: I61d0ff23c90811467e7f710450e23bee53cf2e22
2012-01-25 23:31:51 +05:30
Jenkins
b2be8365d8 Merge "Added flavor filter tests: lp899979, lp899980, lp899982 * Modified flavor service to return results in line with other services * Added bug flag to tests that are failing due to known issues" 2012-01-24 20:42:52 +00:00
Jenkins
2b68e8ef39 Merge "Fixes LP#920812 - KeyError: 'overLimit' on 413 return" 2012-01-24 19:08:20 +00:00
Daryl Walleck
74d040956a Added flavor filter tests: lp899979, lp899980, lp899982
* Modified flavor service to return results in line with other services
* Added bug flag to tests that are failing due to known issues

Change-Id: Icd167c58f7782b12e757cde7fa8ce4b4f505cb6c
2012-01-23 22:39:22 -06:00
Jay Pipes
745259cba5 Fixes LP #920782 - Malformed request URL
Sometime recently, the tenant ID instead of the tenant Name
was used in Compute URLs, and we were appending the tenant Name
to the management URL returned from Keystone improperly.

This patch grabs the tenant ID from the returned management URl
and appends the tenant ID instead of the tenant Name.

Change-Id: I4d4d23b3722c5c67463592397c5b23c5f3281c30
2012-01-23 23:38:57 -05:00
Jay Pipes
9b04384ac9 Fixes LP#920812 - KeyError: 'overLimit' on 413 return
Turns out that over quota limit and over ratelimits
return different keys in the faults. This patch adds
a new exception for RateLimitExceeded that handles
413 returns when there is an overLimitFault key (and
not the overLimit key that is in the over Quota fault)

Change-Id: I64d10cb592512e7de71c5d8518131deee516d9b2
2012-01-23 23:34:26 -05:00
Adam Gandelman
5fb94929e5 KeyPairsClient: Configure client to query nova service from Keystone catalog
Change-Id: Ibf2fe805a92d178de0792bb42c2cd3df721c625e
2012-01-23 16:20:46 -08:00
kavan-patil
2eb350f711 Added Keypair extension (os-keypairs) client and tests LP#900139
Change-Id: I34c7e9aa6a1796b8d4c3ac9b3b69438796752866
2012-01-23 07:50:34 +00:00
Jay Pipes
5067728a02 Adds Images API tests
* Adds new images API tests in tempest/tests/images
* Adds tempest.openstack.ServiceManager class to deal with non-Compute API
  clients
* Adds an [image] section to the configuration file and manager
  that deals with Image API stuff
* Updates the tools/conf_from_devstack script to write an image
  section to the generated tempest.conf

This is all in preparation for removing the functional integration
tests from Glance and putting them in Tempest...

Change-Id: I6caf50e5cab97794204472151acc88fcdd0fc224
2012-01-20 16:49:10 -05:00
David Kranz
d3bb405282 Don't set multiple images if image_ref_alt is the same as image_ref. Fix typo
in skip_unless_addr.

Change-Id: Ib106fc4a8ac895f44c903aa3ba6f66765bd5f121
2012-01-20 15:08:40 -05:00
sapan-kona
0779dfd306 Fixes LP Bug#903969 - Image metadata boundary tests
Adds boundary tests for image metadata in Compute API

Changed the indentation to 4 space width.
Added nonexistant tests for image metadata operations

Change-Id: Ife6324f7eb55ef71315a9775993c431849ad2d45
2012-01-20 02:27:42 +05:30
Jay Pipes
5135bfcea5 Rework exceptions in Tempest
* Add base exception class similar to other OS projects
* Catch certain HTTP errors and raise exceptions in base
  client classes
* Fixes LP Bug#899701 by adding tearDownClass() method
  to the test_list_images.ListImagesTest class to destroy
  images and instances the test case creates

Change-Id: I0f616813539b31da27e5106a59c2ca3765b1919f
2012-01-18 13:06:42 -05:00
Jenkins
ddd5a97365 Merge "Fix for bug917490 * Adds a wait for the image to become active before deleting it" 2012-01-17 22:10:34 +00:00
Ravikumar Venkatesan
af7ab1c1e6 import error on security groups clientfix 917867
Change-Id: I93d75cfb613c83764ad60ee9badb0053b7e4a2f9
2012-01-17 14:01:12 -08:00
Ravikumar Venkatesan
eeb9caa3b0 incorporated Jay's suggestion
bug915695 security groups client - to list

Change-Id: I7f9ab59557c8cb20e7e67468925e4666dd981541
2012-01-17 10:21:02 -08:00
Daryl Walleck
ade49f970e Fix for bug917490
* Adds a wait for the image to become active before deleting it

Change-Id: I56c05dc8239a284210eaafb0ead14171abc263a8
2012-01-16 23:15:09 -06:00
Jenkins
c12d746d00 Merge "Minor style related change in strings Changed indentation to 4 space width Added nonexistant tests for server metadata operations" 2012-01-13 18:42:19 +00:00
sapan-kona
89422e73d4 Removed an invalid test
Added nonexistant tests for list images operations

Change-Id: I10a8432e9a9b7e6d142693834b3c7f01b865c625
2012-01-14 03:03:14 +05:30
sapan-kona
17d7f06ca1 Minor style related change in strings
Changed indentation to 4 space width
Added nonexistant tests for server metadata operations

Change-Id: I830c2a03b006f39b62504a13c1b611c8fe55722f
2012-01-13 16:05:17 +05:30
Jay Pipes
04b7081422 LP Bug#914770 - NameError in test_images
Thanks to bcwaldon for making me look silly :)

Now checks the location header returned from createImage
call in the case when the image is erroneously created
and should then be deleted...

Change-Id: Iec303355ccb7d19fd4667462b82fc8e95bdafde7
2012-01-11 11:35:07 -05:00
Jenkins
277970d9cc Merge "RestClient to target specific services in Keystone catalog" 2012-01-11 16:17:28 +00:00
Ravikumar Venkatesan
94d8117fa4 Patch4 corrected typo - for server. not changing try except block
Patch3 removed wait time
Patch 2. Incorporated Jay's review comments
fix for bug903970 create image from deleted server. Verified Pep8 formats. Verified that the test run fine . No image created

Change-Id: I48ef0f66cf7c10817326c60993690e9aa968bbbe
2012-01-10 17:08:43 -08:00
Jenkins
ce2ba0f6df Merge "Create a Tempest conf from a Devstack env" 2012-01-10 22:30:35 +00:00
Jay Pipes
32621f97ed Fixes LP Bug #912596 - image_ref_alt not found
* Adds skippers to tempest to enable skipping tests
  that don't meet certain conditions
* Adds a check in test_list_servers.ServerDetailsTest.setUpClass
  that checks if the image with ID image_ref_alt actually exists
  and if it does not, marks a specific test as skipped.

This is what the resulting test run looks like after adding
the skip:

jpipes@librebox:~/repos/tempest$ nosetests -sv tempest.tests.test_list_servers
Return the full details of a single server ... ok
Filter the detailed list of servers by flavor ... ok
Filter the detailed list of servers by image ... SKIP: Only one image found
Filter the detailed list of servers by server name ... ok
Filter the detailed list of servers by server status ... ok
Return a detailed list of all servers ... ok

----------------------------------------------------------------------
Ran 6 tests in 108.909s

OK (SKIP=1)

Change-Id: Ia6178ca8201acc03566b785ec096eda51d0425c9
2012-01-09 17:16:49 -05:00
gavin-brebner-orange
9cc2334bcc Added test_create_server_metadata_key_too_long
Fixes LP Bug#893845

Change-Id: I1df5d76804f6aa78291bf99fc5233be253d9f228
2012-01-09 14:38:36 -05:00
Jay Pipes
84b0597cea Create a Tempest conf from a Devstack env
Adds a new script in tempest/tools/conf_from_devstack
that constructs a Tempest configuration file based on
the values in a devstack directory and its localrc
file.

Change-Id: I44626b0e5a10aaae22f03176cf21b6835e9f2500
2012-01-06 09:19:01 -05:00
Adam Gandelman
e2d46b48ef RestClient to target specific services in Keystone catalog
Previously, the rest client had no notion of specific services
other than nova, since that is all the current tests cover.  It
also assumed the first row in the keystone.services was the service
that provides the nova endpoint.  This change allows the RestClient
to target specific services in the keystone catalog by name.  Current
nova services are updated to find the nova endpoint.  Future services
that hit glance or swift directly can make use of this as well.

Cleanup pep8 in exceptions.py

Fixes bug 911528

Change-Id: I4d885d96a1d360021b4c8f6aa562f863c6df3608
2012-01-04 12:29:57 -08:00
Jenkins
a37cf00f93 Merge "Added filter tests to list images tests, addresses lp bug 900088" 2011-12-30 16:43:14 +00:00
Jenkins
eef012697d Merge "Code review changes for Bugfix for lp904407, /extensions tests" 2011-12-27 20:47:21 +00:00
Daryl Walleck
f0087033df Added filter tests to list images tests, addresses lp bug 900088
* Added tests for all filters except by id and changes-since
* Also improved exception handling to include server uuid for troubleshooting

Change-Id: I9a69390e178bb6bb9244f7000a7e01dd3e530e73
2011-12-27 13:28:43 -06:00
Jenkins
25dd1966cd Merge "Fixed issue with white space after pep8 review Code review changes for Fixes for lp:903989 Change-Id: Ic345f0b30f24764a6f933684577323042fdeb8aa" 2011-12-27 16:52:14 +00:00
donald-ngo
7fb1efac66 Fixed issue with white space after pep8 review
Code review changes for Fixes for lp:903989
Change-Id: Ic345f0b30f24764a6f933684577323042fdeb8aa
2011-12-19 11:30:55 -08:00
ravikumar-venkatesan
82ca2cd042 Negative test for Flavor - testcase bug 903967. Test run successfully
fixed Pep8 issues. Ran Pep8, and it is fine now.
Change-Id: I23f04adcbffef4ec67a996e406aec544fa2deb5b
2011-12-19 19:26:12 +00:00
donald-ngo
20b6bca14e Code review changes for Bugfix for lp904407, /extensions tests
Change-Id: I882f8170c69e5fb3690288a4a763ec2090e5167a
2011-12-15 14:08:20 -08:00
Jenkins
876adb2fa9 Merge "Fixes Bug lp:900910" 2011-12-14 03:04:40 +00:00
Jenkins
e1700000b4 Merge "Fixing revert/confirm resize tests" 2011-12-14 02:51:26 +00:00
Jenkins
d9d622ef32 Merge "Fixes lp:903466" 2011-12-13 22:13:23 +00:00
Brian Waldon
3bde07f34e Fixing revert/confirm resize tests
Change-Id: Ic803b3f5efeab0796542488e5e212186a2de3618
2011-12-13 15:25:27 -05:00
Rohit Karajgi
03bc6968f9 Fixes lp:903466
-Cleaned up unused imports
-The rest of the errors are taken care of in bcwaldon's
https://review.openstack.org/2277

Change-Id: I42125798b026180f5186fd22cd669a1ebe3b47dd
2011-12-13 08:54:20 -08:00
Brian Waldon
738cd63bfa General test cleanup
- removal of unnecessary code
- update usage of create_image_enabled in image test
- rewriting image metadata tests
- fixing test_images skip
- add exceptions.ComputeFault
- fix server actions teardown
- fixing rebuild name verification
- rewriting server metadata tests

Change-Id: I03f29d864c456cbc78ca6d6dae25cacbcdf2b0d9
2011-12-13 11:06:26 -05:00
Rohit Karajgi
95446a2a80 Fixes Bug lp:900910
- Modified create_server() client method to include optional kwargs.
- This dict can be used to pass any number of optional args including
those supported by create server extension and  avoids the need of having a
separate create_server() method

Change-Id: I742ae411330b9e006130d3a4b59c7201f59243cd
2011-12-12 11:28:17 -08:00
kavan-patil
4ea2efb45d Fixed bug 902058 (review comments fixed)
Change-Id: If3f0a38dd704dfb3bacb4f29ddc9782c6897b1e9
2011-12-12 05:43:02 +00:00
Jenkins
acb69679a6 Merge "Removed storm references from README.rst" 2011-12-08 19:49:30 +00:00
Brian Lamar
12d9b29d9e PEP8 fixes.
Change-Id: I8dbf96484d22f4b1ce71e0adbf7a862675a35bbd
2011-12-08 12:41:21 -05:00
Brian Lamar
930fc5b3c9 Removed storm references from README.rst
Change-Id: I02c1b1faa05d3f8f11679ea03b3ee0e2154d1653
2011-12-08 11:52:03 -05:00
Jay Pipes
8a733d964f Daryl's latest renaming commit needed some fixes
Couple tiny fixes...

Change-Id: I46277a794de5cd076c76ee35218f30d79fc10807
2011-12-06 18:37:59 -05:00
Daryl Walleck
ed8bef3a03 Changes the namespace from storm to tempest, as well as adding addition tests and improvements
* Changed namespace from storm to tempest
* Added absolute limits service and server personality file tests
* Optimized run time for image metadata tests
* Added additional assertions for create server and rebuild server tests
* Removed any SSH verification until further decisions are made

Change-Id: I5bebd29be382c9404914c7314302670ae09627fc
2011-12-06 16:48:03 -06:00
Jay Pipes
7f75763f54 Fixes LP Bug#899383 - Cleanup config file search
Cleans up a bunch of configuration-related errors
when trying to run tempest out of the box with a
simple call to:

$> nosetests storm

* Raises a sensible error if the config file cannot be found
* Makes it possible to set the config file directory and
  config file name via environment variables
* Removes unnecessary calls to create storm.config.StormConfig()
  and share a configuration object by passing the openstack.Manager's
  config object with the various rest client objects
* Updates the README to show how to make a config file and run
  the tests in tempest

Change-Id: I60e33595b88df596cc9585bcaf18d37ae77d6f2b
2011-12-06 13:53:34 -05:00