poppy/tests/unit/storage/mockdb/test_services.py
Anantha Arunachalam 8763b5db06 Change oslo package names according to the latest oslo release 2.0.0
Also requirements have modified to reflect the latest oslo packages.

Change-Id: I5f5e28ef183dfbafc8c1215ef92d55f6358de27d
2015-07-20 16:12:47 -04:00

40 lines
1.2 KiB
Python

# Copyright (c) 2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import uuid
from oslo_config import cfg
from poppy.storage.mockdb import driver
from poppy.storage.mockdb import services
from tests.unit import base
class MockDBStorageFlavorsTests(base.TestCase):
def setUp(self):
super(MockDBStorageFlavorsTests, self).setUp()
self.flavor_id = uuid.uuid1()
# create mocked config and driver
conf = cfg.ConfigOpts()
mockdb_driver = driver.MockDBStorageDriver(conf)
# stubbed driver
self.sc = services.ServicesController(mockdb_driver)
self.project_id = "fake_project_id"
self.service_name = "fake_service_name"