2052 Commits

Author SHA1 Message Date
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
Rohit Karajgi
e1b050d01c * Added build_url() utility that returns an endpoint URL based on config parameters
* Updated storm.conf
* Added more properties to Nova config object
* Fixed pep8 and the 'set' typo that came from a vi editor 'set list' fumble

Change-Id: I67a9b7a8708cd64eb26eb9ec15c40b18eb8895de
2011-12-04 17:17:30 -08:00
Rohit Karajgi
cb5d95412e Removed unnecessary 'self' reference
Change-Id: I64de0706d06398f16e77b5b03aff4067298cbdec
2011-12-02 14:27:17 -08:00
James E. Blair
4864b1f338 Update .gitreview with new project name.
Change-Id: I400412dce5b431ab2f220b97c8f63ae701ba726b
2011-11-30 10:59:36 -08:00
Daryl Walleck
416af9271d Added image metadata tests, fixed minor bug in servers service with metadata
Change-Id: Ia77280ce393619c7dc3f700a7fa4c45305a2defb
2011-11-22 22:28:33 -06:00
Jenkins
3e3f1259e0 Merge "Fix numeric header values for kernel_id and ramdisk_id" 2011-11-22 05:53:39 +00:00
Dean Troyer
b61ce966c2 Fix numeric header values for kernel_id and ramdisk_id
Change-Id: I91c1ae3e7c4f3997d2fd4609f9f69d94c49b915e
2011-11-21 23:57:31 -06:00
Jenkins
784f50d692 Merge "Added negative tests for servers" 2011-11-22 01:14:31 +00:00
Daryl Walleck
73a9e7ade6 Added server metadata and image tests. Also added a README for storm.conf
Change-Id: Ic67e7bfccf0e9b45dba24584e9326a27537f3cae
2011-11-16 15:33:55 -06:00
Daryl Walleck
adea1fa839 Added negative tests for servers
Change-Id: I6285045f023881f66e4bb42a6a188c68796ea5f5
2011-11-15 18:36:39 -06:00
Jenkins
8a84d2efc4 Merge "Added server details tests. Also re-added several files that somehow missed the initial commit" 2011-11-15 20:31:19 +00:00
Jenkins
2f9fff94ae Merge "Removed unused imports; whitespace normalization" 2011-11-15 16:14:18 +00:00
Dolph Mathews
36b72559a5 Assert we receive a scoped token & the correct user
Change-Id: If4d133c721ccdb296f38921dde49a02cd47d6742
2011-11-15 07:49:15 -08:00