diff options
author | Ilia Abashin <abashinos@gmail.com> | 2017-09-01 15:51:52 +0300 |
---|---|---|
committer | Ilia Abashin <abashinos@gmail.com> | 2017-09-01 15:51:52 +0300 |
commit | 7b4235dced0c66096638bebd5cc98a631538b0e1 (patch) | |
tree | ea6e17af0fbd854ef7b2053aa7c1e71949d977aa /app/test/event_based_scan | |
parent | 692489cc50c8025ede1646627a7a583a4feb3798 (diff) |
Refactored link finders
Mappings are now defined in a configuration file and fetched dynamically.
Change-Id: I250c22967fc66fc0aca173d4c9d65581d879b5d2
Signed-off-by: Ilia Abashin <abashinos@gmail.com>
Diffstat (limited to 'app/test/event_based_scan')
-rw-r--r-- | app/test/event_based_scan/test_port_add.py | 7 | ||||
-rw-r--r-- | app/test/event_based_scan/test_subnet_add.py | 4 |
2 files changed, 2 insertions, 9 deletions
diff --git a/app/test/event_based_scan/test_port_add.py b/app/test/event_based_scan/test_port_add.py index 58926a9..caa8401 100644 --- a/app/test/event_based_scan/test_port_add.py +++ b/app/test/event_based_scan/test_port_add.py @@ -7,14 +7,9 @@ # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # ############################################################################### -from unittest.mock import MagicMock, patch +from unittest.mock import patch from discover.events.event_port_add import EventPortAdd -from discover.fetchers.api.api_fetch_host_instances import ApiFetchHostInstances -from discover.fetchers.cli.cli_fetch_instance_vnics import CliFetchInstanceVnics -from discover.find_links_for_instance_vnics import FindLinksForInstanceVnics -from discover.find_links_for_vedges import FindLinksForVedges -from discover.scanner import Scanner from test.event_based_scan.test_data.event_payload_port_add import \ EVENT_PAYLOAD_PORT_INSTANCE_ADD, NETWORK_DOC, \ INSTANCE_DOC, INSTANCES_ROOT, VNIC_DOCS, INSTANCE_DOCS, PORTS_FOLDER, \ diff --git a/app/test/event_based_scan/test_subnet_add.py b/app/test/event_based_scan/test_subnet_add.py index ce934f3..b9145a5 100644 --- a/app/test/event_based_scan/test_subnet_add.py +++ b/app/test/event_based_scan/test_subnet_add.py @@ -7,12 +7,10 @@ # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # ############################################################################### -from unittest.mock import MagicMock, patch +from unittest.mock import patch from discover.events.event_subnet_add import EventSubnetAdd from discover.fetchers.api.api_access import ApiAccess -from discover.find_links_for_pnics import FindLinksForPnics -from discover.find_links_for_vservice_vnics import FindLinksForVserviceVnics from test.event_based_scan.test_data.event_payload_subnet_add import \ EVENT_PAYLOAD_SUBNET_ADD, \ EVENT_PAYLOAD_REGION, NETWORK_DOC, HOST_DOC, PORT_DOC |