|
25 | 25 | from aws_advanced_python_wrapper.driver_configuration_profiles import \ |
26 | 26 | DriverConfigurationProfiles |
27 | 27 | from aws_advanced_python_wrapper.hostinfo import HostInfo |
| 28 | +from aws_advanced_python_wrapper.pep249_methods import DbApiMethod |
28 | 29 | from aws_advanced_python_wrapper.plugin_service import ( |
29 | 30 | PluginManager, PluginServiceManagerContainer) |
30 | 31 | from aws_advanced_python_wrapper.utils.properties import Properties |
| 32 | +from aws_advanced_python_wrapper.utils.telemetry.null_telemetry import \ |
| 33 | + NullTelemetryFactory |
31 | 34 | from benchmarks.benchmark_plugin import BenchmarkPluginFactory |
32 | 35 |
|
33 | 36 | host_info = HostInfo(host="host", port=1234) |
@@ -76,18 +79,18 @@ def plugin_service_manager_container_mock(mocker, plugin_service_mock): |
76 | 79 |
|
77 | 80 | @pytest.fixture |
78 | 81 | def plugin_manager_with_no_plugins(plugin_service_manager_container_mock, props_without_plugins): |
79 | | - manager = PluginManager(plugin_service_manager_container_mock, props_without_plugins) |
| 82 | + manager = PluginManager(plugin_service_manager_container_mock, props_without_plugins, NullTelemetryFactory()) |
80 | 83 | return manager |
81 | 84 |
|
82 | 85 |
|
83 | 86 | @pytest.fixture |
84 | 87 | def plugin_manager_with_plugins(plugin_service_manager_container_mock, props_with_plugins): |
85 | | - manager = PluginManager(plugin_service_manager_container_mock, props_with_plugins) |
| 88 | + manager = PluginManager(plugin_service_manager_container_mock, props_with_plugins, NullTelemetryFactory()) |
86 | 89 | return manager |
87 | 90 |
|
88 | 91 |
|
89 | 92 | def init_plugin_manager(plugin_service_manager_container, props): |
90 | | - manager = PluginManager(plugin_service_manager_container, props) |
| 93 | + manager = PluginManager(plugin_service_manager_container, props, NullTelemetryFactory()) |
91 | 94 | return manager |
92 | 95 |
|
93 | 96 |
|
@@ -121,7 +124,7 @@ def test_connect_with_plugins(benchmark, mocker, plugin_manager_with_plugins, pr |
121 | 124 |
|
122 | 125 |
|
123 | 126 | def execute(mocker, plugin_manager, statement): |
124 | | - result = plugin_manager.execute(mocker.MagicMock(), "Statement.execute", statement) |
| 127 | + result = plugin_manager.execute(mocker.MagicMock(), DbApiMethod.CURSOR_EXECUTE, statement) |
125 | 128 | return result |
126 | 129 |
|
127 | 130 |
|
|
0 commit comments