Relocate openstack_test driver
This patch relocates openstack_test driver for coming functional test refactoring. Change-Id: I7d4f16f2ed68947de1533aa69dacaf8a779b35ce
This commit is contained in:
parent
8a906e7609
commit
f0464b1b0d
|
@ -0,0 +1,11 @@
|
|||
OpenStack Test Driver
|
||||
=====================
|
||||
|
||||
This is a fake driver for Senlin test. All interactions between Senlin
|
||||
and backend OpenStack services, like Nova, Heat are simulated using this
|
||||
driver. With it, Senlin API and engine workflow can be easily tested
|
||||
without setting up backend services.
|
||||
|
||||
Configure the following option in senlin.conf to enable this driver:
|
||||
|
||||
`cloud_backend = openstack_test`
|
|
@ -12,10 +12,10 @@
|
|||
|
||||
from senlin.drivers.openstack import ceilometer_v2
|
||||
from senlin.drivers.openstack import keystone_v3
|
||||
from senlin.tests.functional.drivers.openstack import heat_v1
|
||||
from senlin.tests.functional.drivers.openstack import lbaas
|
||||
from senlin.tests.functional.drivers.openstack import neutron_v2
|
||||
from senlin.tests.functional.drivers.openstack import nova_v2
|
||||
from senlin.tests.drivers.openstack import heat_v1
|
||||
from senlin.tests.drivers.openstack import lbaas
|
||||
from senlin.tests.drivers.openstack import neutron_v2
|
||||
from senlin.tests.drivers.openstack import nova_v2
|
||||
|
||||
|
||||
compute = nova_v2.NovaClient
|
|
@ -11,7 +11,7 @@
|
|||
# under the License.
|
||||
|
||||
from senlin.drivers import base
|
||||
from senlin.tests.functional.drivers.openstack import sdk
|
||||
from senlin.tests.drivers.openstack import sdk
|
||||
|
||||
|
||||
class HeatClient(base.DriverBase):
|
|
@ -11,11 +11,11 @@
|
|||
# under the License.
|
||||
|
||||
from senlin.drivers import base
|
||||
from senlin.tests.functional.drivers.openstack import sdk
|
||||
from senlin.tests.drivers.openstack import sdk
|
||||
|
||||
|
||||
class NeutronClient(base.DriverBase):
|
||||
'''Fake Neutron V2 driver for functional test.'''
|
||||
'''Fake Neutron V2 driver for test.'''
|
||||
|
||||
def __init__(self, ctx):
|
||||
self.fake_network = {
|
|
@ -13,11 +13,11 @@
|
|||
from oslo_utils import uuidutils
|
||||
|
||||
from senlin.drivers import base
|
||||
from senlin.tests.functional.drivers.openstack import sdk
|
||||
from senlin.tests.drivers.openstack import sdk
|
||||
|
||||
|
||||
class NovaClient(base.DriverBase):
|
||||
'''Fake Nova V2 driver for functional test.'''
|
||||
'''Fake Nova V2 driver for test.'''
|
||||
|
||||
def __init__(self, ctx):
|
||||
self.fake_flavor = {
|
|
@ -49,7 +49,7 @@ senlin.policies =
|
|||
|
||||
senlin.drivers =
|
||||
openstack = senlin.drivers.openstack
|
||||
openstack_test = senlin.tests.functional.drivers.openstack
|
||||
openstack_test = senlin.tests.drivers.openstack
|
||||
|
||||
tempest.test_plugins =
|
||||
senlin_tests = senlin.tests.tempest.plugin:SenlinTempestPlugin
|
||||
|
|
Loading…
Reference in New Issue