From 823f2005d895753196490ffccb19c9cec300e431 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 22 Mar 2013 16:45:36 +0100 Subject: [PATCH] api: run max_resource_volume test on SQL backend Change-Id: I7928da7d4ca10684de1f7bddac5e356c218d9725 Signed-off-by: Julien Danjou --- .../{test_max_resource_volume.py => max_resource_volume.py} | 0 tests/api/v1/test_impl_mongodb.py | 5 +++++ tests/api/v1/test_impl_sqlalchemy.py | 5 +++++ 3 files changed, 10 insertions(+) rename tests/api/v1/{test_max_resource_volume.py => max_resource_volume.py} (100%) diff --git a/tests/api/v1/test_max_resource_volume.py b/tests/api/v1/max_resource_volume.py similarity index 100% rename from tests/api/v1/test_max_resource_volume.py rename to tests/api/v1/max_resource_volume.py diff --git a/tests/api/v1/test_impl_mongodb.py b/tests/api/v1/test_impl_mongodb.py index be6c63b2c..565a1edb4 100644 --- a/tests/api/v1/test_impl_mongodb.py +++ b/tests/api/v1/test_impl_mongodb.py @@ -25,6 +25,7 @@ from . import list_resources from . import list_sources from . import list_users from . import max_project_volume +from . import max_resource_volume class TestListEvents(list_events.TestListEvents): @@ -85,3 +86,7 @@ class TestListSource(list_sources.TestListSource): class TestMaxProjectVolume(max_project_volume.TestMaxProjectVolume): database_connection = 'test://' + + +class TestMaxProjectVolume(max_resource_volume.TestMaxResourceVolume): + database_connection = 'test://' diff --git a/tests/api/v1/test_impl_sqlalchemy.py b/tests/api/v1/test_impl_sqlalchemy.py index 2fa6284d5..681a0e854 100644 --- a/tests/api/v1/test_impl_sqlalchemy.py +++ b/tests/api/v1/test_impl_sqlalchemy.py @@ -25,6 +25,7 @@ import list_resources import list_sources import list_users import max_project_volume +import max_resource_volume class TestListEvents(list_events.TestListEvents): @@ -73,3 +74,7 @@ class TestListSource(list_sources.TestListSource): class TestMaxProjectVolume(max_project_volume.TestMaxProjectVolume): database_connection = 'sqlite://' + + +class TestMaxResourceVolume(max_resource_volume.TestMaxResourceVolume): + database_connection = 'sqlite://'