heat/heat/db
Steven Hardy 52dc303055 cleanup watchrule delete logic/tests
Rework watchrule delete interface so we delete by ID, rather than
by name (where we only delete the first rule in the event of multiple
watcherule rows with the same name, which is allowed although not likely
in normal heat operation - it can cause weird behavior in the tests)

Encapsulating the delete in a WatchRule.destroy() is cleaner and more
consistent with the rest of the codebase, and reworking the tests to
ensure proper cleanup reduces the chances of odd errors and cascading
failures between tests on failure.

fixes bug #1197718

Change-Id: I94e9eb610519bb7321a2be7718312fd50f308a8b
2013-07-04 16:30:30 +01:00
..
sqlalchemy cleanup watchrule delete logic/tests 2013-07-04 16:30:30 +01:00
__init__.py Do not initialize anything during import phase 2013-04-24 10:03:06 -07:00
api.py cleanup watchrule delete logic/tests 2013-07-04 16:30:30 +01:00
migration.py Squash Grizzly database migrations 2013-03-12 10:03:37 +01:00
sync.py install "_" via gettextutils 2013-06-30 14:42:41 +08:00
utils.py Move utils.py to a more appropriate location 2012-12-07 15:47:20 +01:00