heat/heat/db/sqlalchemy
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
..
migrate_repo Fix and enable H303 and F403 No wildcard (*) import. 2013-06-20 11:52:53 +10:00
__init__.py Stub out the database access API 2012-03-29 18:02:16 +02:00
api.py cleanup watchrule delete logic/tests 2013-07-04 16:30:30 +01:00
manage.py Use print_function compatible syntax 2013-06-24 15:41:51 +02:00
migration.py add missing gettextutils imports 2013-07-02 14:22:24 +01:00
models.py Fix and enable H303 and F403 No wildcard (*) import. 2013-06-20 11:52:53 +10:00
session.py Fix PEP H402 "one line docstring needs punctuation." 2013-05-20 21:55:11 +10:00