aodh/tests/api/v2/test_impl_sqlalchemy.py
Gordon Chung 89fc448ed6 enable v2 api sqlalchemy tests
enable v2 api sqlalchemy tests
fix how mongo impl calculates period start time

Change-Id: I6149f6b77b5d82a93d1b3e92a2940f6bf953ad72
2013-07-03 17:33:48 -04:00

76 lines
2.0 KiB
Python

# -*- encoding: utf-8 -*-
#
# 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.
from . import acl
from . import alarm
from . import compute_duration_by_resource
from . import list_events
from . import list_meters
from . import list_resources
from . import post_samples
from . import statistics
class TestAPIAcl(acl.TestAPIACL):
database_connection = 'sqlite://'
class TestListEvents(list_events.TestListEvents):
database_connection = 'sqlite://'
class TestListEmptyAlarms(alarm.TestListEmptyAlarms):
database_connection = 'sqlite://'
class TestAlarms(alarm.TestAlarms):
database_connection = 'sqlite://'
class TestComputeDurationByResource(
compute_duration_by_resource.TestComputeDurationByResource):
database_connection = 'sqlite://'
class TestListEmptyMeters(list_meters.TestListEmptyMeters):
database_connection = 'sqlite://'
class TestListMeters(list_meters.TestListMeters):
database_connection = 'sqlite://'
class TestListResources(list_resources.TestListResources):
database_connection = 'sqlite://'
class TestMaxProjectVolume(statistics.TestMaxProjectVolume):
database_connection = 'sqlite://'
class TestMaxResourceVolume(statistics.TestMaxResourceVolume):
database_connection = 'sqlite://'
class TestSumProjectVolume(statistics.TestSumProjectVolume):
database_connection = 'sqlite:// '
class TestSumResourceVolume(statistics.TestSumProjectVolume):
database_connection = 'sqlite:// '
class TestPostSamples(post_samples.TestPostSamples):
database_connection = 'sqlite:// '