summaryrefslogtreecommitdiffstats
path: root/smoketests
Commit message (Collapse)AuthorAgeFilesLines
* Remove trivial cases of unused variables (1)Stanislaw Pitucha2013-06-133-3/+2
| | | | | | | | | | | Kill some of the variables marked as unused by flakes8. This should allow to enable F841 check in the future. Only trivial cases with no function calls and obviously pure functions (like datetime.now(), or len()) are cleaned up here. Part 1, split to reduce conflicts. Change-Id: I82854349574ec4bcb9336aba626eefdaed81a8c8
* Improve Python 3.x compatibilityDirk Mueller2013-06-011-1/+1
| | | | | | | | | Mechanical translation of the deprecated except x,y: construct with except x as y: The latter works with any Python >= 2.6. Add Hacking check. Change-Id: I845829d97d379c1cd9b3a77e7e5786586f263b64
* Record smoketest dependency on gFlagsRick Harris2013-05-091-0/+1
| | | | | | | | | | The smoketests currently have a dependency on gFlags. Long term, this should be converted to use openstack.common.cfg; but in the near term, we should record this existing dependency. Fixes bug 1174953 Change-Id: I465abc6a4a2e8f7ebd1fe70ad239c760960a82ed
* Removed print stmts in test casesGiampaolo Lauria2013-01-292-4/+0
| | | | | | Fixes bug 1108978 Change-Id: I5113e67bad1aaafdbaa0adc202cac97ba8d0dfdb
* Fix hacking N302 import only modulesJoe Gordon2013-01-241-3/+3
| | | | | | | | * Includes some general tools/hacking cleanup * Fix several N302 cases * Disable N302 until all cases are fixed Change-Id: Iddba07ff13e10dc41a6930749044bb8c0572d279
* fix new N402 errorsSean Dague2013-01-101-7/+5
| | | | | | | | | | | | fix the N402 errors that have slipped in in the last 48 hrs since starting this patch series. fix an N401 error that our scanner current can't find because it only looks for doc strings on classes and defs. this is the xeno's paradox of patch series, but we're getting close. Change-Id: I4a763bb4c812335d853eae05c72464f18ab93297
* Fix wait_for_deleted function in SmokeTests.Dan Prince2012-11-212-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the wait_for_not_running function in smoketests/base.py so that it short circuits when an instance ID is deleted rather than waits 60 seconds (the timeout). Previously this function had two problems: 1) It used Boto's instance.update() instead of instance.update(validate=True). Since update() returns returns quietly if no data about the instance was returned (aka the instance has been deleted) it effectively made this function almost always wait for the timeout (60 seconds). This makes the tests take about a minute longer than they need to unless #2 below occurs... 2) It also introduced a race condition in that... if hit just right the instance.state would get set to 'terminated'. Which would cause the loop to short circuit. This might seem correct at first glance but in fact causes intermittent failures in some of the netadmin tests because security groups can't be deleted if a running (or exiting) instance is still assigned to them. In fact wait_for_not_running was added to guard against just this in the first place! Also, renames the base.wait_for_not_running function to be called wait_for_deleted (that is what we are really doing here) Change-Id: I4486995a7d9028d876366e8d7a2c845520319b86
* Update vol mount smoketest to wait for volume.Dan Prince2012-11-121-3/+15
| | | | | | | | | Updates the test_003_can_mount_volume smoke test so that it waits for the volume to show up in /proc/partitions for up to 60 seconds before proceeding. This eliminates the need for a hard coded sleep value which can cause intermittent test failures. Change-Id: Ibdc56a00e141211e40068c22fc268efeba6affff
* Fix no attribute 'STD_OUT_HANDLE' on windowsDavanum Srinivas2012-11-021-3/+3
| | | | | | | | rename STD_OUT_HANDLE to STD_OUTPUT_HANDLE Fixes LP #1033528 Change-Id: I75830dc4d6017076647e040d4485f99ee68333ff
* Use paramiko.AutoAddPolicy for the smoketests.Dan Prince2012-10-091-1/+1
| | | | | | | | | | | | | | | Updates the Nova smoketests so that we use Paramiko's auto add ssh key policy. This should help quiet down warnings like this which we previously got when running the EC2 smoketests with Nova: /usr/lib/python2.7/site-packages/paramiko/client.py:95: UserWarning: Unknown ssh-rsa host key for 172.20.0.3: adb1c2f1fe461a35cd01283eac03d6fb Fixes LP Bug #1064550. Change-Id: I1611a3f6b54563b6a1d64c4f8e193a636ccb1c69
* Remove outdated moduleauthor tagsJoe Gordon2012-10-011-6/+0
| | | | | | | | | The moduelauthor tags are used by the docs to see who wrote what. But many of them are outdated and wrong. fixes bug 1044578 Change-Id: I9cc27430c906d1418faf28e1b53f6306c62e8f98
* Update volume detach smoke test to check status.Dan Prince2012-09-211-1/+8
| | | | | | | | | | | | | | | | | | | | | | Updates test_007_me_can_detach_volume so that it waits for the volume status to become active for up to 10 seconds after initiating the command to detach the volume. Previously it just waited for 5 seconds without checking the status which can be problematic in that it causes the subsequent test to delete the volume to fail intermittently (because only active or error volumes can be deleted). I noticed this in SmokeStack because 2 days ago this commit landed: b46f224f7555e3065b0daacd101b65d86117f0c1 and it is now causing a fair amount of intermittent volume tests to fail for Nova and Cinder. Apparently now that we have ordered the commands to remove an iscsi target properly it takes a bit longer... Change-Id: Ibfd25af93f9cb063a76a04138b8d23d28a01b89a
* Run hacking tests as part of the gate.Monty Taylor2012-07-025-13/+17
| | | | | | | | | | Nova has additional pep8 "plugins" that they expect to run as part of the gate. This patch will run tools/hacking.py instead of pep8 directly. Also, it fixes the hacking violaions in contrib, plugins and smoketests. Fixes bug 1010136 Change-Id: I86d8789218c197d5d4a43d1201465d340646a395
* Backslash continuation removal (Nova folsom-2)Zhongyue Luo2012-05-311-5/+5
| | | | | | | | Fixes bug #938588 Backslash continuations removal for scripts in bin/, plugin/, and etc. Change-Id: Idd17048b6e8db6e939946968e011e68da8585b8d
* Grammar / spelling correctionsMatt Joyce2012-05-291-1/+1
| | | | Change-Id: Id5b6665a2a40a9bd0830c1a3500b4ad98eec435b
* Don't allow EC2 removal of security group in use.Russell Bryant2012-02-142-1/+12
| | | | | | | | | | | | | | | | | | Fix bug 817872. This patch modifies the behavior of removing security groups via the EC2 API to better match the EC2 API spec. The EC2 documentation says that a group that is still in use can not be removed. A new function has been added to the db API to find out whether a particular security group is still in use. "In use" is defined as applied to an active instance, or applied to another group that has not been deleted. Unit tests have been updated to ensure that an error is raised when these conditions are hit. Change-Id: I5b3fdf1da213b04084fe266c1a6ed92e01cf1e19
* Fix bad test cases in smoketest.Hengqing Hu2012-01-101-11/+15
| | | | | | | | | | | | Fixes bug #912650. Fixes the following test cases in smoketests/test_netadmin.py:SecurityGroupTests: 'test_004_can_access_metadata_over_public_ip' 'test_005_validate_metadata' 'test_999_tearDown' Change-Id: Iefa8034a364e13243d06200e8af1840df896baf3
* Relax dependency on boto 1.9b and nova-adminclientVishvananda Ishaya2011-12-081-91/+0
| | | | | | | | | * change boto=1.9b to boto * fix the tests * remove nova-adminclient dependency * remove the useless smoketests for nova-adminclient Change-Id: Ie191453941e64774496a912cb64d1417f3f1bea3
* Fix for EC2 API part of bug 897164Jimmy Bergman2011-12-023-13/+13
| | | | Change-Id: I96344eaccd2f42b70223b3c155a4793ab00d09d5
* Merge w/ trunk.Dan Prince2011-08-165-2/+2
|\
| * remove openwrt imageVishvananda Ishaya2011-08-155-2/+2
| |
* | Updated the EC2 metadata controller so that it returns the correct valueDan Prince2011-08-091-4/+15
|/ | | | for instance-type metadata.
* Update the curl command in the __public_instance_is_accessible functionDan Prince2011-08-061-2/+5
| | | | | | of test_netadmin to return an error code which we can then check for and handle properly. This should allow calling functions to properly retry and timout if an actual test failure happens.
* Add exception logging for instance IDs in the __public_instance_is_accessibleDan Prince2011-08-051-1/+2
| | | | smoke test function. This should help troubleshoot an intermittent failure.
* add smoketests to verify image listingVishvananda Ishaya2011-07-201-6/+27
|
* Removed adminclient and referred to pypi nova_adminclient moduleDevin Carlen2011-03-301-1/+1
|
* add note per reviewVishvananda Ishaya2011-03-281-0/+1
|
* Fixes volume smoketests to work with ami-ttyVishvananda Ishaya2011-03-281-2/+2
|
* Fix for LP Bug #739641Tushar Patil2011-03-211-1/+3
|
* Merge trunkSoren Hansen2011-03-201-2/+3
|\
| * Fix for LP Bug #737240Tushar Patil2011-03-171-3/+2
| |
| * Fix for LP Bug #737240Tushar Patil2011-03-171-6/+6
| |
* | PEP-8Soren Hansen2011-03-183-3/+3
| |
* | Make flag parsing work again.Soren Hansen2011-03-181-1/+13
| |
* | Merge lp:~anso/nova/smoketests_fixesSoren Hansen2011-03-186-79/+332
|\ \
| * | add timeout and retry for sshVishvananda Ishaya2011-02-251-5/+12
| | |
| * | revert a few unnecessary changes to base.pyVishvananda Ishaya2011-02-241-3/+1
| | |
| * | removed unused references to unittestVishvananda Ishaya2011-02-242-2/+0
| | |
| * | add customizable tempdir and remove extra codeVishvananda Ishaya2011-02-242-35/+19
| | |
| * | make smoketests run with noseVishvananda Ishaya2011-02-245-24/+297
| | |
| * | fix check for existing port 22 ruleVishvananda Ishaya2011-02-241-1/+3
| | |
| * | more smoketest fixesVishvananda Ishaya2011-02-232-7/+4
| | |
| * | remove extra flag in admin testsVishvananda Ishaya2011-02-231-3/+0
| |/
* | Make proxy.sh work with both openbsd and traditional variants of netcat.Soren Hansen2011-03-181-2/+9
| |
* | Query the size of the block device, not the size of the filesystem.Soren Hansen2011-03-181-5/+6
| |
* | Invert some of the original logic and fix a typo.Soren Hansen2011-03-171-2/+2
| |
* | Make the smoketests pep8 compliant (they weren't when I started working on ↵Soren Hansen2011-03-172-3/+2
| | | | | | | | them..)
* | Make smoketests' exit code reveal whether they were succesful.Soren Hansen2011-03-175-6/+11
|/
* add netadmin smoketestsVishvananda Ishaya2011-02-222-0/+216
|
* separate out smoketests and add updated nova.shVishvananda Ishaya2011-02-223-109/+24
|