Fix INF-359 and INF-352 about the alarm event record
[pti/o2.git] / tests / unit / test_alarm.py
index 0c0b3e5..1503d09 100644 (file)
@@ -314,7 +314,12 @@ def test_probe_new_alarm():
     bus = create_alarm_fake_bus(fakeuow)
     fakeClient = FakeAlarmClient()
     alarmwatcher = AlarmWatcher(fakeClient, bus)
-    cmds = alarmwatcher.probe()
+    parent = type('obj', (object,), {
+        'data': type('obj', (object,), {
+            'id': 'test_parent_id',
+            'res_pool_id': 'test_res_pool'
+        })})
+    cmds = alarmwatcher.probe(parent)
     assert cmds is not None
     assert len(cmds) == 1
     assert cmds[0].data.name == "alarm"