Commit Graph

15 Commits

Author SHA1 Message Date
Stanislaw Pitucha 9f7eaca80d Remove trivial cases of unused variables (1)
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
2013-06-13 17:04:08 +00:00
Dan Prince 6443cfeecb Update vol mount smoketest to wait for volume.
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
2012-11-12 15:36:32 -05:00
Dan Prince c8416912d4 Update volume detach smoke test to check status.
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:

b46f224f75

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
2012-09-21 12:15:59 -04:00
Monty Taylor 8d8d3b4296 Run hacking tests as part of the gate.
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
2012-07-02 08:50:41 -04:00
Matt Joyce 1bbf44fa67 Grammar / spelling corrections
Change-Id: Id5b6665a2a40a9bd0830c1a3500b4ad98eec435b
2012-05-29 12:04:36 -07:00
Jimmy Bergman 88acbe869a Fix for EC2 API part of bug 897164
Change-Id: I96344eaccd2f42b70223b3c155a4793ab00d09d5
2011-12-02 15:45:26 +01:00
Vishvananda Ishaya 055c7692fc remove openwrt image 2011-08-15 11:31:44 -07:00
Vishvananda Ishaya 0f5184da2b add smoketests to verify image listing 2011-07-20 17:46:32 +00:00
Vishvananda Ishaya 3a39fb7b09 add note per review 2011-03-28 16:50:33 -07:00
Vishvananda Ishaya 233fd09201 Fixes volume smoketests to work with ami-tty 2011-03-28 15:46:01 -07:00
Soren Hansen 049e895bea Merge trunk 2011-03-20 20:04:51 +01:00
Soren Hansen 4b18488223 PEP-8 2011-03-18 13:17:40 +01:00
Soren Hansen aa0d218e53 Merge lp:~anso/nova/smoketests_fixes 2011-03-18 12:35:00 +01:00
Vishvananda Ishaya a6f607681f add customizable tempdir and remove extra code 2011-02-24 21:32:27 -08:00
Vishvananda Ishaya 498638ce36 make smoketests run with nose 2011-02-24 17:17:42 -08:00