aboutsummaryrefslogtreecommitdiffstats
path: root/app/test/event_based_scan/test_instance_delete.py
diff options
context:
space:
mode:
authorIlia Abashin <abashinos@gmail.com>2017-08-25 14:24:59 +0300
committerIlia Abashin <abashinos@gmail.com>2017-08-25 14:29:28 +0300
commit2f9d5cf583b4b5dd635f386cb9ac07435bd44cc8 (patch)
tree2c025d24aff9bb0192e6d221a4e989e327c72e7c /app/test/event_based_scan/test_instance_delete.py
parentde9f324ff628a6d9e870f06e6e216f65382a978b (diff)
Heavily refactored all event based scans
Restricted real mongo interaction. Still work to do, but it's a good start. Fixed a bug with old subnets not being properly deleted. Change-Id: I5f260e09f0e11a477a47cb031d397a454465123f Signed-off-by: Ilia Abashin <abashinos@gmail.com>
Diffstat (limited to 'app/test/event_based_scan/test_instance_delete.py')
-rw-r--r--app/test/event_based_scan/test_instance_delete.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/test/event_based_scan/test_instance_delete.py b/app/test/event_based_scan/test_instance_delete.py
index 1572e9d..5c1edcb 100644
--- a/app/test/event_based_scan/test_instance_delete.py
+++ b/app/test/event_based_scan/test_instance_delete.py
@@ -18,7 +18,7 @@ class TestInstanceDelete(TestEventDeleteBase):
def setUp(self):
super().setUp()
self.values = EVENT_PAYLOAD_INSTANCE_DELETE
- self.set_item_for_deletion(object_type="instance", document=INSTANCE_DOCUMENT)
def test_handle_instance_delete(self):
- self.handle_delete(handler=EventInstanceDelete())
+ self.handle_delete(handler=EventInstanceDelete(),
+ db_object=INSTANCE_DOCUMENT)