def METHOD_NAME(self):
    """Test the callback on ok."""
    results_store = ConnectResultStore(self.scan_task)
    self.interrupt.return_value.value = ScanJob.JOB_RUN
    callback = ConnectResultCallback(
        results_store, self.cred, self.source, self.interrupt
    )
    events = []
    events.append(build_event(host="1.2.3.4", event="runner_on_ok"))
    events.append(build_event(host="1.2.3.5", return_code=1, event="runner_on_ok"))
    events.append(
        build_event(host="1.2.3.6", return_code=None, event="runner_on_ok")
    )
    for event in events:
        callback.event_callback(event)
    self.assertEqual(callback.result_store.scan_task.systems_count, 3)
    self.assertEqual(callback.result_store.scan_task.systems_scanned, 1)
    self.assertEqual(callback.result_store.scan_task.systems_failed, 0)