From 0ff2c9149650ccc707af1b41b36ac13cf42e6a26 Mon Sep 17 00:00:00 2001 From: Tom Prince Date: Mon, 29 Feb 2016 19:00:14 -0700 Subject: [PATCH] Adjust acceptance tests to use plugin loader for finding backend. --- flocker/acceptance/testtools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flocker/acceptance/testtools.py b/flocker/acceptance/testtools.py index ba236dde5c..ee89d732b0 100644 --- a/flocker/acceptance/testtools.py +++ b/flocker/acceptance/testtools.py @@ -48,7 +48,8 @@ from ..ca import treq_with_authentication, UserCredential from ..testtools import random_name from ..apiclient import FlockerClient, DatasetState -from ..node.script import get_backend, get_api +from ..node.backends import backend_loader +from ..node.script import get_api from ..node import dockerpy_client from ..node.agents.blockdevice import _SyncToThreadedAsyncAPIAdapter from ..provision import reinstall_flocker_from_package_source @@ -247,7 +248,7 @@ def get_backend_api(cluster_id): backend_config = full_backend_config.get(backend_name) if 'backend' in backend_config: backend_config.pop('backend') - backend = get_backend(backend_name) + backend = backend_loader.get(backend_name) return get_api(backend, pmap(backend_config), reactor, cluster_id)