From 1137c1ae2c52d79ed0b4b31b81d7b0b00655d729 Mon Sep 17 00:00:00 2001 From: Joar Heimonen Date: Thu, 7 Mar 2024 18:43:36 +0100 Subject: [PATCH] fix: Deleted accidentally included legacy test --- .../ipdevpoll/plugins/paloaltoarp_test.py | 85 ------------------- 1 file changed, 85 deletions(-) delete mode 100644 tests/integration/ipdevpoll/plugins/paloaltoarp_test.py diff --git a/tests/integration/ipdevpoll/plugins/paloaltoarp_test.py b/tests/integration/ipdevpoll/plugins/paloaltoarp_test.py deleted file mode 100644 index ca0dbcb0a0..0000000000 --- a/tests/integration/ipdevpoll/plugins/paloaltoarp_test.py +++ /dev/null @@ -1,85 +0,0 @@ -import pytest -import pytest_twisted - -from mock import Mock - -from nav.ipdevpoll.plugins import paloaltoarp, plugin_registry -from nav.ipdevpoll.jobs import JobHandler, SuggestedReschedule - - -class paloaltoarp_test(paloaltoarp.PaloaltoArp): - def __init__(self, *args, **kwargs): - - self.config = '' - - self.paloalto_devices = [{'key': 'abcdefghijklmnopqrstuvwxyz1234567890', 'hostname': '127.0.0.1'}] - - # put the mappings in a list so we can verify them - self.mappings = [] - - super().__init__(*args, **kwargs) - - def _do_request(self, ip, key): - return b''' - - - 132000 - 3 - 1800 - s3dp1 - - - s - 192.168.0.1 - 00:00:00:00:00:01 - 100 - ae2 - ae2 - - - e - 192.168.0.2 - 00:00:00:00:00:02 - 200 - ae2 - ae2 - - - c - 192.168.0.3 - 00:00:00:00:00:03 - 300 - ae3.61 - ae3 - - - i - 192.168.0.4 - 00:00:00:00:00:04 - 400 - ae3.61 - ae3 - - - - -''' - - # override the _process_data method and verify the input mappings - def _process_data(self, mappings): - self.mappings = mappings - - -@pytest.mark.twisted -@pytest_twisted.inlineCallbacks -def test_process_arp_data(): - plugin = paloaltoarp_test() - - plugin_registry['paloaltoarp'] = plugin - job = JobHandler('paloaltoarp', 'localhost', plugins=['paloaltoarp']) - agent = Mock() - job.agent = agent - job._create_agentproxy = Mock() - job._destroy_agentproxy = Mock() - - assert plugin.mappings == []